public final class OscWorldComponent extends WorkspaceComponent
Constructor and Description |
---|
OscWorldComponent(java.lang.String name)
Create a new OSC world component with the specified name.
|
Modifier and Type | Method and Description |
---|---|
void |
addInMessage(java.lang.String address)
Add a new OSC in message with the specified address.
|
void |
addOutMessage(java.lang.String address)
Add a new OSC out message with the specified address.
|
void |
closing()
Perform cleanup after closing.
|
(package private) java.lang.String |
getOscInHost()
Return the OSC in host name.
|
(package private) int |
getOscInPort()
Return the OSC in port number.
|
(package private) java.lang.String |
getOscOutHost()
Return the OSC out host name.
|
(package private) int |
getOscOutPort()
Return the OSC out port number.
|
void |
save(java.io.OutputStream outputStream,
java.lang.String format)
Used when saving a workspace.
|
void |
update()
Called by Workspace to update the state of the component.
|
addAttributeListener, addConsumerType, addProducerType, addWorkspaceComponentListener, close, couplingAdded, couplingRemoved, fireAttributeObjectRemoved, fireAttributeTypeVisibilityChanged, fireComponentToggleEvent, fireGuiToggleEvent, firePotentialAttributesChanged, fireUpdateEvent, getAttributeManager, getConsumerTypes, getCurrentFile, getDefaultFormat, getFormats, getKeyFromObject, getLocks, getLogger, getName, getObjectFromKey, getPotentialConsumers, getPotentialProducers, getProducerTypes, getSerializePriority, getSimpleName, getUpdateOn, getUpdateParts, getVisibleConsumerTypes, getVisibleProducerTypes, getWorkspace, getWorkspaceComponentListeners, getXML, hasChangedSinceLastSave, isGuiOn, removeAttributeListener, removeWorkspaceComponentListener, setChangedSinceLastSave, setCurrentFile, setGuiOn, setLogger, setName, setSerializePriority, setUpdateOn, setWorkspace, stopped, toString
public OscWorldComponent(java.lang.String name)
name
- name of this OSC world componentpublic void closing()
closing
in class WorkspaceComponent
public void save(java.io.OutputStream outputStream, java.lang.String format)
save
in class WorkspaceComponent
outputStream
- the stream of data to write the data to.format
- a key used to define the requested format.public void update()
update
in class WorkspaceComponent
java.lang.String getOscInHost()
java.lang.String getOscOutHost()
int getOscInPort()
int getOscOutPort()
public void addInMessage(java.lang.String address)
address
- OSC in message address, must not be null and must start
with '/'
characterpublic void addOutMessage(java.lang.String address)
address
- OSC out message address, must not be null and must start
with '/'
character