Package heronarts.lx.scheduler
Class LXScheduler
java.lang.Object
heronarts.lx.LXComponent
heronarts.lx.scheduler.LXScheduler
- All Implemented Interfaces:
LXLoopTask
,LXPath
,LXSerializable
,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 BooleanParameter
final List<LXScheduledProject>
final BooleanParameter
final BoundedParameter
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddEntry()
addListener
(LXScheduler.Listener listener) double
boolean
void
load
(LX lx, JsonObject obj) Loads the LX component.void
loop
(double deltaMs) moveEntry
(LXScheduledProject entry, int index) void
void
Subclasses are free to override this if desired.protected void
openEntry
(LXScheduledProject entry) void
openSchedule
(File file) void
openSchedule
(File file, boolean openInitialProject) removeEntry
(LXScheduledProject entry) removeListener
(LXScheduler.Listener listener) void
save
(LX lx, JsonObject obj) Serializes the LX component.void
void
saveSchedule
(File file) protected void
setSchedule
(File file, LXScheduler.Listener.Change change) Methods 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, 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.LXPath
getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, isDescendant
-
Field Details
-
entries
-
enabled
-
fade
-
fadeTimeSecs
-
dirty
-
-
Constructor Details
-
LXScheduler
-
-
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
-
addListener
-
removeListener
-
addEntry
-
addEntry
-
removeEntry
-
moveEntry
-
isInTransition
public boolean isInTransition() -
getTransitionProgress
public double getTransitionProgress() -
loop
public void loop(double deltaMs) - Specified by:
loop
in interfaceLXLoopTask
-
openEntry
-
setSchedule
-
newSchedule
public void newSchedule() -
openSchedule
-
openSchedule
-
saveSchedule
public void saveSchedule() -
saveSchedule
-
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
-
save
Description copied from class:LXComponent
Serializes the LX component. By default, all internal and user-facing parameters are serialized, as well as any explicitly registered child components. Note that child arrays are not serialized, or any other dynamic components. Subclasses may override to perform more saving, and are expected to callsuper.save(lx, obj)
at the appropriate time.- Specified by:
save
in interfaceLXSerializable
- Overrides:
save
in classLXComponent
- Parameters:
lx
- LX instanceobj
- Object to serialize into
-