Search this API

y.layout.tree
Interface FromSketchNodePlacer

All Superinterfaces:
NodePlacer
All Known Implementing Classes:
AbstractRotatableNodePlacer, ARNodePlacer, AssistantPlacer, BusPlacer, DefaultNodePlacer, DelegatingNodePlacer, DendrogramPlacer, DoubleLinePlacer, FreePlacer, GridNodePlacer, LayeredNodePlacer, LeftRightPlacer, SimpleNodePlacer

public interface FromSketchNodePlacer
extends NodePlacer

A FromSketchNodePlacer is responsible for arranging its nodes using a comparator, which sorts the outgoing edges of a node according to the position of their target nodes in the graph before the actual placement happens.

See Also:
NodePlacer

Field Summary
 
Fields inherited from interface y.layout.tree.NodePlacer
DIRECTION_ANY, DIRECTION_EAST, DIRECTION_NONE, DIRECTION_NORTH, DIRECTION_SOUTH, DIRECTION_WEST
 
Method Summary
 Comparator createFromSketchComparator()
          Creates a comparator for edges.
 
Methods inherited from interface y.layout.tree.NodePlacer
createProcessor, determineChildConnectors, placeSubtree
 

Method Detail

createFromSketchComparator

Comparator createFromSketchComparator()
Creates a comparator for edges. This comparator is used to sort the outgoing edges of a node before the placement of the node's subtree is calculated.

Returns:
a comparator for edges.

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.