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 SourceControllerfindSourceView(Source source)StepControllerfindStepController(Step step)java.util.Collection<ConnectionView>getConnections()An unmodifiable list of theConnectionViews corresponding to all of the connections in the pipeline.java.util.Collection<SourceController>getSources()An unmodifiable list ofSourceControllercorresponding to all of the sources in the pipeline.voidinitialize()Add initial views for the stuff in the pipeline at the time this controller is created.voidonConnectionAdded(ConnectionAddedEvent event)voidonConnectionRemoved(ConnectionRemovedEvent event)voidonSourceAdded(SourceAddedEvent event)voidonSourceRemoved(SourceRemovedEvent event)voidonStepAdded(StepAddedEvent event)voidonStepMoved(StepMovedEvent event)voidonStepRemoved(StepRemovedEvent event)
-
-
-
Method Detail
-
initialize
public void initialize() throws java.lang.ExceptionAdd 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 ofSourceControllercorresponding to all of the sources in the pipeline.
-
getConnections
public java.util.Collection<ConnectionView> getConnections()
An unmodifiable list of theConnectionViews corresponding to all of the connections in the pipeline.
-
findSourceView
public SourceController findSourceView(Source source)
- Returns:
- The
SourceControllerthat corresponds with the given source.
-
findStepController
public StepController findStepController(Step step)
- Returns:
- The
StepControllerthat 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)
-
-