public class LXSnapshot.ChannelFaderView extends LXSnapshot.View
LXSerializable.Utils
scope
Modifier | Constructor and Description |
---|---|
protected |
ChannelFaderView(LXAbstractChannel channel,
boolean enabled,
double fader) |
Modifier and Type | Method and Description |
---|---|
protected void |
finishTransition()
Subclasses may override, indicates the completion of a transition
|
LXCommand |
getCommand()
Gets 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 transition
|
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 disposed
|
protected void |
recall()
Subclasses must implement, should reapply the state of the view immediately
|
void |
save(LX lx,
JsonObject obj)
Serializes this instance into the JSON object
|
protected void |
startTransition()
Subclasses may override, indicates the beginning of a transition
|
dispose, getSnapshot, load
protected ChannelFaderView(LXAbstractChannel channel, boolean enabled, double fader)
public LXCommand getCommand()
LXSnapshot.View
getCommand
in class LXSnapshot.View
protected boolean isDependentOf(LXComponent component)
LXSnapshot.View
isDependentOf
in class LXSnapshot.View
component
- Component to testtrue
if this view depends upon that component's existence, false
otherwiseprotected void recall()
LXSnapshot.View
recall
in class LXSnapshot.View
protected void startTransition()
LXSnapshot.View
startTransition
in class LXSnapshot.View
protected void interpolate(double amount)
LXSnapshot.View
interpolate
in class LXSnapshot.View
amount
- Amount of interpolation to applyprotected void finishTransition()
LXSnapshot.View
finishTransition
in class LXSnapshot.View
public void save(LX lx, JsonObject obj)
LXSerializable
save
in interface LXSerializable
save
in class LXSnapshot.View
lx
- LX instanceobj
- Object to serialize intoLX library by Mark C. Slee. © 2012-2020