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.PlaceholderNested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Description, LXComponent.Hidden, LXComponent.Name, LXComponent.PluginRequired, LXComponent.RenamableNested classes/interfaces inherited from interface heronarts.lx.parameter.LXParameter
LXParameter.Collection, LXParameter.Formatter, LXParameter.Monitor, LXParameter.MultiMonitor, LXParameter.Polarity, LXParameter.UnitsNested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.UtilsNested 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, midiSourceFields inherited from class heronarts.lx.LXRunnableComponent
runMs, running, triggerFields inherited from class heronarts.lx.LXComponent
childArrays, 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, presetFileFields inherited from interface heronarts.lx.LXPath
DEFAULT_SEPARATOR, ROOT, ROOT_PREFIX, ROOT_SLASHFields inherited from interface heronarts.lx.studio.ui.device.UIControls
COL_WIDTH, KNOB_SIDE_MARGIN -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildModulatorControls(LXStudio.UI ui, UIModulator uiModulator, FocusedPatternControls modulator) protected doublecomputeValue(double deltaMs) Implementation method to advance the modulator's internal state.voiddispose()Invoked when a component is being removed from the system and will no longer be used at all.voidonDeviceFocused(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, updateValueMethods inherited from class heronarts.lx.LXRunnableComponent
isRunning, onParameterChanged, onReset, onStart, onStop, onTrigger, postRun, reset, start, stop, toggle, triggerMethods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, assertDisposed, contains, copyParameters, getCategory, getChild, getComponentDescription, 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, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface heronarts.lx.parameter.LXParameter
getBaseValue, getBaseValuef, getLabel, getParentParameter, getValuef, isMappable, reset, setMappableMethods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getDescription, getParent, isDescendantMethods 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, verticalBreakMethods 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:LXModulatorImplementation method to advance the modulator's internal state. Subclasses must provide and update value appropriately.- Specified by:
computeValuein classLXModulator- Parameters:
deltaMs- Number of milliseconds to advance by- Returns:
- Computed value
-
onDeviceFocused
- Specified by:
onDeviceFocusedin interfaceFocusedDevice.Listener
-
buildModulatorControls
public void buildModulatorControls(LXStudio.UI ui, UIModulator uiModulator, FocusedPatternControls modulator) - Specified by:
buildModulatorControlsin interfaceUIModulatorControls<FocusedPatternControls>
-
dispose
public void dispose()Description copied from class:LXComponentInvoked 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:
disposein interfaceLXParameter- Overrides:
disposein classLXComponent
-