public abstract class LXDeviceComponent extends LXLayeredComponent implements LXModulationContainer, LXOscComponent, LXMidiListener
LXLayeredComponent.Buffered
LXModulatorComponent.Profiler
LXComponent.Placeholder, LXComponent.Renamable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
BooleanParameter |
controlsExpanded |
BooleanParameter |
crashed |
static Comparator<Class<? extends LXDeviceComponent>> |
DEVICE_CATEGORY_NAME_SORT |
protected static int |
DEVICE_VERSION_UNSPECIFIED |
protected static String |
KEY_DEVICE_VERSION |
LXModulationEngine |
modulation |
BooleanParameter |
modulationExpanded |
colors, layers, palette
model
modulators, profiler
controlSurfaceSemaphore, KEY_CLASS, KEY_COMPONENT_ID, KEY_ID, KEY_PARAMETER_PATH, KEY_PATH, label, lx, modulationColor
Modifier | Constructor and Description |
---|---|
protected |
LXDeviceComponent(LX lx) |
protected |
LXDeviceComponent(LX lx,
String label) |
Modifier and Type | Method and Description |
---|---|
static String |
getCategory(Class<? extends LXDeviceComponent> clazz) |
Throwable |
getCrash() |
String |
getCrashStackTrace() |
int |
getDeviceVersion()
Subclasses may override this and provide a version identifier.
|
LXModulationEngine |
getModulationEngine() |
LXListenableNormalizedParameter[] |
getRemoteControls()
Subclasses may override this.
|
protected boolean |
isRemoteControl(LXListenableNormalizedParameter parameter)
Subclasses may override this to filter out parameters that should not
be controlled by a remote surface
|
void |
loop(double deltaMs) |
void |
save(LX lx,
JsonObject obj)
Serializes the LX component.
|
protected void |
setRemoteControls(LXListenableNormalizedParameter... remoteControls) |
addColor, addColor, addLayer, afterLayers, blendColor, blendColor, clearColors, dispose, getBuffer, getColor, getColor, getColors, getLayers, onLoop, removeLayer, setBuffer, setBuffer, setColor, setColor, setColor, setColors, subtractColor
getModel, onModelChanged, setModel
addModulator, addModulator, addModulator, constructProfiler, getModulator, getModulators, moveModulator, removeModulator, startModulator
addArray, addChild, addInternalParameter, addParameter, addParameter, contains, copyParameters, getChild, getComponentName, getComponentName, getComponentName, getId, getLabel, getLX, getOscAddress, getOscLabel, getOscPath, getParameter, getParameters, getParent, getPath, handleOscMessage, load, loadParameters, onParameterChanged, removeParameter, removeParameter, saveParameters, setParent, toString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getOscAddress, handleOscMessage
aftertouchReceived, controlChangeReceived, noteOffReceived, noteOnReceived, pitchBendReceived, programChangeReceived
get, get, getCanonicalLabel, getCanonicalLabel, getCanonicalPath, getCanonicalPath, getComponent, getComponent, getParameter, getParameter
public static final Comparator<Class<? extends LXDeviceComponent>> DEVICE_CATEGORY_NAME_SORT
protected static final int DEVICE_VERSION_UNSPECIFIED
public final LXModulationEngine modulation
public final BooleanParameter crashed
public final BooleanParameter controlsExpanded
public final BooleanParameter modulationExpanded
protected static final String KEY_DEVICE_VERSION
protected LXDeviceComponent(LX lx)
public static String getCategory(Class<? extends LXDeviceComponent> clazz)
protected boolean isRemoteControl(LXListenableNormalizedParameter parameter)
parameter
- Parameter to checkprotected void setRemoteControls(LXListenableNormalizedParameter... remoteControls)
public LXListenableNormalizedParameter[] getRemoteControls()
public int getDeviceVersion()
public void loop(double deltaMs)
loop
in interface LXLoopTask
loop
in class LXLayeredComponent
public Throwable getCrash()
public String getCrashStackTrace()
public LXModulationEngine getModulationEngine()
getModulationEngine
in interface LXModulationContainer
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 intoLX library by Mark C. Slee. © 2012-2020