|
||||||||||
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.statechart.model.DiagramModel
public class DiagramModel
This software is distributed under the BSD License.
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 | |
---|---|
DiagramModel()
|
Method Summary | |
---|---|
boolean |
addChild(ShapeModel s)
Add a shape to this diagram. |
java.util.List<ModelElement> |
getChildren()
Return a List of Shapes in this diagram. |
DeviceConfiguration |
getDeviceConfiguration()
Returns our device configuration |
RunModeTracker |
getRunModeTracker()
|
StatechartEditor |
getStatechartEditor()
|
boolean |
removeChild(ShapeModel s)
Remove a shape from this diagram. |
void |
setDeviceConfiguration(DeviceConfiguration dc)
|
void |
setShapesEditor(StatechartEditor editor)
|
void |
setStartStateMarker(StateModel state)
Tells the marker to start tracking a new state. |
void |
updateDeviceConfiguration(DeviceConfiguration newConfig,
IOComponentHashMap deviceMapping,
java.util.Map<StateModel,java.util.List<ComponentConnectionModel>> componentConnectionMap)
Call when the device configuration has changed and the diagram should propogate this change amongst its children. |
void |
updateStartStateMarkerModel()
Tells the marker to update its location (presumably because the underlying state has moved) |
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 DiagramModel()
Method Detail |
---|
public boolean addChild(ShapeModel s)
s
- a non-null shape instance
public void setStartStateMarker(StateModel state)
state
- public void updateStartStateMarkerModel()
public java.util.List<ModelElement> getChildren()
public boolean removeChild(ShapeModel s)
s
- a non-null shape instance;
public void updateDeviceConfiguration(DeviceConfiguration newConfig, IOComponentHashMap deviceMapping, java.util.Map<StateModel,java.util.List<ComponentConnectionModel>> componentConnectionMap)
newConfig
- public void setShapesEditor(StatechartEditor editor)
public StatechartEditor getStatechartEditor()
public DeviceConfiguration getDeviceConfiguration()
public void setDeviceConfiguration(DeviceConfiguration dc)
public RunModeTracker getRunModeTracker()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |