Package heronarts.lx.command
Class LXCommand.Device.SetRemoteControls
java.lang.Object
heronarts.lx.command.LXCommand
heronarts.lx.command.LXCommand.Device.SetRemoteControls
- Enclosing class:
LXCommand.Device
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.command.LXCommand
LXCommand.Channel, LXCommand.Clip, LXCommand.ComponentReference<T extends LXComponent>, LXCommand.Device, LXCommand.InvalidCommandException, LXCommand.Midi, LXCommand.Mixer, LXCommand.Modulation, LXCommand.Osc, LXCommand.Palette, LXCommand.Parameter, LXCommand.ParameterReference<T extends LXParameter>, LXCommand.RemoveComponent, LXCommand.Snapshots, LXCommand.Structure -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LXCommand.ComponentReference<LXDeviceComponent> protected final String[] -
Constructor Summary
ConstructorsConstructorDescriptionSetRemoteControls(LXDeviceComponent device, LXListenableNormalizedParameter[] remoteControls) -
Method Summary
Modifier and TypeMethodDescriptionShort description of a command, to explain it to the uservoidPerform the given commandprotected LXListenableNormalizedParameter[]toControls(String[] paths) protected String[]toPaths(LXDeviceComponent device, LXListenableNormalizedParameter[] remoteControls) voidUndo the command, after it has been performed
-
Field Details
-
device
-
oldCustomControls
-
-
Constructor Details
-
SetRemoteControls
public SetRemoteControls(LXDeviceComponent device, LXListenableNormalizedParameter[] remoteControls)
-
-
Method Details
-
getDescription
Description copied from class:LXCommandShort description of a command, to explain it to the user- Specified by:
getDescriptionin classLXCommand- Returns:
- short description of command
-
perform
Description copied from class:LXCommandPerform the given command- Specified by:
performin classLXCommand- Parameters:
lx- LX instance- Throws:
LXCommand.InvalidCommandException- if the command is invalid
-
undo
Description copied from class:LXCommandUndo the command, after it has been performed- Specified by:
undoin classLXCommand- Parameters:
lx- LX instance- Throws:
LXCommand.InvalidCommandException- if the command is invalid
-
toPaths
protected String[] toPaths(LXDeviceComponent device, LXListenableNormalizedParameter[] remoteControls) -
toControls
-