|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.data.model.property.PropertyContainer
pl.edu.agh.cast.data.model.AbstractElement
pl.edu.agh.cast.data.model.visual.VisualElement<ISchemaNode>
pl.edu.agh.cast.schema.model.visual.VisualSchemaNode
public class VisualSchemaNode
The default implementation of IVisualSchemaNode
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface pl.edu.agh.cast.data.model.visual.IVisualElement |
---|
IVisualElement.Properties |
Field Summary |
---|
Fields inherited from class pl.edu.agh.cast.data.model.visual.VisualElement |
---|
presentationElement |
Fields inherited from interface pl.edu.agh.cast.schema.model.visual.IVisualSchemaNode |
---|
CONNECTION_EVENT, DIMENSION_EVENT, LOCATION_EVENT, RESOURCE_EVENT, TYPE |
Fields inherited from interface pl.edu.agh.cast.data.model.visual.IVisualElement |
---|
DEFAULT_VISUAL_LABEL_ID |
Constructor Summary | |
---|---|
|
VisualSchemaNode()
Default constructor. |
|
VisualSchemaNode(IVisualSchemaDataSet dataSet,
ISchemaNode node)
Constructor for creating new visual node associated to given node. |
|
VisualSchemaNode(IVisualSchemaDataSet dataSet,
String label)
Constructor for creating new visual node associated to new schema node with given label. |
protected |
VisualSchemaNode(IVisualSchemaDataSet dataSet,
Type type,
ISchemaNode elementReference)
The constructor for subclasses which wraps the schema node. |
protected |
VisualSchemaNode(Type type)
|
Method Summary | |
---|---|
String |
acquireResourceId(String defaultResourceId)
The resource id of the node. |
org.eclipse.draw2d.geometry.Dimension |
getDimension()
Returns the copy of the dimension of the node. |
Integer |
getHeight()
The height of the node. |
org.eclipse.draw2d.geometry.Point |
getLocation()
Returns the copy of the location of the node. |
String |
getResourceId()
The resource id of the node. |
Integer |
getWidth()
The width of the node. |
Integer |
getXCoordinate()
The x coordinate of the node. |
Integer |
getYCoordinate()
The y coordinate of the node. |
VisualSchemaNode |
replicate()
Returns a replicated instance of this instance. |
VisualSchemaNode |
replicateTo(Object replica)
Replicates this instance state to given replica object. |
void |
setHeight(Integer height)
Sets the height of the node. |
void |
setResourceId(String id)
Sets the resource id of the node. |
void |
setWidth(Integer width)
Sets the width of the node. |
void |
setXCoordinate(Integer x)
Sets the x coordinate of the node. |
void |
setYCoordinate(Integer y)
Sets the y coordinate of the node. |
Methods inherited from class pl.edu.agh.cast.data.model.visual.VisualElement |
---|
addPropertyChangeListener, checkIfValid, checkIfValidVisualElement, firePropertyChange, getPresentationElement, getPropertiesMarkedAsLabel, getVisualLabel, markPropertyAsLabel, removePropertyChangeListener, setPresentationElement |
Methods inherited from class pl.edu.agh.cast.data.model.AbstractElement |
---|
afterSetMetaPropertyManager, canReplicateTo, equals, getDataSet, getDescString, getId, getType, hashCode, isValid, setDataSet, setId, setType, toString |
Methods inherited from class pl.edu.agh.cast.data.model.property.PropertyContainer |
---|
addProperty, createProperty, dispose, getCustomProperties, getMetaPropertyManager, getPermanentProperties, getProperties, getProperty, getTransientProperties, initializeProperties, matches, removeProperty, setMetaPropertyManager, setProperty, update |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface pl.edu.agh.cast.data.model.visual.IVisualElement |
---|
getPresentationElement, getPropertiesMarkedAsLabel, getVisualLabel, markPropertyAsLabel, setPresentationElement |
Methods inherited from interface pl.edu.agh.cast.data.model.IElement |
---|
getDataSet |
Methods inherited from interface pl.edu.agh.cast.data.model.Identifiable |
---|
getId, getType |
Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyContainer |
---|
addProperty, getCustomProperties, getMetaPropertyManager, getPermanentProperties, getProperties, getProperty, getTransientProperties, matches, removeProperty, setProperty |
Methods inherited from interface java.util.Observer |
---|
update |
Methods inherited from interface pl.edu.agh.cast.common.IValidatable |
---|
isValid |
Methods inherited from interface pl.edu.agh.cast.common.IDisposable |
---|
dispose |
Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyChangeProvider |
---|
addPropertyChangeListener, removePropertyChangeListener |
Constructor Detail |
---|
public VisualSchemaNode()
protected VisualSchemaNode(Type type)
protected VisualSchemaNode(IVisualSchemaDataSet dataSet, Type type, ISchemaNode elementReference)
dataSet
- The data set of this node.type
- The type of this node.elementReference
- The referenced element of presentation model.public VisualSchemaNode(IVisualSchemaDataSet dataSet, ISchemaNode node)
dataSet
- data set which visual node belongs tonode
- model node which is visualized by this objectpublic VisualSchemaNode(IVisualSchemaDataSet dataSet, String label)
dataSet
- data set which visual node belongs tolabel
- label of node which is visualized by this objectMethod Detail |
---|
public Integer getXCoordinate()
getXCoordinate
in interface IVisualSchemaNode
IVisualSchemaNode.getXCoordinate()
public void setXCoordinate(Integer x)
setXCoordinate
in interface IVisualSchemaNode
x
- The coordinate to set.pl.edu.agh.cast.schema.model.visual.IVisualSchemaNode#setXCoordinate(int)
public org.eclipse.draw2d.geometry.Point getLocation()
getLocation
in interface IVisualSchemaNode
public Integer getYCoordinate()
getYCoordinate
in interface IVisualSchemaNode
IVisualSchemaNode.getYCoordinate()
public void setYCoordinate(Integer y)
setYCoordinate
in interface IVisualSchemaNode
y
- The coordinate to set.pl.edu.agh.cast.schema.model.visual.IVisualSchemaNode#setYCoordinate(int)
public Integer getWidth()
getWidth
in interface IVisualSchemaNode
IVisualSchemaNode.getWidth()
public void setWidth(Integer width)
setWidth
in interface IVisualSchemaNode
width
- The width to set.pl.edu.agh.cast.schema.model.visual.IVisualSchemaNode#setWidth(int)
public Integer getHeight()
getHeight
in interface IVisualSchemaNode
IVisualSchemaNode.getHeight()
public void setHeight(Integer height)
setHeight
in interface IVisualSchemaNode
height
- The height to set.pl.edu.agh.cast.schema.model.visual.IVisualSchemaNode#setHeight(int)
public org.eclipse.draw2d.geometry.Dimension getDimension()
public String getResourceId()
getResourceId
in interface IVisualSchemaNode
IVisualSchemaNode.getResourceId()
public void setResourceId(String id)
setResourceId
in interface IVisualSchemaNode
id
- The id to set.IVisualSchemaNode.setResourceId(java.lang.String)
public String acquireResourceId(String defaultResourceId)
acquireResourceId
in interface IVisualSchemaNode
defaultResourceId
- the id of the default resource
IVisualSchemaNode.acquireResourceId(java.lang.String)
public VisualSchemaNode replicateTo(Object replica) throws IllegalArgumentException, ReplicationException
Replicates element type and ID.
Replicates the direction flag, source and target nodes are null empty.
replicateTo
in interface IReplicable
replicateTo
in class VisualElement<ISchemaNode>
replica
- the object to replicate to
IllegalArgumentException
- if given object is null or of invalid type
ReplicationException
- if replication failsVisualElement.replicateTo(java.lang.Object)
public VisualSchemaNode replicate() throws ReplicationException
replicate
in interface IReplicable
replicate
in class AbstractElement
ReplicationException
- if replication failsIReplicable.replicate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |