pl.edu.agh.cast.schema.model.visual
Interface IVisualSchemaNode

All Superinterfaces:
Identifiable, IDisposable, IElement, IPropertyChangeProvider, IPropertyContainer, IReplicable, IValidatable, IVisualElement<ISchemaNode>, IVisualSchemaElement<ISchemaNode>, Observer, Serializable
All Known Implementing Classes:
VisualSchemaNode

public interface IVisualSchemaNode
extends IVisualSchemaElement<ISchemaNode>

The visual schema node is part of schema visual model. It wraps the schema node of schema presentation model.

Author:
AGH CAST Team

Nested Class Summary
 
Nested classes/interfaces inherited from interface pl.edu.agh.cast.data.model.visual.IVisualElement
IVisualElement.Properties
 
Field Summary
static String CONNECTION_EVENT
          The name of the connections change event.
static String DIMENSION_EVENT
          The name of the dimension change event.
static String LOCATION_EVENT
          The name of the location change event.
static String RESOURCE_EVENT
          The name of the image change event.
static Type TYPE
          The type of this interface.
 
Fields inherited from interface pl.edu.agh.cast.data.model.visual.IVisualElement
DEFAULT_VISUAL_LABEL_ID
 
Method Summary
 String acquireResourceId(String defaultResourceId)
          The resource id of the node.
 Integer getHeight()
          The height of the node.
 org.eclipse.draw2d.geometry.Point getLocation()
          The node location.
 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.
 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 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.common.IReplicable
replicate, replicateTo
 
Methods inherited from interface pl.edu.agh.cast.data.model.property.IPropertyChangeProvider
addPropertyChangeListener, removePropertyChangeListener
 

Field Detail

TYPE

static final Type TYPE
The type of this interface.


LOCATION_EVENT

static final String LOCATION_EVENT
The name of the location change event.

See Also:
Constant Field Values

DIMENSION_EVENT

static final String DIMENSION_EVENT
The name of the dimension change event.

See Also:
Constant Field Values

RESOURCE_EVENT

static final String RESOURCE_EVENT
The name of the image change event.

See Also:
Constant Field Values

CONNECTION_EVENT

static final String CONNECTION_EVENT
The name of the connections change event.

See Also:
Constant Field Values
Method Detail

getXCoordinate

@PropertyGetter(name="X_COORDINATE",
                type=INTEGER,
                matchable=true)
Integer getXCoordinate()
The x coordinate of the node.

Returns:
The x coordinate.

setXCoordinate

@PropertySetter(name="X_COORDINATE")
void setXCoordinate(Integer x)
Sets the x coordinate of the node.

Parameters:
x - The coordinate to set.

getYCoordinate

@PropertyGetter(name="Y_COORDINATE",
                type=INTEGER,
                matchable=true)
Integer getYCoordinate()
The y coordinate of the node.

Returns:
The y coordinate.

setYCoordinate

@PropertySetter(name="Y_COORDINATE")
void setYCoordinate(Integer y)
Sets the y coordinate of the node.

Parameters:
y - The coordinate to set.

getLocation

org.eclipse.draw2d.geometry.Point getLocation()
The node location.

Returns:
the point describing node location

getWidth

@PropertyGetter(name="WIDTH",
                type=INTEGER,
                matchable=true)
Integer getWidth()
The width of the node.

Returns:
The width.

setWidth

@PropertySetter(name="WIDTH")
void setWidth(Integer width)
Sets the width of the node.

Parameters:
width - The width to set.

getHeight

@PropertyGetter(name="HEIGHT",
                type=INTEGER,
                matchable=true)
Integer getHeight()
The height of the node.

Returns:
The height.

setHeight

@PropertySetter(name="HEIGHT")
void setHeight(Integer height)
Sets the height of the node.

Parameters:
height - The height to set.

getResourceId

@PropertyGetter(name="RESOURCE_ID",
                type=TEXT,
                matchable=true)
String getResourceId()
The resource id of the node.

Returns:
The image id.
See Also:
IVisualResource

setResourceId

@PropertySetter(name="RESOURCE_ID")
void setResourceId(String id)
Sets the resource id of the node.

Parameters:
id - The id to set.
See Also:
IVisualResource

acquireResourceId

String acquireResourceId(String defaultResourceId)
The resource id of the node. If none is specified then a one based on the derived type is returned. If derived type is not specified then the given default is returned.

Parameters:
defaultResourceId - the id of the default resource
Returns:
the resource id.
See Also:
IVisualResource


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.