Package heronarts.lx.modulator
Class FocusedPatternControls
java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.LXRunnableComponent
heronarts.lx.modulator.LXModulator
heronarts.lx.modulator.FocusedPatternControls
- All Implemented Interfaces:
LXComponent.Renamable
,LXLoopTask
,LXPath
,LXSerializable
,FocusedDevice.Listener
,LXParameter
,LXParameterListener
,UIControls
,UIModulatorControls<FocusedPatternControls>
@Global("Focused Pattern")
@LXCategory("Macro")
public class FocusedPatternControls
extends LXModulator
implements FocusedDevice.Listener, UIModulatorControls<FocusedPatternControls>
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.modulator.LXModulator
LXModulator.Device, LXModulator.Global, LXModulator.Placeholder
Nested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Hidden, LXComponent.Renamable
Nested classes/interfaces inherited from interface heronarts.lx.parameter.LXParameter
LXParameter.Collection, LXParameter.Formatter, LXParameter.Monitor, LXParameter.MultiMonitor, LXParameter.Polarity, LXParameter.Units
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils
Nested classes/interfaces inherited from interface heronarts.lx.studio.ui.modulation.UIModulatorControls
UIModulatorControls.Missing, UIModulatorControls.Placeholder
-
Field Summary
Fields inherited from class heronarts.lx.modulator.LXModulator
crashed, midiFilter
Fields inherited from class heronarts.lx.LXRunnableComponent
runMs, running, trigger
Fields inherited from class heronarts.lx.LXComponent
children, internalParameters, KEY_CHILDREN, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_INTERNAL, KEY_PARAMETER_PATH, KEY_PARAMETERS, KEY_PATH, KEY_RESET, label, legacyInternalParameters, legacyParameters, lx, modulationColor, modulationControlsExpanded, modulationsExpanded, parameters, presetFile
Fields inherited from interface heronarts.lx.LXPath
ROOT, ROOT_PREFIX, ROOT_SLASH
Fields inherited from interface heronarts.lx.studio.ui.device.UIControls
COL_WIDTH, KNOB_SIDE_MARGIN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
buildModulatorControls
(LXStudio.UI ui, UIModulator uiModulator, FocusedPatternControls modulator) protected double
computeValue
(double deltaMs) Implementation method to advance the modulator's internal state.void
dispose()
Invoked when a component is being removed from the system and will no longer be used at all.void
onDeviceFocused
(LXDeviceComponent device) Methods inherited from class heronarts.lx.modulator.LXModulator
autostart, disableAutoStart, getCrash, getCrashStackTrace, getFormatter, getIndex, getOscAddress, getOscPath, getPath, getPolarity, getUnits, getValue, isMappingSource, loop, onSetValue, run, setComponent, setFormatter, setIndex, setMappingSource, setPolarity, setUnits, setValue, setValue, updateValue
Methods inherited from class heronarts.lx.LXRunnableComponent
isRunning, onParameterChanged, onReset, onStart, onStop, onTrigger, postRun, reset, start, stop, toggle, trigger
Methods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, contains, copyParameters, getCategory, getChild, getComponentName, getComponentName, getComponentName, getDescription, getId, getLabel, getLX, getOscLabel, getParameter, getParameters, getParent, handleOscMessage, hasParameter, isValidOscParameter, load, loadParameters, loadPreset, removeParameter, removeParameter, removeParameter, removeParameter, save, savePreset, setDescription, setParent, toOscQuery, toOscQuery, toOscQuery, toString, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface heronarts.lx.parameter.LXParameter
getBaseValue, getBaseValuef, getLabel, getParentParameter, getValuef, isMappable, reset, setMappable
Methods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getDescription, getParent, isDescendant
Methods inherited from interface heronarts.lx.studio.ui.device.UIControls
addColumn, addColumn, addColumn, addColumn, addColumn, addVerticalBreak, controlLabel, controlLabel, horizontalBreak, newButton, newButton, newButton, newButton, newColorControl, newColorControl, newDoubleBox, newDoubleBox, newDropMenu, newDropMenu, newEnumBox, newEnumBox, newHorizontalSlider, newHorizontalSlider, newIntegerBox, newIntegerBox, newKnob, newKnob, newTextBox, newTextBox, newTextBox, newVerticalSlider, sectionLabel, sectionLabel, verticalBreak
Methods inherited from interface heronarts.lx.studio.ui.modulation.UIModulatorControls
disposeModulatorControls
-
Constructor Details
-
FocusedPatternControls
-
-
Method Details
-
computeValue
protected double computeValue(double deltaMs) Description copied from class:LXModulator
Implementation method to advance the modulator's internal state. Subclasses must provide and update value appropriately.- Specified by:
computeValue
in classLXModulator
- Parameters:
deltaMs
- Number of milliseconds to advance by- Returns:
- Computed value
-
onDeviceFocused
- Specified by:
onDeviceFocused
in interfaceFocusedDevice.Listener
-
buildModulatorControls
public void buildModulatorControls(LXStudio.UI ui, UIModulator uiModulator, FocusedPatternControls modulator) - Specified by:
buildModulatorControls
in interfaceUIModulatorControls<FocusedPatternControls>
-
dispose
public void dispose()Description copied from class:LXComponent
Invoked when a component is being removed from the system and will no longer be used at all. This unregisters the component and should free up any resources and parameter listeners. Ideally after this method is called the object should be eligible for garbage collection. Subclasses are generally expected to override this method to handle their particular cleanup work. They should also generally callsuper.dispose()
at the appropriate time to perform the basic cleanup, which may need to happen either before or after cleaning up other objects.- Specified by:
dispose
in interfaceLXParameter
- Overrides:
dispose
in classLXComponent
-