Package edu.wpi.grip.ui.pipeline.source
Class SourceController<S extends Source>
- java.lang.Object
-
- edu.wpi.grip.ui.pipeline.source.SourceController<S>
-
- Type Parameters:
S
- The type of Source this view is for.
- All Implemented Interfaces:
Controller
- Direct Known Subclasses:
CameraSourceController
,ClassifierSourceController
,HttpSourceController
,MultiImageFileSourceController
,VideoFileSourceController
@ParametrizedController(url="Source.fxml") public class SourceController<S extends Source> extends java.lang.Object implements Controller
A JavaFX control that represents aSource
.SourceController
s are somewhat analogous toStepController
s in thatthe pipeline contrains them and they contain some sockets, butSourceController
s only have output sockets, and they show up in a different place.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
SourceController.BaseSourceControllerFactory<S extends Source>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addControls(javafx.scene.Node... control)
Adds the given Nodes to the node that should hold the controls.void
delete()
java.util.Collection<OutputSocketController>
getOutputSockets()
An unmodifiable list ofOutputSocketController
s corresponding to the sockets that this source produces.javafx.scene.layout.VBox
getRoot()
S
getSource()
protected void
initialize()
-
-
-
Method Detail
-
initialize
protected void initialize() throws java.lang.Exception
- Throws:
java.lang.Exception
-
getSource
public S getSource()
-
addControls
protected void addControls(javafx.scene.Node... control)
Adds the given Nodes to the node that should hold the controls.
-
getOutputSockets
public java.util.Collection<OutputSocketController> getOutputSockets()
An unmodifiable list ofOutputSocketController
s corresponding to the sockets that this source produces.
-
getRoot
public javafx.scene.layout.VBox getRoot()
- Specified by:
getRoot
in interfaceController
- Returns:
- The root node of the controller.
-
delete
public void delete()
-
-