Package heronarts.lx.snapshot
Class LXSnapshot.ChannelFaderView
java.lang.Object
heronarts.lx.snapshot.LXSnapshot.View
heronarts.lx.snapshot.LXSnapshot.ChannelFaderView
- All Implemented Interfaces:
LXSerializable
- Enclosing class:
- LXSnapshot
-
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
scope
-
Constructor Summary
ModifierConstructorDescriptionprotected
ChannelFaderView
(LXAbstractChannel channel, boolean enabled, double fader) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
Subclasses may override, indicates the completion of a transitionGets a command version of this view's operation, needed to make this action undoable.protected void
interpolate
(double amount) Subclasses may override, indicates the progress of a transitionprotected 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 objectprotected void
Subclasses may override, indicates the beginning of a transitionMethods inherited from class heronarts.lx.snapshot.LXSnapshot.View
dispose, getSnapshot, load
-
Constructor Details
-
ChannelFaderView
-
-
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
-
startTransition
protected void startTransition()Description copied from class:LXSnapshot.View
Subclasses may override, indicates the beginning of a transition- Overrides:
startTransition
in classLXSnapshot.View
-
interpolate
protected void interpolate(double amount) Description copied from class:LXSnapshot.View
Subclasses may override, indicates the progress of a transition- Overrides:
interpolate
in classLXSnapshot.View
- Parameters:
amount
- Amount of interpolation to apply
-
finishTransition
protected void finishTransition()Description copied from class:LXSnapshot.View
Subclasses may override, indicates the completion of a transition- Overrides:
finishTransition
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
-