public class LXScheduler extends LXComponent implements LXLoopTask
Modifier and Type | Class and Description |
---|---|
static interface |
LXScheduler.Listener |
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
BooleanParameter |
dirty |
BooleanParameter |
enabled |
List<LXScheduledProject> |
entries |
BooleanParameter |
fade |
BoundedParameter |
fadeTimeSecs |
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Constructor and Description |
---|
LXScheduler(LX lx) |
Modifier and Type | Method and Description |
---|---|
LXScheduledProject |
addEntry() |
LXScheduledProject |
addEntry(File projectFile) |
LXScheduler |
addListener(LXScheduler.Listener listener) |
double |
getTransitionProgress() |
boolean |
isInTransition() |
void |
load(LX lx,
JsonObject obj)
Loads the LX component.
|
void |
loop(double deltaMs) |
LXScheduler |
moveEntry(LXScheduledProject entry,
int index) |
void |
newSchedule() |
void |
onParameterChanged(LXParameter p)
Subclasses are free to override this if desired.
|
protected void |
openEntry(LXScheduledProject entry) |
void |
openSchedule(File file) |
LXScheduler |
removeEntry(LXScheduledProject entry) |
LXScheduler |
removeListener(LXScheduler.Listener listener) |
void |
save(LX lx,
JsonObject obj)
Serializes the LX component.
|
void |
saveSchedule() |
void |
saveSchedule(File file) |
protected void |
setSchedule(File file,
LXScheduler.Listener.Change change) |
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, dispose, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, loadParameters, removeParameter, removeParameter, saveParameters, setParent, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
public final List<LXScheduledProject> entries
public final BooleanParameter enabled
public final BooleanParameter fade
public final BoundedParameter fadeTimeSecs
public final BooleanParameter dirty
public LXScheduler(LX lx)
public void onParameterChanged(LXParameter p)
LXComponent
onParameterChanged
in interface LXParameterListener
onParameterChanged
in class LXComponent
p
- Parameter that has a value changepublic LXScheduler addListener(LXScheduler.Listener listener)
public LXScheduler removeListener(LXScheduler.Listener listener)
public LXScheduledProject addEntry()
public LXScheduledProject addEntry(File projectFile)
public LXScheduler removeEntry(LXScheduledProject entry)
public LXScheduler moveEntry(LXScheduledProject entry, int index)
public boolean isInTransition()
public double getTransitionProgress()
public void loop(double deltaMs)
loop
in interface LXLoopTask
protected void openEntry(LXScheduledProject entry)
protected void setSchedule(File file, LXScheduler.Listener.Change change)
public void newSchedule()
public void openSchedule(File file)
public void saveSchedule()
public void saveSchedule(File file)
public void load(LX lx, JsonObject obj)
LXComponent
load
in interface LXSerializable
load
in class LXComponent
lx
- LX instanceobj
- Object to deserializepublic void save(LX lx, JsonObject obj)
LXComponent
super.save(lx, obj)
at the appropriate time.save
in interface LXSerializable
save
in class LXComponent
lx
- LX instanceobj
- Object to serialize intoLX library by Mark C. Slee. © 2012-2020