|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DrawingDistanceCalculator
Interface for a helper class used by HierarchicLayouter
during
the node placement phase. NodePlacer
uses instances that implement
this interface to determine the minimum distances between elements in one layer.
The default implementation used in the HierarchicLayouter
is
DefaultDrawingDistanceCalculator
.
Method Summary | |
---|---|
void |
dispose(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp)
Called to dispose internal data structures. |
double |
getMinDistance(LayoutGraph graph,
Layer layer,
LayoutDataProvider ldp,
Node left,
Node right)
Main interface method. |
void |
initialize(LayoutGraph graph,
Layers layers,
LayoutDataProvider ldp)
Called to initialize internal data structures. |
Method Detail |
---|
void initialize(LayoutGraph graph, Layers layers, LayoutDataProvider ldp)
getMinDistance(LayoutGraph, Layer, LayoutDataProvider, Node, Node)
.
graph
- the graph that contains all elements that are used during
the node placementlayers
- the Layers object that will be used during subsequent callsldp
- the LayoutDataProvider that can be used to query informationdispose(LayoutGraph, Layers, LayoutDataProvider)
double getMinDistance(LayoutGraph graph, Layer layer, LayoutDataProvider ldp, Node left, Node right)
NodePlacer
instances to determine
the minimum distances between elements in one layer. Note that either of the Node
arguments may be null
. In that case only the border of the non-null
node should be considered.
graph
- the graph that contains the nodeslayer
- the layer object that contains the nodesldp
- the LayoutDataProvider that can be used to query informationleft
- the left one of the two nodes whose
minimum distance is to be determined or null
if only the left border of the right node is
of interest.right
- the right one of the two nodes whose
minimum distance is to be determined or null
if only the right border of the left node is
of interest.void dispose(LayoutGraph graph, Layers layers, LayoutDataProvider ldp)
graph
- the graph that contains all elements that are used during
the node placementlayers
- the Layers object that was usedldp
- the LayoutDataProvider that was used to query informationinitialize(LayoutGraph, Layers, LayoutDataProvider)
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |