Public Member Functions | |
ConnectionSet () | |
ConnectionSet (Object edge, Object port, boolean source) | |
ConnectionSet (Set connections) | |
ConnectionSet (Object edge, Object source, Object target) | |
void | addConnections (CellView[] views) |
void | connect (Object edge, Object source, Object target) |
void | connect (Object edge, Object port, boolean source) |
void | disconnect (Object edge) |
void | disconnect (Object edge, boolean source) |
boolean | isEmpty () |
int | size () |
Iterator | connections () |
Set | getChangedEdges () |
Object | getPort (Object edge, boolean source) |
ConnectionSet | clone (Map map) |
Set | getConnections () |
Set | getEdges () |
void | setConnections (Set set) |
void | setEdges (Set set) |
Static Public Member Functions | |
static ConnectionSet | create (GraphModel m, Object[] cells, boolean disconnect) |
Static Protected Member Functions | |
static void | connect (ConnectionSet cs, Object edge, Object port, boolean source, boolean disconnect) |
Protected Attributes | |
Set | connections = new HashSet() |
Set | edges = new HashSet() |
Classes | |
class | Connection |
|
Constructs an empty ConnectionSet. |
|
Constructs a ConnectionSet with one Connection. |
|
Constructs a connection set containing the specified connections and updates the set of changed edges. |
|
Constructs a ConnectionSet with two Connections (to the source and target port of the edge). |
|
Adds the connections in |
|
Creates a new connection set based on this connection set, where the edges, and ports are mapped using Note: Consequently, unselected edges are only reconnected at the first "paste" after a "cut", because in this case the ConnectionSet is not cloned. |
|
Connect |
|
Connect |
|
Connect or disconnect |
|
Returns an |
|
Returns a connection set that represents the connection or disconnection of |
|
Disconnect |
|
Disconnect |
|
Returns a |
|
|
|
|
|
Returns the source or target of the specified edge in this connection set or null if the connection set contains no corresponding entry for the edge. |
|
Returns |
|
|
|
|
|
Returns the number of (edge, port)-pairs. |
|
Contents of the connection set. |
|
Set of changed edges for the connection set. |