Package heronarts.lx.snapshot
Class LXSnapshot.RackPatternView
java.lang.Object
heronarts.lx.snapshot.LXSnapshot.View
heronarts.lx.snapshot.LXSnapshot.RackPatternView
- All Implemented Interfaces:
LXSerializable
- Enclosing class:
LXSnapshot
View for which pattern is active on a rack. Painfully redundant with ActivePatternView
but easier to keep stored data format clear for backwards compatibility with a dedicated
type here.
-
Nested Class Summary
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils -
Field Summary
FieldsFields inherited from class heronarts.lx.snapshot.LXSnapshot.View
enabled, scope -
Method Summary
Modifier and TypeMethodDescriptionGets a command version of this view's operation, needed to make this action undoable.Gets a description of the behavior of the parameter or field represented by the viewgetLabel()Gets a descriptive label for the parameter or field represented by the viewGets the component that owns the parameter/field referenced by the viewGets a unique path identifier for this view in the context of its snapshotprotected booleanisDependentOf(LXComponent component) Subclasses must implement, determines whether the given view is dependent upon the specified component, and whether this view should be removed if the component is disposedprotected voidrecall()Subclasses must implement, should reapply the state of the view immediatelyvoidsave(LX lx, JsonObject obj) Serializes this instance into the JSON objectvoidupdate(int patternIndex) Methods inherited from class heronarts.lx.snapshot.LXSnapshot.View
dispose, finishTransition, getSnapshot, interpolate, load, startTransition
-
Field Details
-
rack
-
-
Method Details
-
getPattern
-
update
public void update(int patternIndex) -
getLabel
Description copied from class:LXSnapshot.ViewGets a descriptive label for the parameter or field represented by the view- Specified by:
getLabelin classLXSnapshot.View- Returns:
- Descriptive label for the parameter or field represented by the view
-
getDescription
Description copied from class:LXSnapshot.ViewGets a description of the behavior of the parameter or field represented by the view- Specified by:
getDescriptionin classLXSnapshot.View- Returns:
- Description of the behavior of the parameter or field represented by the view
-
getViewComponent
Description copied from class:LXSnapshot.ViewGets the component that owns the parameter/field referenced by the view- Specified by:
getViewComponentin classLXSnapshot.View- Returns:
- Component that owns the parameter/field referenced by the view
-
getViewPath
Description copied from class:LXSnapshot.ViewGets a unique path identifier for this view in the context of its snapshot- Specified by:
getViewPathin classLXSnapshot.View- Returns:
- Unique path identifier for this view in the context of its snapshot
-
getCommand
Description copied from class:LXSnapshot.ViewGets a command version of this view's operation, needed to make this action undoable.- Specified by:
getCommandin classLXSnapshot.View- Returns:
- Command implementation of this view
-
isDependentOf
Description copied from class:LXSnapshot.ViewSubclasses must implement, determines whether the given view is dependent upon the specified component, and whether this view should be removed if the component is disposed- Specified by:
isDependentOfin classLXSnapshot.View- Parameters:
component- Component to test- Returns:
trueif this view depends upon that component's existence,falseotherwise
-
recall
protected void recall()Description copied from class:LXSnapshot.ViewSubclasses must implement, should reapply the state of the view immediately- Specified by:
recallin classLXSnapshot.View
-
save
Description copied from interface:LXSerializableSerializes this instance into the JSON object- Specified by:
savein interfaceLXSerializable- Overrides:
savein classLXSnapshot.View- Parameters:
lx- LX instanceobj- Object to serialize into
-