Class StepSet
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Step>,Collection<Step>,Set<Step>
A StepSet is a HashSet of Steps that can be saved in an XMLControl.
- Author:
- Douglas Brown
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAdds a step to this set.voidclear()Clears this set.voiddispose()voidfinalize()static XML.ObjectLoaderReturns an ObjectLoader to save and load data for this class.Gets the XMLControl that defines the Undo state for this set.TTrack[]Returns all tracks associated with the steps.Gets the XMLControl that defines the Undo state for the track.booleanGets the changed property.protected TrackerPanelpanel()booleanRemoves a step from this set.voidsetChanged(boolean changed) Sets the changed property.Methods inherited from class java.util.HashSet
clone, contains, isEmpty, iterator, size, spliterator, toArray, toArrayMethods inherited from class java.util.AbstractSet
equals, hashCode, removeAllMethods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toStringMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Constructor Details
-
StepSet
Constructs a StepSet.- Parameters:
panel- the TrackerPanel that draws the Steps
-
-
Method Details
-
add
Adds a step to this set. -
remove
Removes a step from this set. -
clear
public void clear()Clears this set. -
setChanged
public void setChanged(boolean changed) Sets the changed property. When true, the steps in this set have been changed.- Parameters:
changed- true if changed
-
isChanged
public boolean isChanged()Gets the changed property. When true, the steps in this set have been changed.- Returns:
- true if changed
-
getStepsUndoControl
Gets the XMLControl that defines the Undo state for this set.- Returns:
- the undo XMLControl
-
getTrackUndoControl
Gets the XMLControl that defines the Undo state for the track.- Returns:
- the track XMLControl
-
getTracks
Returns all tracks associated with the steps.- Returns:
- a track array
-
getLoader
Returns an ObjectLoader to save and load data for this class.- Returns:
- the object loader
-
panel
-
dispose
public void dispose() -
finalize
public void finalize()
-