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.Renamable
LXSerializable.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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handleOscMessage
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
public final List<LXSnapshot.View> views
public final BooleanParameter recall
public final BooleanParameter autoCycleEligible
public LXSnapshot(LX lx)
public void onParameterChanged(LXParameter p)
LXComponent
onParameterChanged
in interface LXParameterListener
onParameterChanged
in class LXComponent
p
- Parameter that has a value changepublic String getPath()
LXComponent
getPath
in interface LXPath
getPath
in class LXComponent
public 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()
LXComponent
LXComponent.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 LXComponent
public String getOscAddress()
LXComponent
getOscAddress
in interface LXOscComponent
getOscAddress
in class LXComponent
public void dispose()
LXComponent
super.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 LXComponent
public 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 intopublic void load(LX lx, JsonObject obj)
LXComponent
load
in interface LXSerializable
load
in class LXComponent
lx
- LX instanceobj
- Object to deserializeLX library by Mark C. Slee. © 2012-2020