|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.graph.AbstractCellView
org.jgraph.graph.VertexView
public class VertexView
The default implementation of a vertex view.
Nested Class Summary | |
---|---|
class |
VertexView.SizeHandle
|
Field Summary | |
---|---|
protected Rectangle |
bounds
Reference to the bounds attribute |
protected Rectangle |
groupBounds
Cached bounds of all children if vertex is a group |
static VertexRenderer |
renderer
Renderer for the class. |
Fields inherited from class org.jgraph.graph.AbstractCellView |
---|
allAttributes, attributes, cell, cellEditor, childViews, graph, mapper, parent |
Constructor Summary | |
---|---|
VertexView(Object cell,
JGraph graph,
CellMapper mapper)
Constructs a vertex view for the specified model object and the specified child views. |
Method Summary | |
---|---|
void |
childUpdated()
|
Rectangle |
getBounds()
Returns the cached bounds for the vertex. |
Rectangle |
getCachedBounds()
|
Point |
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. |
Point |
getPerimeterPoint(Point source,
Point 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. |
boolean |
isConstrainedSizeEvent(MouseEvent e)
|
void |
setCachedBounds(Rectangle bounds)
|
void |
update()
Overrides the parent method to udpate the cached points. |
protected void |
updateGroupBounds()
|
Methods inherited from class org.jgraph.graph.AbstractCellView |
---|
getAllAttributes, getAttributes, getBounds, getCell, getChildViews, getDescendantViews, getEditor, getGraph, getMapper, getModel, getParentView, getRendererComponent, intersects, isLeaf, refresh, removeFromParent, scale, setAttributes, setBounds, translate, updateAllAttributes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static VertexRenderer renderer
protected Rectangle bounds
protected Rectangle groupBounds
Constructor Detail |
---|
public VertexView(Object cell, JGraph graph, CellMapper mapper)
cell
- reference to the model objectMethod Detail |
---|
public void update()
update
in interface CellView
update
in class AbstractCellView
public void childUpdated()
childUpdated
in interface CellView
childUpdated
in class AbstractCellView
public Rectangle getBounds()
getBounds
in interface CellView
getBounds
in class AbstractCellView
public Rectangle getCachedBounds()
public void setCachedBounds(Rectangle bounds)
protected void updateGroupBounds()
public CellViewRenderer getRenderer()
getRenderer
in class AbstractCellView
public CellHandle getHandle(GraphContext context)
getHandle
in interface CellView
getHandle
in class AbstractCellView
public Point getCenterPoint()
public Point getPerimeterPoint(Point source, Point p)
public boolean isConstrainedSizeEvent(MouseEvent e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |