org.jgraph.graph
Class VertexView
- CellView, Serializable
The default implementation of a vertex view.
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.
|
VertexView() - Constructs an empty vertex view.
|
VertexView(Object cell) - Constructs a vertex view for the specified model object and the specified
child views.
|
changeAttributes , childUpdated , createAttributeMap , getAllAttributes , getAttributes , getBounds , getBounds , getCell , getCellAttributes , getCenterPoint , getChildViews , getDescendantViews , getEditor , getHandle , getParentView , getPerimeterPoint , getRenderer , getRendererComponent , includeInGroupBounds , intersects , isLeaf , mergeAttributes , refresh , removeFromParent , scale , setAttributes , setBounds , setCell , translate , update , updateGroupBounds |
bounds
protected Rectangle2D bounds
Reference to the bounds attribute
defaultBounds
public static final Rectangle2D defaultBounds
defaultCursors
public static int[] defaultCursors
Array that holds the cursors for the different control points.
xCursors
public static int[] xCursors
Array that holds the cursors for the different control points.
yCursors
public static int[] yCursors
Array that holds the cursors for the different control points.
VertexView
public VertexView()
Constructs an empty vertex view.
VertexView
public VertexView(Object cell)
Constructs a vertex view for the specified model object and the specified
child views.
cell
- reference to the model object
getCachedBounds
public Rectangle2D getCachedBounds()
getCenterPoint
public Point2D getCenterPoint()
replaced by
AbstractCellView.getCenterPoint(CellView vertex)
- the center point of this vertex
getPerimeterPoint
public Point2D getPerimeterPoint(Point2D source,
Point2D p)
replaced by
getPerimeterPoint(EdgeView edge, Point2D source, Point2D p)
getPerimeterPoint
public 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. The specified point is
expected not to intersect the bounds. Note: You must override this method
if you use a different renderer. This is because this method relies on
the VertexRenderer interface, which can not be safely assumed for
subclassers.
- getPerimeterPoint in interface CellView
- getPerimeterPoint in interface AbstractCellView
setCachedBounds
public void setCachedBounds(Rectangle2D bounds)
Copyright (C) 2001-2006 Gaudenz Alder. All rights reserved.