|
JGraph |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.jgraph.graph.AbstractCellView
|
+--org.jgraph.graph.VertexView
The default implementation of a vertex view.
| Inner Class Summary | |
static class |
VertexView.SizeHandle
|
| Field Summary | |
protected Rectangle2D |
bounds
Reference to the bounds attribute |
static Rectangle |
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. |
| Fields inherited from class org.jgraph.graph.AbstractCellView |
allAttributes, attributes, cell, cellEditor, childViews, groupBounds, parent |
| 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()
Returns the center of this vertex. |
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)
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()
Overrides the parent method to udpate the cached points. |
| Methods inherited from class org.jgraph.graph.AbstractCellView |
changeAttributes, childUpdated, createFallbackAttributeMap, getAllAttributes, getAttributes, getBounds, getCell, getChildViews, getDescendantViews, getEditor, getParentView, getRendererComponent, includeInGroupBounds, intersects, isLeaf, mergeAttributes, refresh, removeFromParent, scale, setAttributes, setBounds, setCell, translate, updateGroupBounds |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final Rectangle defaultBounds
public static transient VertexRenderer renderer
protected transient Rectangle2D bounds
public static transient int[] defaultCursors
public static transient int[] xCursors
public static transient int[] yCursors
| Constructor Detail |
public VertexView()
public VertexView(Object cell)
cell - reference to the model object| Method Detail |
public void update()
update in class AbstractCellViewpublic Rectangle2D getCachedBounds()
public void setCachedBounds(Rectangle2D bounds)
public CellViewRenderer getRenderer()
getRenderer in class AbstractCellVieworg.jgraph.graph.AbstractCellViewpublic CellHandle getHandle(GraphContext context)
getHandle in class AbstractCellVieworg.jgraph.graph.AbstractCellViewcontext - the context of this cell view (cells indirectly affected by
it)public Rectangle2D getBounds()
getBounds in class AbstractCellViewpublic Point2D getCenterPoint()
public Point2D getPerimeterPoint(Point2D source,
Point2D p)
|
JGraph |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||