|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.stanford.hci.dtools.statechart.model.ModelElement edu.stanford.hci.dtools.deviceeditor.components.DeviceDiagramModel
public class DeviceDiagramModel
This software is distributed under the BSD License.
This code is partially based on code that is copyright (c) 2004 Elias Volanakis. See License.txt
Field Summary | |
---|---|
static java.lang.String |
CHILD_ADDED_PROP
Property ID to use when a child is added to this diagram. |
static java.lang.String |
CHILD_REMOVED_PROP
Property ID to use when a child is removed from this diagram. |
Constructor Summary | |
---|---|
DeviceDiagramModel()
listens to incoming OSC messages |
Method Summary | |
---|---|
boolean |
addChild(DeviceModel d)
For use with the device editor -- adds a DeviceModel to this diagram Always places the Rectangular base device in the back! |
boolean |
addChild(IOComponent s)
For use with the device editor -- adds all IO components. |
void |
executeCommand(org.eclipse.gef.commands.Command cmd)
|
void |
export()
|
void |
export(java.util.Map<StateModel,java.util.List<ComponentConnectionModel>> map)
|
void |
fixOscListeners()
|
java.util.List<ModelElement> |
getChildren()
Return a List of Shapes in this diagram. |
DeviceEditor |
getDeviceEditor()
|
boolean |
removeChild(DeviceModel s)
|
boolean |
removeChild(IOComponent s)
|
void |
setDeviceEditor(DeviceEditor editor)
|
void |
setHardwareConnection(boolean b)
set the hardwareconnectionstatus of all iocomponent children and export |
Methods inherited from class edu.stanford.hci.dtools.statechart.model.ModelElement |
---|
addPropertyChangeListener, getEditableValue, getPropertyDescriptors, getPropertyValue, isPropertySet, removePropertyChangeListener, resetPropertyValue, setPropertyValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CHILD_ADDED_PROP
public static final java.lang.String CHILD_REMOVED_PROP
Constructor Detail |
---|
public DeviceDiagramModel()
Method Detail |
---|
public boolean addChild(DeviceModel d)
public boolean addChild(IOComponent s)
s
-
public java.util.List<ModelElement> getChildren()
public boolean removeChild(IOComponent s)
public boolean removeChild(DeviceModel s)
public void setDeviceEditor(DeviceEditor editor)
public DeviceEditor getDeviceEditor()
public void export(java.util.Map<StateModel,java.util.List<ComponentConnectionModel>> map)
public void export()
public void executeCommand(org.eclipse.gef.commands.Command cmd)
public void setHardwareConnection(boolean b)
public void fixOscListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |