edu.stanford.hci.dtools.statechart.model
Class StartStateMarkerModel

java.lang.Object
  extended by edu.stanford.hci.dtools.statechart.model.ModelElement
      extended by edu.stanford.hci.dtools.statechart.model.ShapeModel
          extended by edu.stanford.hci.dtools.statechart.model.StartStateMarkerModel
All Implemented Interfaces:
java.io.Serializable, org.eclipse.ui.views.properties.IPropertySource

public class StartStateMarkerModel
extends ShapeModel

This software is distributed under the BSD License.

Author:
Michael Bernstein ( mbernst(AT)stanford.edu )
See Also:
Serialized Form

Field Summary
static int MARKER_SIZE
           
static java.lang.String START_STATE_CHANGED_PROP
          Property ID to use when the start state is changed.
 
Fields inherited from class edu.stanford.hci.dtools.statechart.model.ShapeModel
DIAGRAM_PROP, LOCATION_PROP, SIZE_PROP, SOURCE_CONNECTIONS_PROP, TARGET_CONNECTIONS_PROP
 
Constructor Summary
StartStateMarkerModel()
           
 
Method Summary
 org.eclipse.swt.graphics.Image getIcon()
          Return a pictogram (small icon) describing this model element.
 java.util.List<ConnectionModel> getSourceConnections()
          Return a List of outgoing Connections.
 StateModel getStartState()
           
 java.util.List<ConnectionModel> getTargetConnections()
          Return a List of incoming Connections.
 void setStartState(StateModel state)
           
 void updateLocation()
           
 
Methods inherited from class edu.stanford.hci.dtools.statechart.model.ShapeModel
createImage, getDiagramModel, getLocation, getPropertyDescriptors, getPropertyValue, getSize, setDiagramModel, setLocation, setPropertyValue, setSize
 
Methods inherited from class edu.stanford.hci.dtools.statechart.model.ModelElement
addPropertyChangeListener, getEditableValue, isPropertySet, removePropertyChangeListener, resetPropertyValue
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MARKER_SIZE

public static final int MARKER_SIZE
See Also:
Constant Field Values

START_STATE_CHANGED_PROP

public static final java.lang.String START_STATE_CHANGED_PROP
Property ID to use when the start state is changed.

See Also:
Constant Field Values
Constructor Detail

StartStateMarkerModel

public StartStateMarkerModel()
Method Detail

setStartState

public void setStartState(StateModel state)

getStartState

public StateModel getStartState()

getIcon

public org.eclipse.swt.graphics.Image getIcon()
Description copied from class: ShapeModel
Return a pictogram (small icon) describing this model element. Children should override this method and return an appropriate Image.

Specified by:
getIcon in class ShapeModel
Returns:
a 16x16 Image or null

getSourceConnections

public java.util.List<ConnectionModel> getSourceConnections()
Return a List of outgoing Connections.

Overrides:
getSourceConnections in class ShapeModel

getTargetConnections

public java.util.List<ConnectionModel> getTargetConnections()
Return a List of incoming Connections.

Overrides:
getTargetConnections in class ShapeModel

updateLocation

public void updateLocation()