Package heronarts.lx.snapshot
Class LXSnapshot.ActivePatternView
java.lang.Object
heronarts.lx.snapshot.LXSnapshot.View
heronarts.lx.snapshot.LXSnapshot.ActivePatternView
- All Implemented Interfaces:
LXSerializable
- Enclosing class:
- LXSnapshot
View for which pattern is active on a channel
-
Nested Class Summary
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils
-
Field Summary
Fields 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.protected boolean
isDependentOf
(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 void
recall()
Subclasses must implement, should reapply the state of the view immediatelyvoid
save
(LX lx, JsonObject obj) Serializes this instance into the JSON objectMethods inherited from class heronarts.lx.snapshot.LXSnapshot.View
dispose, finishTransition, getSnapshot, interpolate, load, startTransition
-
Method Details
-
getCommand
Description copied from class:LXSnapshot.View
Gets a command version of this view's operation, needed to make this action undoable.- Specified by:
getCommand
in classLXSnapshot.View
- Returns:
- Command implementation of this view
-
isDependentOf
Description copied from class:LXSnapshot.View
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 disposed- Specified by:
isDependentOf
in classLXSnapshot.View
- Parameters:
component
- Component to test- Returns:
true
if this view depends upon that component's existence,false
otherwise
-
recall
protected void recall()Description copied from class:LXSnapshot.View
Subclasses must implement, should reapply the state of the view immediately- Specified by:
recall
in classLXSnapshot.View
-
save
Description copied from interface:LXSerializable
Serializes this instance into the JSON object- Specified by:
save
in interfaceLXSerializable
- Overrides:
save
in classLXSnapshot.View
- Parameters:
lx
- LX instanceobj
- Object to serialize into
-