Package heronarts.lx.clip
Class LXClipEngine
java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.clip.LXClipEngine
- All Implemented Interfaces:
LXPath
,LXSerializable
,LXOscComponent
,LXParameterListener
-
Nested Class Summary
Nested classes/interfaces inherited from class heronarts.lx.LXComponent
LXComponent.Hidden, LXComponent.Placeholder, LXComponent.Renamable
Nested classes/interfaces inherited from interface heronarts.lx.LXSerializable
LXSerializable.Utils
-
Field Summary
Modifier and TypeFieldDescriptionfinal BooleanParameter
final DiscreteParameter
static final int
static final int
final DiscreteParameter
final BooleanParameter
final BoundedParameter
Amount of time taken in seconds to transition into a new snapshot viewFields 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetScene
(int index) Get the boolean parameter that launches a scenelaunchScene
(int index) Launches the scene at given indexvoid
load
(LX lx, JsonObject obj) Loads the LX component.void
Subclasses are free to override this if desired.setFocusedClip
(LXClip clip) Stops all running clipsMethods inherited from class heronarts.lx.LXComponent
addArray, addChild, addInternalParameter, addLegacyInternalParameter, addLegacyParameter, addParameter, addParameter, addParameters, contains, copyParameters, dispose, getCategory, getChild, getComponentName, getComponentName, getComponentName, getDescription, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, hasParameter, isValidOscParameter, 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.osc.LXOscComponent
getOscAddress, handleOscMessage
Methods inherited from interface heronarts.lx.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
MIN_SCENES
public static final int MIN_SCENES- See Also:
-
MAX_SCENES
public static final int MAX_SCENES- See Also:
-
focusedClip
-
clipViewExpanded
-
clipViewGridOffset
-
numScenes
-
snapshotTransitionTimeSecs
Amount of time taken in seconds to transition into a new snapshot view -
snapshotTransitionEnabled
-
-
Constructor Details
-
LXClipEngine
-
-
Method Details
-
onParameterChanged
Description copied from class:LXComponent
Subclasses are free to override this if desired. It will automatically fire for any listenable parameter that is registered with this component.- Specified by:
onParameterChanged
in interfaceLXParameterListener
- Overrides:
onParameterChanged
in classLXComponent
- Parameters:
p
- Parameter that has a value change
-
getFocusedClip
-
setFocusedClip
-
getScene
Get the boolean parameter that launches a scene- Parameters:
index
- Index of scene- Returns:
- Scene at index
-
launchScene
Launches the scene at given index- Parameters:
index
- Scene index- Returns:
- this
-
stopClips
Stops all running clips- Returns:
- this
-
load
Description copied from class:LXComponent
Loads the LX component. Restores the ID of the component, as well as its internal and user-facing parameters. Any explicitly registered children will be automatically loaded, so long as they are direct descendants. Dynamic arrays will not be automatically loaded, this is left to subclasses to implement.- Specified by:
load
in interfaceLXSerializable
- Overrides:
load
in classLXComponent
- Parameters:
lx
- LX instanceobj
- Object to deserialize
-