Package edu.wpi.grip.ui.pipeline
Class PipelineController
- java.lang.Object
-
- edu.wpi.grip.ui.pipeline.PipelineController
-
@ParametrizedController(url="Pipeline.fxml") public final class PipelineController extends java.lang.Object
A JavaFX controller for the pipeline. This controller renders a list of steps.
-
-
Constructor Summary
Constructors Constructor Description PipelineController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourceController
findSourceView(Source source)
StepController
findStepController(Step step)
java.util.Collection<ConnectionView>
getConnections()
An unmodifiable list of theConnectionView
s corresponding to all of the connections in the pipeline.java.util.Collection<SourceController>
getSources()
An unmodifiable list ofSourceController
corresponding to all of the sources in the pipeline.void
initialize()
Add initial views for the stuff in the pipeline at the time this controller is created.void
onConnectionAdded(ConnectionAddedEvent event)
void
onConnectionRemoved(ConnectionRemovedEvent event)
void
onSourceAdded(SourceAddedEvent event)
void
onSourceRemoved(SourceRemovedEvent event)
void
onStepAdded(StepAddedEvent event)
void
onStepMoved(StepMovedEvent event)
void
onStepRemoved(StepRemovedEvent event)
-
-
-
Method Detail
-
initialize
public void initialize() throws java.lang.Exception
Add initial views for the stuff in the pipeline at the time this controller is created.- Throws:
java.lang.Exception
-
getSources
public java.util.Collection<SourceController> getSources()
An unmodifiable list ofSourceController
corresponding to all of the sources in the pipeline.
-
getConnections
public java.util.Collection<ConnectionView> getConnections()
An unmodifiable list of theConnectionView
s corresponding to all of the connections in the pipeline.
-
findSourceView
public SourceController findSourceView(Source source)
- Returns:
- The
SourceController
that corresponds with the given source.
-
findStepController
public StepController findStepController(Step step)
- Returns:
- The
StepController
that corresponds with the given step.
-
onSourceAdded
public void onSourceAdded(SourceAddedEvent event)
-
onSourceRemoved
public void onSourceRemoved(SourceRemovedEvent event)
-
onStepAdded
public void onStepAdded(StepAddedEvent event)
-
onStepRemoved
public void onStepRemoved(StepRemovedEvent event)
-
onStepMoved
public void onStepMoved(StepMovedEvent event)
-
onConnectionAdded
public void onConnectionAdded(ConnectionAddedEvent event)
-
onConnectionRemoved
public void onConnectionRemoved(ConnectionRemovedEvent event)
-
-