public class LXSnapshot extends LXComponent implements LXComponent.Renamable, LXOscComponent
| Modifier and Type | Class and Description |
|---|---|
class |
LXSnapshot.ActivePatternView
View for which pattern is active on a channel
|
class |
LXSnapshot.ChannelFaderView |
class |
LXSnapshot.ParameterView
Class for the recall of a simple parameter value
|
class |
LXSnapshot.View
A view is a component of a snapshot, it's a single piece of the snapshot that
is "looking at" one piece of state.
|
static class |
LXSnapshot.ViewScope |
static class |
LXSnapshot.ViewType
Type of snapshot view
|
LXComponent.Placeholder, LXComponent.RenamableLXSerializable.Utils| Modifier and Type | Field and Description |
|---|---|
BooleanParameter |
autoCycleEligible |
BooleanParameter |
recall |
List<LXSnapshot.View> |
views
Public immutable list of all the views this snapshot comtains.
|
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor| Constructor and Description |
|---|
LXSnapshot(LX lx) |
| Modifier and Type | Method and Description |
|---|---|
LXSnapshot.View |
addView(JsonObject viewObj)
Adds a view to this snapshot from prior saved state
|
void |
addView(LXSnapshot.View view)
Add a view to this snapshot
|
void |
dispose()
Invoked when a component is being removed from the system and will no longer be used at all.
|
int |
getIndex()
Public accessor for the index of this snapshot in the list
|
String |
getOscAddress()
Gets the OSC address for this object
|
String |
getOscPath()
Accessor for this component's OSC path relative to its parent.
|
String |
getPath()
Accessor for the path of this object.
|
void |
load(LX lx,
JsonObject obj)
Loads the LX component.
|
void |
onParameterChanged(LXParameter p)
Subclasses are free to override this if desired.
|
void |
removeView(LXSnapshot.View view)
Remove a view from this snapshot
|
void |
save(LX lx,
JsonObject obj)
Serializes the LX component.
|
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscLabel, getParameter, getParameters, getParent, handleOscMessage, loadParameters, removeParameter, removeParameter, saveParameters, setParent, toString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waithandleOscMessageget, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameterpublic final List<LXSnapshot.View> views
public final BooleanParameter recall
public final BooleanParameter autoCycleEligible
public LXSnapshot(LX lx)
public void onParameterChanged(LXParameter p)
LXComponentonParameterChanged in interface LXParameterListeneronParameterChanged in class LXComponentp - Parameter that has a value changepublic String getPath()
LXComponentgetPath in interface LXPathgetPath in class LXComponentpublic int getIndex()
public LXSnapshot.View addView(JsonObject viewObj)
viewObj - JSON serialized viewpublic void addView(LXSnapshot.View view)
view - Viewpublic void removeView(LXSnapshot.View view)
view - View to removepublic String getOscPath()
LXComponentLXComponent.getPath(), but certain subclasses may modify this
to support different types of OSC paths that aren't required to match the LX
hierarchy.getOscPath in class LXComponentpublic String getOscAddress()
LXComponentgetOscAddress in interface LXOscComponentgetOscAddress in class LXComponentpublic void dispose()
LXComponentsuper.dispose() at the appropriate
time to perform the basic cleanup, which may need to happen either before or after cleaning
up other objects.dispose in class LXComponentpublic void save(LX lx, JsonObject obj)
LXComponentsuper.save(lx, obj)
at the appropriate time.save in interface LXSerializablesave in class LXComponentlx - LX instanceobj - Object to serialize intopublic void load(LX lx, JsonObject obj)
LXComponentload in interface LXSerializableload in class LXComponentlx - LX instanceobj - Object to deserializeLX library by Mark C. Slee. © 2012-2020