Package heronarts.lx.snapshot
Class LXSnapshot.ParameterView
java.lang.Object
heronarts.lx.snapshot.LXSnapshot.View
heronarts.lx.snapshot.LXSnapshot.ParameterView
- All Implemented Interfaces:
LXSerializable
- Enclosing class:
LXSnapshot
Class for the recall of a simple parameter value
-
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 TypeMethodDescriptionprotected voidSubclasses may override, indicates the completion of a transitionGets a command version of this view's operation, needed to make this action undoable.protected voidinterpolate(double amount) Subclasses may override, indicates the progress of a transitionprotected 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 objectprotected voidSubclasses may override, indicates the beginning of a transitionMethods inherited from class heronarts.lx.snapshot.LXSnapshot.View
dispose, getSnapshot, load
-
Method Details
-
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
-
getParameter
-
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
-
startTransition
protected void startTransition()Description copied from class:LXSnapshot.ViewSubclasses may override, indicates the beginning of a transition- Overrides:
startTransitionin classLXSnapshot.View
-
interpolate
protected void interpolate(double amount) Description copied from class:LXSnapshot.ViewSubclasses may override, indicates the progress of a transition- Overrides:
interpolatein classLXSnapshot.View- Parameters:
amount- Amount of interpolation to apply
-
finishTransition
protected void finishTransition()Description copied from class:LXSnapshot.ViewSubclasses may override, indicates the completion of a transition- Overrides:
finishTransitionin 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
-