|
||||||||||
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.ShapeModel edu.stanford.hci.dtools.statechart.model.IOModel
public abstract class IOModel
This class is the superclass for any instance of a ButtonModel, LCDModel, etc. It provides simple information about the model's offset within the StateModel, the default draw image, and else. These are NOT editable, as the real "global model" of these models are in dtools.component!
This software is distributed under the BSD License.
Field Summary |
---|
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 | |
---|---|
IOModel()
|
|
IOModel(IOComponent model)
Constructor |
|
IOModel(IOModel copy)
|
Method Summary | |
---|---|
abstract IOModel |
copy()
|
org.eclipse.draw2d.geometry.Point |
getDimensions()
|
org.eclipse.draw2d.geometry.Dimension |
getDimensions(org.eclipse.draw2d.geometry.Dimension parentDimensions)
Get the dimensions of this iomodel in its state |
IOComponent |
getGlobalComponent()
|
org.eclipse.swt.graphics.Image |
getIcon()
Return a pictogram (small icon) describing this model element. |
org.eclipse.draw2d.geometry.Point |
getLocation()
Return the Location of this shape. |
org.eclipse.draw2d.geometry.Point |
getLocation(org.eclipse.draw2d.geometry.Dimension parentDimensions)
Get the location of this iomodel in the state |
java.lang.String |
getName()
|
org.eclipse.ui.views.properties.IPropertyDescriptor[] |
getPropertyDescriptors()
Returns an array of IPropertyDescriptors for this shape. |
java.lang.Object |
getPropertyValue(java.lang.Object propertyId)
Return the property value for the given propertyId, or null. |
void |
setPropertyValue(java.lang.Object propertyId,
java.lang.Object value)
Set the property value for the given property id. |
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 |
Constructor Detail |
---|
public IOModel()
public IOModel(IOComponent model)
model
- The component that this model is derived frompublic IOModel(IOModel copy)
Method Detail |
---|
public abstract IOModel copy()
public org.eclipse.draw2d.geometry.Point getLocation(org.eclipse.draw2d.geometry.Dimension parentDimensions)
parentDimensions
- the dimensions of the state itself (used for scaling)
public org.eclipse.draw2d.geometry.Point getLocation()
ShapeModel
getLocation
in class ShapeModel
public org.eclipse.draw2d.geometry.Dimension getDimensions(org.eclipse.draw2d.geometry.Dimension parentDimensions)
parentDimensions
- the dimensions of the state itself (used for scaling)
public org.eclipse.draw2d.geometry.Point getDimensions()
public java.lang.String getName()
public IOComponent getGlobalComponent()
public org.eclipse.ui.views.properties.IPropertyDescriptor[] getPropertyDescriptors()
The returned array is used to fill the property view, when the edit-part corresponding to this model element is selected.
getPropertyDescriptors
in interface org.eclipse.ui.views.properties.IPropertySource
getPropertyDescriptors
in class ShapeModel
ShapeModel.descriptors
,
getPropertyValue(Object)
,
setPropertyValue(Object, Object)
public java.lang.Object getPropertyValue(java.lang.Object propertyId)
The property view uses the IDs from the IPropertyDescriptors array to obtain the value of the corresponding properties.
getPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
getPropertyValue
in class ShapeModel
ShapeModel.descriptors
,
getPropertyDescriptors()
public void setPropertyValue(java.lang.Object propertyId, java.lang.Object value)
The property view uses the IDs from the IPropertyDescriptors array to set the values of the corresponding properties.
setPropertyValue
in interface org.eclipse.ui.views.properties.IPropertySource
setPropertyValue
in class ShapeModel
ShapeModel.descriptors
,
getPropertyDescriptors()
public org.eclipse.swt.graphics.Image getIcon()
ShapeModel
getIcon
in class ShapeModel
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |