public class ControlMap
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
ControlMap.dynamicControlCreatedListener
Create an Interface where we can look for created Dynamic Controls
|
static interface |
ControlMap.dynamicControlRemovedListener
Create an Interface where we can look for created Dynamic Controls
|
Modifier and Type | Method and Description |
---|---|
void |
addControl(DynamicControl control)
Add a control to our map.
|
void |
addDynamicControlAdvertiseListener(OSCVocabulary.OSCAdvertiseListener listener) |
void |
addDynamicControlCreatedListener(ControlMap.dynamicControlCreatedListener listener) |
void |
addDynamicControlRemovedListener(ControlMap.dynamicControlRemovedListener listener) |
void |
addGlobalDynamicControlAdvertiseListener(OSCVocabulary.OSCAdvertiseListener listener) |
void |
addPersistentControl(DynamicControl control)
Add a control to the persistentControls list.
|
void |
clearAllListeners()
Erase all the listeners
|
static void |
disableControlMimic(boolean disable)
We will disable sending messages to other controls with same name and scope
when we are in plugin
|
DynamicControl |
getControl(java.lang.String map_key)
Get the Dynamic Control based on HashCode
|
java.util.List<DynamicControl> |
getControlsByName(java.lang.String name)
Get the Control list by name.
|
static ControlMap |
getInstance()
Get the Control Map
|
java.util.List<DynamicControl> |
GetSortedControls()
get all Dynamic Controls sorted by creation order
|
boolean |
isPersistentControl(DynamicControl control)
Test if the Dynamic Control is a Persistent control
|
void |
removeControl(DynamicControl control)
Remove all listeners and reference to Dynamic Control
|
void |
removeDynamicControlRemovedListener(ControlMap.dynamicControlRemovedListener listener) |
public static void disableControlMimic(boolean disable)
disable
- set true for pluginpublic void addDynamicControlCreatedListener(ControlMap.dynamicControlCreatedListener listener)
public void addDynamicControlAdvertiseListener(OSCVocabulary.OSCAdvertiseListener listener)
public void addDynamicControlRemovedListener(ControlMap.dynamicControlRemovedListener listener)
public void removeDynamicControlRemovedListener(ControlMap.dynamicControlRemovedListener listener)
public void addGlobalDynamicControlAdvertiseListener(OSCVocabulary.OSCAdvertiseListener listener)
public static ControlMap getInstance()
public void addControl(DynamicControl control)
control
- The Dynamic Control we are addingpublic java.util.List<DynamicControl> getControlsByName(java.lang.String name)
name
- the name used as a search keypublic DynamicControl getControl(java.lang.String map_key)
map_key
- the String we are using as the keypublic void removeControl(DynamicControl control)
control
- the control to removepublic void addPersistentControl(DynamicControl control)
control
- the DynamicControl
object we are addingpublic boolean isPersistentControl(DynamicControl control)
control
- the DynamicControl
object we are addingaddPersistentControl(DynamicControl)
()}public void clearAllListeners()
public java.util.List<DynamicControl> GetSortedControls()