V - The vertex typepublic class OrthogonalConnector<V extends Vertex>
extends java.lang.Object
| Constructor and Description |
|---|
OrthogonalConnector(V vertex,
EntryDirection entryDirection,
int number)
Creates a new orthogonal connector belonging to a certain vertex given
the entry direction and current number of edges
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(java.util.List<java.awt.geom.Point2D> nodePositions) |
java.util.List<java.util.List<java.awt.geom.Point2D>> |
getEdgesWithNodePositions() |
EntryDirection |
getEntryDirection() |
int |
getNumber() |
V |
getVertex() |
void |
incNumber()
Number of edges using containing the connector
|
void |
setEntryDirection(EntryDirection entryDirection) |
void |
setNumber(int number) |
void |
setVertex(V vertex) |
java.lang.String |
toString() |
public OrthogonalConnector(V vertex, EntryDirection entryDirection, int number)
vertex - Vertex containing the connectorentryDirection - Direction in which edges enter the connectornumber - The number of edges containing the connectorpublic void incNumber()
public V getVertex()
public void setVertex(V vertex)
vertex - the vertex to setpublic EntryDirection getEntryDirection()
public void setEntryDirection(EntryDirection entryDirection)
entryDirection - the entry direction to setpublic int getNumber()
public void setNumber(int number)
number - the number of edges to setpublic java.util.List<java.util.List<java.awt.geom.Point2D>> getEdgesWithNodePositions()
public void addEdge(java.util.List<java.awt.geom.Point2D> nodePositions)
nodePositions - Positions of nodes of the new edgepublic java.lang.String toString()
toString in class java.lang.Object