org.jgraph.graph
public class VertexView extends AbstractCellView
Nested Class Summary | |
---|---|
static class | VertexView.SizeHandle |
Field Summary | |
---|---|
protected Rectangle2D | bounds Reference to the bounds attribute |
static Rectangle2D | defaultBounds |
static int[] | defaultCursors Array that holds the cursors for the different control points. |
static VertexRenderer | renderer Renderer for the class. |
static int[] | xCursors Array that holds the cursors for the different control points. |
static int[] | yCursors Array that holds the cursors for the different control points. |
Constructor Summary | |
---|---|
VertexView()
Constructs an empty vertex view. | |
VertexView(Object cell)
Constructs a vertex view for the specified model object and the specified
child views.
|
Method Summary | |
---|---|
Rectangle2D | getBounds()
Returns the cached bounds for the vertex. |
Rectangle2D | getCachedBounds() |
Point2D | getCenterPoint() |
CellHandle | getHandle(GraphContext context)
Returns a cell handle for the view, if the graph and the view are
sizeable. |
Point2D | getPerimeterPoint(Point2D source, Point2D p) |
Point2D | getPerimeterPoint(EdgeView edge, Point2D source, Point2D p)
Returns the intersection of the bounding rectangle and the straight line
between the source and the specified point p. |
CellViewRenderer | getRenderer()
Returns a renderer for the class. |
void | setCachedBounds(Rectangle2D bounds) |
void | update(GraphLayoutCache cache)
Overrides the parent method to udpate the cached points. |
Parameters: cell reference to the model object
Deprecated: replaced by AbstractCellView
Returns: the center point of this vertex
Deprecated: replaced by VertexView