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

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

public interface IVisualSchemaConnection
extends IVisualSchemaElement<ISchemaConnection>

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

Author:
AGH CAST Team

Nested Class Summary
static class IVisualSchemaConnection.Properties
          Enumeration of property name constants.
 
Field Summary
static String BENDPOINTS_EVENT
          Bend points changed 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
 List<SchemaConnectionBendpoint> getBendpoints()
          Returns list of bend points.
 boolean isDirected()
          Indicates if the connection is directed, i.e.
 void setBendpoints(List<SchemaConnectionBendpoint> bendpoints)
          Sets list of bend points.
 
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.


BENDPOINTS_EVENT

static final String BENDPOINTS_EVENT
Bend points changed event.

See Also:
Constant Field Values
Method Detail

isDirected

boolean isDirected()
Indicates if the connection is directed, i.e. it just binds a pair of nodes or the order of nodes is significant. The general semantics of the connection says that there should be only one connection (in given direction) of given type between two nodes. Undirected connection may be perceived as two connections pointing in both directions.

Returns:
True if the order of nodes is significant.

setBendpoints

@PropertySetter(name="BEND_POINTS")
void setBendpoints(List<SchemaConnectionBendpoint> bendpoints)
Sets list of bend points.

Parameters:
bendpoints - list of bend points

getBendpoints

@PropertyGetter(name="BEND_POINTS",
                type=REFERENCE_LIST,
                matchable=false)
List<SchemaConnectionBendpoint> getBendpoints()
Returns list of bend points.

Returns:
list of bend points


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