|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gumbo.visualize.data.layout.GraphLayoutWholeView
A base class for whole layout views used for graph layouts. Intended as input to a graph layout engine. As a layout part container, it only contains parts that directly correspond to the associated data model. Additional parts used for layout (e.g. kink nodes) should not be added.
Constructor Summary | |
GraphLayoutWholeView(WholeView view)
|
Method Summary | |
protected void |
addLayoutPart(GraphLayoutPart part)
Used by the system to add a new layout part to this whole. |
void |
doRandomEdgeLayout(AxisBound3 bound)
Randomly distributes the graph edges in the graphic world space within the specified bounds. |
void |
doRandomLayout(AxisBound3 bound)
Randomly distributes the graph vertices and edges in the graphic world space within the specified bounds. |
void |
doRandomVertexLayout(AxisBound3 bound)
Randomly distributes the graph vertices in the graphic world space within the specified bounds. |
DataView |
getDataView()
Gets the data view associated with this layout view. |
java.util.Collection |
getEdges()
Gets an immutable view of the layout parts in this whole associated with graph model edges. |
java.util.Collection |
getLayoutParts(java.util.Collection retVal)
Gets the layout parts in this whole. |
java.util.Set |
getNodes()
Gets an immutable view of the layout parts in this whole associated with layout nodes. |
AxisBound3 |
getPartsGraphicBound(AxisBound3 retVal)
Returns the smallest bounds containing all of the parts in this whole, in graphic space. |
AxisBound3 |
getPartsLayoutBound(AxisBound3 retVal)
Returns the smallest bounds containing all of the parts in this whole, in layout space. |
java.util.Collection |
getVertices()
Gets an immutable view of the layout parts in this whole associated with graph model vertices. |
AxisBound3 |
getWholeGraphicBound(AxisBound3 retVal)
Gets the largest bound allowed by the whole space, in graphic space. |
AxisBound3 |
getWholeLayoutBound(AxisBound3 retVal)
Gets the largest bound allowed by the whole space, in layout space. |
void |
initLayoutWhole()
Clears all layout parts and adds new ones according to the associated whole view's graph model. |
protected GraphLayoutEdge |
newLayoutEdge(PartView view)
Used by the system to creates a new layout edge. |
protected GraphLayoutVertex |
newLayoutVertex(PartView view)
Used by the system to creates a new layout vertex. |
protected void |
removeLayoutPart(GraphLayoutPart part)
Used by the system to remove an old layout part from this whole. |
void |
validateLayoutDisplay(LayoutGraphicTransform xform)
Called by layout engines to prepare and realize the display state of the graphic view associated with this layout view and any of its dependent layout views, possibly recusively. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GraphLayoutWholeView(WholeView view)
view
- The target whole view. Represents the data model
and whole graphic view used for layout input and display. Never null.Method Detail |
protected GraphLayoutVertex newLayoutVertex(PartView view)
view
- The associated part view. Never null.protected GraphLayoutEdge newLayoutEdge(PartView view)
view
- The associated part view. Never null.protected void addLayoutPart(GraphLayoutPart part)
part
- Layout part to be added to this whole. Ignored
if null or unrecognized.protected void removeLayoutPart(GraphLayoutPart part)
part
- Layout part to be removed from this whole. Ignored
if null or unrecognized.public void initLayoutWhole()
java.lang.IllegalArgumentException
- if a layout part
cannot be created and added to this layout whole as a result of an
incompatibility in the associated data model or graphic views.public java.util.Set getNodes()
public java.util.Collection getVertices()
public java.util.Collection getEdges()
public void doRandomVertexLayout(AxisBound3 bound)
public void doRandomEdgeLayout(AxisBound3 bound)
public void doRandomLayout(AxisBound3 bound)
public final DataView getDataView()
LayoutView
getDataView
in interface LayoutView
public void validateLayoutDisplay(LayoutGraphicTransform xform)
LayoutView
validateLayoutDisplay
in interface LayoutView
xform
- Transform between layout and graphic space. Never null.public java.util.Collection getLayoutParts(java.util.Collection retVal)
LayoutWhole
getLayoutParts
in interface LayoutWhole
public AxisBound3 getPartsLayoutBound(AxisBound3 retVal)
LayoutWhole
getPartsLayoutBound
in interface LayoutWhole
retVal
- Return value object. Never null.
public AxisBound3 getWholeLayoutBound(AxisBound3 retVal)
LayoutWhole
getWholeLayoutBound
in interface LayoutWhole
retVal
- Return value object. Never null.
public AxisBound3 getPartsGraphicBound(AxisBound3 retVal)
LayoutWholeView
getPartsGraphicBound
in interface LayoutWholeView
retVal
- Return value object. Never null.
public AxisBound3 getWholeGraphicBound(AxisBound3 retVal)
LayoutWholeView
getWholeGraphicBound
in interface LayoutWholeView
retVal
- Return value object. Never null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |