Math2mat
Public Member Functions | Static Public Attributes | Protected Member Functions

m2m.frontend.dynamicview.model.Connection Class Reference

Collaboration diagram for m2m.frontend.dynamicview.model.Connection:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Connection (Node source, Node target)
int getLineStyle ()
Node getSource ()
Node getTarget ()
boolean getVisible ()
void setVisible (boolean visible)
boolean getMustBeRoute ()
void setMustBeRoute (boolean val)
Vector< BendPointgetBendPoints ()
void addBendPoint (BendPoint bp)
void removeBendPoint (int index)
void removeAllBendPoint ()
void modifyBendPoint (int index, Dimension d1, Dimension d2)
void route ()
void addPropertyChangeListener (PropertyChangeListener listener)
void removePropertyChangeListener (PropertyChangeListener listener)
void refreshConnection ()

Static Public Attributes

static final String VISIBLE_CONNECTION = "VisibleConnection"
static final String BENDPOINT_POSITION = "BendPointPosition"
static final String ROUTE_CONNECTION = "RouteConnection"

Protected Member Functions

void firePropertyChange (String property, Object oldValue, Object newValue)

Detailed Description

Definition at line 24 of file Connection.java.


Constructor & Destructor Documentation

m2m.frontend.dynamicview.model.Connection.Connection ( Node  source,
Node  target 
)

Create a (solid) connection between two distinct nodes.

Parameters:
sourceThe source node for the connection (non null)
targetThe target node for the connection (non null)

Definition at line 75 of file Connection.java.


Member Function Documentation

void m2m.frontend.dynamicview.model.Connection.addBendPoint ( BendPoint  bp)

Add a bend point in the list of bend points of the connection.

Parameters:
bpThe bend point to the connection to add

Definition at line 171 of file Connection.java.

void m2m.frontend.dynamicview.model.Connection.addPropertyChangeListener ( PropertyChangeListener  listener)

Add a listener in the list of listeners of the connection.

Parameters:
listenerThe listener to the connection to add

Definition at line 244 of file Connection.java.

void m2m.frontend.dynamicview.model.Connection.firePropertyChange ( String  property,
Object  oldValue,
Object  newValue 
) [protected]

Raise an event for each listener of the connection.

Parameters:
propertythe property to the listeners to raise
oldValuethe old value to the connection to replace
newValuethe new value to the connection to set

Definition at line 233 of file Connection.java.

Vector<BendPoint> m2m.frontend.dynamicview.model.Connection.getBendPoints ( )

Get the list of bend points of the connection.

Returns:
the list of bend points of the connection

Definition at line 161 of file Connection.java.

int m2m.frontend.dynamicview.model.Connection.getLineStyle ( )

Get the line drawing style of this connection.

Returns:
The int value represented the the line drawing style

Definition at line 89 of file Connection.java.

boolean m2m.frontend.dynamicview.model.Connection.getMustBeRoute ( )

Get the mustBeRoute attribute of the connection.

Returns:
the mustBeRoute attribute of the connection

Definition at line 141 of file Connection.java.

Node m2m.frontend.dynamicview.model.Connection.getSource ( )

Get the source node of the connection.

Returns:
the source node of the connection.

Definition at line 99 of file Connection.java.

Node m2m.frontend.dynamicview.model.Connection.getTarget ( )

Get the target node of the connection.

Returns:
the target node of the connection.

Definition at line 109 of file Connection.java.

boolean m2m.frontend.dynamicview.model.Connection.getVisible ( )

Get the visible attribute of the connection.

Returns:
the visible attribute of the connection

Definition at line 119 of file Connection.java.

void m2m.frontend.dynamicview.model.Connection.modifyBendPoint ( int  index,
Dimension  d1,
Dimension  d2 
)

Modify the value of a particulary bend point of the list of bend points of the connection.

Parameters:
indexThe index of the bend point to modify to the connection
d1The new new first dimension of the bend point to modify
d2The new new second dimension of the bend point to modify

Definition at line 206 of file Connection.java.

void m2m.frontend.dynamicview.model.Connection.refreshConnection ( )

Refresh all connections.

Definition at line 263 of file Connection.java.

void m2m.frontend.dynamicview.model.Connection.removeAllBendPoint ( )

Remove as bend points of the list of bend points of the connection.

Definition at line 194 of file Connection.java.

void m2m.frontend.dynamicview.model.Connection.removeBendPoint ( int  index)

Remove a bend point in the list of bend points of the connection.

Parameters:
indexThe index of the bend point to the connection to remove

Definition at line 183 of file Connection.java.

void m2m.frontend.dynamicview.model.Connection.removePropertyChangeListener ( PropertyChangeListener  listener)

Remove a listener in the list of listeners of this connection.

Parameters:
listenerlistener The listener to the connection to remove

Definition at line 254 of file Connection.java.

void m2m.frontend.dynamicview.model.Connection.route ( )

Route again all connection of the schema.

Definition at line 221 of file Connection.java.

void m2m.frontend.dynamicview.model.Connection.setMustBeRoute ( boolean  val)

Set the mustBeRoute attribute of the connection.

Parameters:
valValue to the mustBeRoute attribute to set

Definition at line 151 of file Connection.java.

void m2m.frontend.dynamicview.model.Connection.setVisible ( boolean  visible)

Set the visible attribute of the connection.

Parameters:
visiblethe visible attribute to the connection to set

Definition at line 129 of file Connection.java.


Member Data Documentation

final String m2m.frontend.dynamicview.model.Connection.BENDPOINT_POSITION = "BendPointPosition" [static]

Use to raise an event when the a bend point is changing.

Definition at line 33 of file Connection.java.

final String m2m.frontend.dynamicview.model.Connection.ROUTE_CONNECTION = "RouteConnection" [static]

Use to raise an event when all connections must be route.

Definition at line 37 of file Connection.java.

final String m2m.frontend.dynamicview.model.Connection.VISIBLE_CONNECTION = "VisibleConnection" [static]

Use to raise an event when the visible attribute is changing.

Definition at line 29 of file Connection.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations