public class VertexView extends AbstractCellView
Modifier and Type | Class and Description |
---|---|
static class |
VertexView.SizeHandle |
Modifier and Type | Field and Description |
---|---|
protected java.awt.geom.Rectangle2D |
bounds
Reference to the bounds attribute
|
static java.awt.geom.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.
|
allAttributes, attributes, cell, cellEditor, childViews, groupBounds, parent
Constructor and Description |
---|
VertexView()
Constructs an empty vertex view.
|
VertexView(java.lang.Object cell)
Constructs a vertex view for the specified model object and the specified
child views.
|
Modifier and Type | Method and Description |
---|---|
java.awt.geom.Rectangle2D |
getBounds()
Returns the cached bounds for the vertex.
|
java.awt.geom.Rectangle2D |
getCachedBounds() |
java.awt.geom.Point2D |
getCenterPoint()
Deprecated.
replaced by
AbstractCellView.getCenterPoint(CellView vertex) |
CellHandle |
getHandle(GraphContext context)
Returns a cell handle for the view, if the graph and the view are
sizeable.
|
java.awt.geom.Point2D |
getPerimeterPoint(EdgeView edge,
java.awt.geom.Point2D source,
java.awt.geom.Point2D p)
Returns the intersection of the bounding rectangle and the straight line
between the source and the specified point p.
|
java.awt.geom.Point2D |
getPerimeterPoint(java.awt.geom.Point2D source,
java.awt.geom.Point2D p)
Deprecated.
|
CellViewRenderer |
getRenderer()
Returns a renderer for the class.
|
void |
setCachedBounds(java.awt.geom.Rectangle2D bounds) |
void |
update(GraphLayoutCache cache)
Overrides the parent method to udpate the cached points.
|
changeAttributes, childUpdated, createAttributeMap, getAllAttributes, getAttributes, getBounds, getCell, getCellAttributes, getCenterPoint, getChildViews, getDescendantViews, getEditor, getParentView, getRendererComponent, includeInGroupBounds, intersects, isLeaf, mergeAttributes, refresh, removeFromParent, scale, setAttributes, setBounds, setCell, translate, updateGroupBounds
public static transient VertexRenderer renderer
public static final java.awt.geom.Rectangle2D defaultBounds
protected java.awt.geom.Rectangle2D bounds
public static transient int[] defaultCursors
public static transient int[] xCursors
public static transient int[] yCursors
public VertexView()
public VertexView(java.lang.Object cell)
cell
- reference to the model objectpublic void update(GraphLayoutCache cache)
update
in interface CellView
update
in class AbstractCellView
cache
- TODOpublic java.awt.geom.Rectangle2D getCachedBounds()
public void setCachedBounds(java.awt.geom.Rectangle2D bounds)
public CellViewRenderer getRenderer()
getRenderer
in class AbstractCellView
public CellHandle getHandle(GraphContext context)
getHandle
in interface CellView
getHandle
in class AbstractCellView
context
- the context of this cell view (cells indirectly affected by
it)public java.awt.geom.Rectangle2D getBounds()
getBounds
in interface CellView
getBounds
in class AbstractCellView
public java.awt.geom.Point2D getCenterPoint()
AbstractCellView.getCenterPoint(CellView vertex)
public java.awt.geom.Point2D getPerimeterPoint(java.awt.geom.Point2D source, java.awt.geom.Point2D p)
getPerimeterPoint(EdgeView edge, Point2D source, Point2D p)
public java.awt.geom.Point2D getPerimeterPoint(EdgeView edge, java.awt.geom.Point2D source, java.awt.geom.Point2D p)
getPerimeterPoint
in interface CellView
getPerimeterPoint
in class AbstractCellView
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.