|
||||||||||
| 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
org.jgraph.example.CompoundVertexView
public class CompoundVertexView
Vertex view that supports visual vertex nesting to show inclusion edges in a compound graph. Differs from a selection group view as follows:
VertexView, the bounds of a compound vertex view are forced
to always remain large enough to enclose its child views. Otherwise, no
restrictions are placed on the bounds.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.jgraph.graph.VertexView |
|---|
org.jgraph.graph.VertexView.SizeHandle |
| Field Summary |
|---|
| Fields inherited from class org.jgraph.graph.VertexView |
|---|
defaultBounds, defaultCursors, renderer, xCursors, yCursors |
| Fields inherited from class org.jgraph.graph.AbstractCellView |
|---|
cellEditor |
| Constructor Summary | |
|---|---|
CompoundVertexView()
Initializes a new view for a compound vertex. |
|
CompoundVertexView(java.lang.Object cell)
Initializes a new view for a compound vertex with the specified model object. |
|
| Method Summary | |
|---|---|
java.awt.geom.Rectangle2D |
getBounds()
Retrieve this view's bounds from the view's attributes. |
void |
scale(double sx,
double sy,
java.awt.geom.Point2D origin)
Scale this view by sx and sy, relative to
origin. |
void |
setBounds(java.awt.geom.Rectangle2D newBounds)
Set this view's bounds in the view's attributes. |
void |
translate(double dx,
double dy)
Translate this view and all child views by dx, dy. |
void |
update(org.jgraph.graph.GraphLayoutCache cache)
Update attributes for this view and indicate to the parent this child has been updated. |
| Methods inherited from class org.jgraph.graph.VertexView |
|---|
getCachedBounds, getCenterPoint, getHandle, getPerimeterPoint, getPerimeterPoint, getRenderer, setCachedBounds |
| Methods inherited from class org.jgraph.graph.AbstractCellView |
|---|
changeAttributes, childUpdated, getAllAttributes, getAttributes, getBounds, getCell, getCenterPoint, getChildViews, getDescendantViews, getEditor, getParentView, getRendererComponent, intersects, isLeaf, refresh, removeFromParent, setAttributes, setCell |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompoundVertexView()
public CompoundVertexView(java.lang.Object cell)
cell - model object| Method Detail |
|---|
public java.awt.geom.Rectangle2D getBounds()
getBounds in interface org.jgraph.graph.CellViewgetBounds in class org.jgraph.graph.VertexViewpublic void setBounds(java.awt.geom.Rectangle2D newBounds)
union of the child vertices'
bounds and the argument.
setBounds in class org.jgraph.graph.AbstractCellViewnewBounds - new boundspublic void update(org.jgraph.graph.GraphLayoutCache cache)
update in interface org.jgraph.graph.CellViewupdate in class org.jgraph.graph.VertexView
public void translate(double dx,
double dy)
dx, dy.
translate in class org.jgraph.graph.AbstractCellViewdx - x-axis translationdy - y-axis translation
public void scale(double sx,
double sy,
java.awt.geom.Point2D origin)
sx and sy, relative to
origin. Child views are not scaled.
scale in class org.jgraph.graph.AbstractCellViewsx - x scaling factorsy - y scaling factor
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||