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

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.IOModel
              extended by edu.stanford.hci.dtools.statechart.model.OutputModel
                  extended by edu.stanford.hci.dtools.statechart.model.DisplayModel
All Implemented Interfaces:
java.io.Serializable, org.eclipse.ui.views.properties.IPropertySource

public class DisplayModel
extends OutputModel

Model for display screens

This software is distributed under the BSD License.

Author:
Michael Bernstein ( mbernst(AT)stanford.edu ), Bjoern Hartmann ( bjoern(AT)stanford.edu )
See Also:
Serialized Form

Field Summary
static java.lang.String DISPLAY_PROP
          Property ID to use when a child is added to this diagram.
 
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
DisplayModel(DisplayModel copy)
           
DisplayModel(IOComponent model)
           
DisplayModel(IOComponent model, java.lang.String image)
           
 
Method Summary
 DisplayModel copy()
           
 java.lang.String getImage()
           
 java.lang.Object getPropertyValue(java.lang.Object id)
          Returns the value as String for the Property Sheet
 java.lang.String getScreenviewImageFilename()
           
 java.lang.String getStatechartImageFilename()
           
 void realizeStateEntryInHardware(HardwareOutputDispatcher hwOutput)
          Called upon entrance to a state
 void realizeStateUpdateInHardware(HardwareOutputDispatcher hwOutput)
          Called when a state is updated
 void setImage(java.lang.String filename)
          Sets the image that shows on the screen
 void setPropertyValue(java.lang.Object id, java.lang.Object value)
          Set the property value for the given property id.
 void setScreenviewImageFilename(java.lang.String screenviewImageFilename)
           
 void setStatechartImageFilename(java.lang.String statechartImageFilename)
           
 
Methods inherited from class edu.stanford.hci.dtools.statechart.model.OutputModel
getGlobalComponent
 
Methods inherited from class edu.stanford.hci.dtools.statechart.model.IOModel
getDimensions, getDimensions, getIcon, getLocation, getLocation, getName, getPropertyDescriptors
 
Methods inherited from class edu.stanford.hci.dtools.statechart.model.ShapeModel
createImage, getDiagramModel, getSize, getSourceConnections, getTargetConnections, setDiagramModel, setLocation, 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

DISPLAY_PROP

public static final java.lang.String DISPLAY_PROP
Property ID to use when a child is added to this diagram.

See Also:
Constant Field Values
Constructor Detail

DisplayModel

public DisplayModel(IOComponent model)

DisplayModel

public DisplayModel(IOComponent model,
                    java.lang.String image)

DisplayModel

public DisplayModel(DisplayModel copy)
Method Detail

copy

public DisplayModel copy()
Specified by:
copy in class IOModel

setImage

public void setImage(java.lang.String filename)
Sets the image that shows on the screen

Parameters:
filename -

getImage

public java.lang.String getImage()

getPropertyValue

public java.lang.Object getPropertyValue(java.lang.Object id)
Returns the value as String for the Property Sheet

Specified by:
getPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
Overrides:
getPropertyValue in class IOModel
See Also:
IPropertySource.getPropertyValue(java.lang.Object)

setPropertyValue

public void setPropertyValue(java.lang.Object id,
                             java.lang.Object value)
Description copied from class: IOModel
Set the property value for the given property id. If no matching id is found, the call is forwarded to the superclass.

The property view uses the IDs from the IPropertyDescriptors array to set the values of the corresponding properties.

Specified by:
setPropertyValue in interface org.eclipse.ui.views.properties.IPropertySource
Overrides:
setPropertyValue in class IOModel
See Also:
ShapeModel.descriptors, IOModel.getPropertyDescriptors()

realizeStateEntryInHardware

public void realizeStateEntryInHardware(HardwareOutputDispatcher hwOutput)
Description copied from class: OutputModel
Called upon entrance to a state

Specified by:
realizeStateEntryInHardware in class OutputModel

realizeStateUpdateInHardware

public void realizeStateUpdateInHardware(HardwareOutputDispatcher hwOutput)
Description copied from class: OutputModel
Called when a state is updated

Specified by:
realizeStateUpdateInHardware in class OutputModel

getScreenviewImageFilename

public java.lang.String getScreenviewImageFilename()

setScreenviewImageFilename

public void setScreenviewImageFilename(java.lang.String screenviewImageFilename)

getStatechartImageFilename

public java.lang.String getStatechartImageFilename()

setStatechartImageFilename

public void setStatechartImageFilename(java.lang.String statechartImageFilename)