Package edu.wpi.grip.core.events
Class StepAddedEvent
- java.lang.Object
-
- edu.wpi.grip.core.events.StepAddedEvent
-
- All Implemented Interfaces:
DirtiesSaveEvent
,LoggableEvent
public class StepAddedEvent extends java.lang.Object implements DirtiesSaveEvent, LoggableEvent
An event that occurs when a new step is added to the pipeline. This is triggered by the user adding a step with the GUI.
-
-
Constructor Summary
Constructors Constructor Description StepAddedEvent(Step step)
StepAddedEvent(Step step, int index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.OptionalInt
getIndex()
Step
getStep()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface edu.wpi.grip.core.events.DirtiesSaveEvent
doesDirtySave
-
Methods inherited from interface edu.wpi.grip.core.events.LoggableEvent
asLoggableString, logLevel
-
-
-
-
Constructor Detail
-
StepAddedEvent
public StepAddedEvent(Step step, @Nonnegative int index)
- Parameters:
step
- The step being addedindex
- The index that the step should be added at.
-
StepAddedEvent
public StepAddedEvent(Step step)
- Parameters:
step
- The step being added to the end of the pipeline.
-
-
Method Detail
-
getStep
public Step getStep()
- Returns:
- The step being added.
-
getIndex
public java.util.OptionalInt getIndex()
- Returns:
- The index that the step should be added at, unless the step should be added at the end.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-