Inheritance diagram for org.jgraph.graph.PortView:
Public Member Functions | |
PortView () | |
PortView (Object cell) | |
CellView | getParentView () |
Rectangle2D | getBounds () |
CellViewRenderer | getRenderer () |
CellHandle | getHandle (GraphContext context) |
Point2D | getLocation () |
Point2D | getLocation (EdgeView edge) |
Point2D | getLocation (EdgeView edge, Point2D nearest) |
Static Public Attributes | |
static transient int | SIZE = 6 |
static transient PortRenderer | renderer = new PortRenderer() |
static boolean | allowPortMagic = true |
Protected Member Functions | |
boolean | shouldInvokePortMagic (EdgeView edge) |
Protected Attributes | |
transient CellView | lastParent |
|
Constructs an empty portview. |
|
Constructs a view that holds a reference to the specified cell, anchor and parent vertex.
|
|
Returns the bounds for the port view. Reimplemented from org.jgraph.graph.AbstractCellView. |
|
Returns Implements org.jgraph.graph.AbstractCellView. |
|
Returns the point that the port represents with respect to |
|
For backwards compatibility.
|
|
Shortcut method to getLocation(null, null) |
|
This method ensures a non-null value. If the super method returns null then the last valid parent is returned. Note: If a vertex is removed, all ports will be replaced in connected edges. The ports are replaced by the center point of the last valid vertex view. Reimplemented from org.jgraph.graph.AbstractCellView. |
|
Returns a renderer for the class. Implements org.jgraph.graph.AbstractCellView. |
|
Subclassers can override this to decide whether or not "port magic" should appear on a given edge. (Port magic means the port tries to make the edge horizontal or vertical if the closest control point lies within the bounds of the parent vertex.) |
|
Controls if port magic should be allowed. Default is true. This is an easy switch to disable port magic for all instances of graphs. |
|
Cache of the last valid parent. //FIX: Better solution? |
|
Renderer for the class. |
|
Default size for all ports is 6. |