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.SourceControllers are somewhat analogous toStepControllers in thatthe pipeline contrains them and they contain some sockets, butSourceControllers only have output sockets, and they show up in a different place.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSourceController.BaseSourceControllerFactory<S extends Source>
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddControls(javafx.scene.Node... control)Adds the given Nodes to the node that should hold the controls.voiddelete()java.util.Collection<OutputSocketController>getOutputSockets()An unmodifiable list ofOutputSocketControllers corresponding to the sockets that this source produces.javafx.scene.layout.VBoxgetRoot()SgetSource()protected voidinitialize()
-
-
-
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 ofOutputSocketControllers corresponding to the sockets that this source produces.
-
getRoot
public javafx.scene.layout.VBox getRoot()
- Specified by:
getRootin interfaceController- Returns:
- The root node of the controller.
-
delete
public void delete()
-
-