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 TypeMethodDescriptionboolean
Adds a step to this set.void
clear()
Clears this set.void
dispose()
void
finalize()
static XML.ObjectLoader
Returns 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.boolean
Gets the changed property.protected TrackerPanel
panel()
boolean
Removes a step from this set.void
setChanged
(boolean changed) Sets the changed property.Methods inherited from class java.util.HashSet
clone, contains, isEmpty, iterator, size, spliterator, toArray, toArray
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toString
Methods 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()
-