|
Math2mat
|

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< BendPoint > | getBendPoints () |
| 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) |
Definition at line 24 of file Connection.java.
Create a (solid) connection between two distinct nodes.
| source | The source node for the connection (non null) |
| target | The target node for the connection (non null) |
Definition at line 75 of file Connection.java.
| void m2m.frontend.dynamicview.model.Connection.addBendPoint | ( | BendPoint | bp | ) |
Add a bend point in the list of bend points of the connection.
| bp | The 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.
| listener | The 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.
| property | the property to the listeners to raise |
| oldValue | the old value to the connection to replace |
| newValue | the 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.
Definition at line 161 of file Connection.java.
| int m2m.frontend.dynamicview.model.Connection.getLineStyle | ( | ) |
Get the line drawing style of this connection.
Definition at line 89 of file Connection.java.
| boolean m2m.frontend.dynamicview.model.Connection.getMustBeRoute | ( | ) |
Get 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.
Definition at line 99 of file Connection.java.
| Node m2m.frontend.dynamicview.model.Connection.getTarget | ( | ) |
Get 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.
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.
| index | The index of the bend point to modify to the connection |
| d1 | The new new first dimension of the bend point to modify |
| d2 | The 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.
| index | The 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.
| listener | listener 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.
| val | Value 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.
| visible | the visible attribute to the connection to set |
Definition at line 129 of file Connection.java.
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.
1.7.3