Package | Description |
---|---|
com.yworks.yfiles.layout.hierarchic |
Provides hierarchic layout style algorithms.
|
Modifier and Type | Method and Description |
---|---|
void |
SimplexNodePlacer.assignLayerCoordinates(LayoutGraph graph,
ILayoutDataProvider layoutDataProvider,
ILayers layers) |
void |
INodePlacer.assignLayerCoordinates(LayoutGraph graph,
ILayoutDataProvider layoutDataProvider,
ILayers layers)
Assigns preliminary y-coordinates for each layer of a hierarchic layout.
|
void |
WeightedLayerer.assignLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Assigns all nodes of the graph to layers and adds them to the
ILayers instance. |
void |
TopologicalLayerer.assignLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Assigns all nodes of the graph to layers and adds them to the
ILayers instance. |
void |
MultiComponentLayerer.assignLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp) |
void |
ILayerer.assignLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Assigns all nodes of the graph to layers and adds them to the
ILayers instance. |
void |
GivenLayersLayerer.assignLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Assigns all nodes of the graph to layers and adds them to the
ILayers instance. |
void |
ConstraintIncrementalLayerer.assignLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Assigns all nodes of the graph to layers and adds them to the
ILayers instance based on relative and absolute
layering constraints defined by the given layering constraints. |
void |
BFSLayerer.assignLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Assigns all nodes of the graph to layers and adds them to the
ILayers instance. |
void |
AspectRatioComponentLayerer.assignLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Assigns all nodes of the graph to layers and registers them to the
ILayers instance based on the given aspect
ratio. |
void |
AsIsLayerer.assignLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Assigns all nodes of the graph to layers by analyzing already existing node coordinates and adds them to the
ILayers
instance. |
protected void |
SimplexNodePlacer.assignNodesToSublayer(NodeList layerNodes,
ILayoutDataProvider ldp,
LayoutGraph graph,
INodeMap lowerSublayer)
Assigns the nodes of a given layer to the corresponding upper/lower sublayer if
node compaction
is enabled. |
void |
IPortAllocator.assignPorts(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Assigns to each edge of the graph a source port and target port coordinate pair.
|
void |
DefaultPortAllocator.assignPorts(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Assigns source and target port coordinates to each edge of the graph.
|
void |
SimplexNodePlacer.assignSequenceCoordinates(LayoutGraph graph,
ILayoutDataProvider layoutDataProvider,
ILayers layers,
IDrawingDistanceCalculator drawingDistanceCalculator) |
void |
INodePlacer.assignSequenceCoordinates(LayoutGraph graph,
ILayoutDataProvider layoutDataProvider,
ILayers layers,
IDrawingDistanceCalculator drawingDistanceCalculator)
Determines the resulting x-coordinates of a hierarchic layout.
|
protected ILayers |
HierarchicLayoutCore.createLayers(ILayoutDataProvider ldp)
Factory method called during
HierarchicLayoutCore.applyLayoutCore(LayoutGraph) and creates an appropriate ILayers
implementation using the given ILayoutDataProvider instance. |
void |
TypeBasedDrawingDistanceCalculator.dispose(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp) |
void |
IDrawingDistanceCalculator.dispose(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Disposes of internal data structures.
|
void |
DefaultDrawingDistanceCalculator.dispose(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp) |
protected double |
SimplexNodePlacer.getLayerAlignment(LayoutGraph graph,
ILayoutDataProvider ldp,
Node node,
int layerIndex,
double minLayerHeight)
Returns the alignment of the node with a specified layer.
|
double |
TypeBasedDrawingDistanceCalculator.getMinDistance(LayoutGraph graph,
ILayer layer,
ILayoutDataProvider ldp,
Node left,
Node right) |
double |
IDrawingDistanceCalculator.getMinDistance(LayoutGraph graph,
ILayer layer,
ILayoutDataProvider ldp,
Node left,
Node right)
Main interface method called by
INodePlacer instances to determine the
minimum distance between Node s of same layer. |
double |
DefaultDrawingDistanceCalculator.getMinDistance(LayoutGraph graph,
ILayer layer,
ILayoutDataProvider ldp,
Node left,
Node right)
Determines the minimum distance between two
Node s of the same layer. |
protected double |
SimplexNodePlacer.getMinimumLayerHeight(LayoutGraph graph,
ILayoutDataProvider ldp,
ILayer layer)
Returns the minimum height of a given
layer . |
protected double |
DefaultPortAllocator.getPortBorderGap(LayoutGraph graph,
ILayoutDataProvider ldp,
Node node,
int sideIndex,
double sideLength,
int edgeCount)
Callback method used for determining the port border gap for each node and side.
|
protected double |
DefaultPortAllocator.getPortBorderGapRatio(LayoutGraph graph,
ILayoutDataProvider ldp,
Node node,
int sideIndex,
double sideLength,
int edgeCount)
Callback method used for determining the port border gap ratio.
|
protected double |
DefaultPortAllocator.getPortDistanceDelta(LayoutGraph graph,
ILayoutDataProvider ldp,
Node node,
int sideIndex,
double sideLength,
int edgeCount,
double portBorderGap)
Callback method used for determining the distance between two adjacent ports.
|
void |
TypeBasedDrawingDistanceCalculator.initialize(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp) |
void |
IDrawingDistanceCalculator.initialize(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Initializes internal data structures.
|
void |
DefaultDrawingDistanceCalculator.initialize(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp) |
protected AbstractPortConstraintOptimizer.SameLayerData |
PortCandidateOptimizer.insertSameLayerStructures(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory) |
protected AbstractPortConstraintOptimizer.SameLayerData |
AbstractPortConstraintOptimizer.insertSameLayerStructures(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Inserts a same-layer edge structure for each same-layer edge of the original graph.
|
protected boolean |
SimplexNodePlacer.isFixedNode(LayoutGraph graph,
ILayoutDataProvider provider,
Node node,
boolean inLayer)
Returns whether or not the given node should be treated as a node with fixed (given) coordinates.
|
void |
ILayeredComponentsMerger.merge(LayoutGraph graph,
ILayoutDataProvider ldp,
ILayers srcLayers,
ILayers targetLayers)
Merges two
ILayers instances. |
void |
DefaultLayeredComponentsMerger.merge(LayoutGraph graph,
ILayoutDataProvider ldp,
ILayers srcLayers,
ILayers targetLayers) |
void |
IEdgeReverser.normalizeEdges(LayoutGraph graph,
ILayoutDataProvider ldp)
Reverses all edges which point to the wrong direction.
|
void |
PortCandidateOptimizer.optimizeAfterLayering(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory) |
void |
IPortConstraintOptimizer.optimizeAfterLayering(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Assigns new temporary port constraints after the layering information has been determined.
|
abstract void |
AbstractPortConstraintOptimizer.optimizeAfterLayering(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Assigns new temporary port constraints after the nodes have been assigned to layers.
|
protected void |
AbstractPortConstraintOptimizer.optimizeAfterSequencing(Comparator<Object> inEdgeOrder,
Comparator<Object> outEdgeOrder,
LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Assigns new temporary port constraints after the order of the nodes in each layer has been determined.
|
void |
PortCandidateOptimizer.optimizeAfterSequencing(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory) |
void |
IPortConstraintOptimizer.optimizeAfterSequencing(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Assigns new temporary port constraints after the sequence of the nodes has been determined.
|
void |
AbstractPortConstraintOptimizer.optimizeAfterSequencing(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Assigns new temporary port constraints after the order of the nodes in each layer has been determined.
|
protected void |
PortCandidateOptimizer.optimizeAfterSequencing(Node node,
Comparator<Object> inEdgeOrder,
Comparator<Object> outEdgeOrder,
LayoutGraph graph,
ILayoutDataProvider ldp,
IItemFactory itemFactory) |
protected abstract void |
AbstractPortConstraintOptimizer.optimizeAfterSequencing(Node node,
Comparator<Object> inEdgeOrder,
Comparator<Object> outEdgeOrder,
LayoutGraph graph,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Assigns new temporary port constraints to a given node of the graph after the order of the nodes in each layer has been
determined.
|
protected void |
HierarchicLayoutCore.publishSequences(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp)
Callback method that publishes the sequencing information.
|
protected void |
AbstractPortConstraintOptimizer.removeSameLayerStructures(AbstractPortConstraintOptimizer.SameLayerData sameLayerData,
LayoutGraph graph,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Removes the same-layer edge structure created using
AbstractPortConstraintOptimizer.insertSameLayerStructures(LayoutGraph, ILayers, ILayoutDataProvider, IItemFactory) . |
void |
IEdgeReverser.restoreEdgeDirections(LayoutGraph graph,
ILayoutDataProvider ldp)
Restores the original direction of edges marked as reversed.
|
void |
IEdgeReverser.reverse(LayoutGraph graph,
ILayoutDataProvider ldp,
Edge edge)
Reverses a given edge which points to the wrong direction.
|
void |
ISequencer.sequenceNodeLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Calculates the sequence of the nodes within each
layer . |
void |
GivenSequenceSequencer.sequenceNodeLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Calculates the sequence of the nodes within a
ILayers instance based on the given Comparator instance. |
void |
DefaultLayerSequencer.sequenceNodeLayers(LayoutGraph graph,
ILayers glayers,
ILayoutDataProvider ldp,
IItemFactory itemFactory) |
void |
AsIsSequencer.sequenceNodeLayers(LayoutGraph graph,
ILayers layers,
ILayoutDataProvider ldp,
IItemFactory itemFactory)
Calculates the sequence of the nodes within each layer using the nodes' coordinates.
|