Package | com.yworks.yfiles.layout.orthogonal |
Class | public class OrthogonalLayouter |
Inheritance | OrthogonalLayouter CanonicMultiStageLayouter YObject Object |
See also
Property | Defined By | ||
---|---|---|---|
alignDegreeOneNodes : Boolean
Specifies whether the algorithm should try to align degree-one nodes that have the same neighbour. | OrthogonalLayouter | ||
componentLayouter : LayoutStage
Specifies the LayoutStage responsible for laying out the connected components of the graph. | CanonicMultiStageLayouter | ||
componentLayouterEnabled : Boolean
Getter:
Returns whether or not ComponentLayouter is enabled. | CanonicMultiStageLayouter | ||
considerNodeLabels : Boolean
Getter:
Returns whether or not node labels are taken into account when calculating node positions (thereby preventing possible node/node label or node label/node label overlaps). | OrthogonalLayouter | ||
edgeLayoutDescriptor : EdgeLayoutDescriptor
Specifies the EdgeLayoutDescriptor instance used for all those edges, that do not have a specific layout descriptor assigned. | OrthogonalLayouter | ||
grid : int
Specifies the size of the grid on which the nodes and edges are placed. Default is 20. | OrthogonalLayouter | ||
groupNodeHider : LayoutStage
Specifies the LayoutStage that is responsible for hiding away grouping information for the layout algorithm. | CanonicMultiStageLayouter | ||
hideGroupNodes : Boolean
Specifies whether or not to hide away group nodes before the layout begins. | CanonicMultiStageLayouter | ||
integratedEdgeLabeling : Boolean
Getter:
Returns whether integrated edge labeling is enabled. | OrthogonalLayouter | ||
labelLayouter : LayoutStage
Getter:
Returns the algorithm used for placing labels. | CanonicMultiStageLayouter | ||
labelLayouterEnabled : Boolean
Getter:
Returns whether or not LabelLayouter is enabled. | CanonicMultiStageLayouter | ||
layoutOrientation : int
Specifies the main layout orientation. | CanonicMultiStageLayouter | ||
layoutStyle : int
Getter:
Returns the layout style of this layouter. | OrthogonalLayouter | ||
nodeModel : int | OrthogonalLayouter | ||
optimizePerceivedBends : Boolean
Specifies whether the algorithm should perform a post processing algorithm to reduce perceived bends in the drawing. | OrthogonalLayouter | ||
orientationLayouter : LayoutStage
Specifies the LayoutStage that is responsible for changing the orientation of the computed layout. | CanonicMultiStageLayouter | ||
orientationLayouterEnabled : Boolean
Getter:
Returns whether or not the OrientationLayouter is enabled. | CanonicMultiStageLayouter | ||
parallelEdgeLayouter : LayoutStage
Getter:
Returns the LayoutStage responsible for routing parallel edges. | CanonicMultiStageLayouter | ||
parallelEdgeLayouterEnabled : Boolean
Getter:
Returns whether or not the ParallelEdgeLayouter is enabled. | CanonicMultiStageLayouter | ||
selfLoopLayouter : LayoutStage
Getter:
Returns the LayoutStage used for routing Self-loops. | CanonicMultiStageLayouter | ||
selfLoopLayouterEnabled : Boolean
Getter:
Returns whether or not the SelfLoopLayouter is enabled. | CanonicMultiStageLayouter | ||
subgraphLayouter : LayoutStage
Specifies the LayoutStage that is responsible for constraining the layout process to a subgraph of the target graph. | CanonicMultiStageLayouter | ||
subgraphLayouterEnabled : Boolean
Getter:
Returns whether or not the SubgraphLayouter is enabled. | CanonicMultiStageLayouter | ||
useCrossingPostprocessing : Boolean
Getter:
Returns if post-processing is used to reduce the number of crossings. | OrthogonalLayouter | ||
useFaceMaximization : Boolean
Specifies if the layouter should try to maximize one face of the embedding. | OrthogonalLayouter | ||
useLengthReduction : Boolean
Specifies if the algorithm optimizes over the length of the edges. | OrthogonalLayouter | ||
useRandomization : Boolean
Getter:
Returns if a randomization strategy is used. | OrthogonalLayouter | ||
useSketchDrawing : Boolean
Specifies if the existing drawing should be used as sketch. | OrthogonalLayouter | ||
useSpacePostprocessing : Boolean
Getter:
Returns if post-processing is used to reduce the space used by the drawing. | OrthogonalLayouter |
Method | Defined By | ||
---|---|---|---|
OrthogonalLayouter(init:Boolean = true)
Returns a new instance. | OrthogonalLayouter | ||
appendStage(stage:LayoutStage):void
Appends a stage to the layout pipeline. | CanonicMultiStageLayouter | ||
Returns a layout for the given layout graph. | CanonicMultiStageLayouter | ||
Returns a layout for the given graph interface and layout. | CanonicMultiStageLayouter | ||
canLayout(graph:LayoutGraph):Boolean
Tests whether or not the given graph can be laid out by this layouter. | CanonicMultiStageLayouter | ||
canLayoutCore(graph:LayoutGraph):Boolean [override]
Returns always true. | OrthogonalLayouter | ||
doLayout(layoutGraph:LayoutGraph):void
Calculates a layout for the given graph. | CanonicMultiStageLayouter | ||
Calculates a layout for the given graph interface and layout. | CanonicMultiStageLayouter | ||
doLayoutCore(graph:LayoutGraph):void [override]
Assigns an orthogonal graph layout to the given layout graph. | OrthogonalLayouter | ||
enableOnlyCore():void
Disables all layout stages and performs only the core layouter. | CanonicMultiStageLayouter | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | OrthogonalLayouter | ||
hashCode():int | YObject | ||
[static]
Returns a new instance. | OrthogonalLayouter | ||
prependStage(stage:LayoutStage):void
Prepends a stage to the layout pipeline. | CanonicMultiStageLayouter | ||
removeStage(stage:LayoutStage):void
Removes a LayoutStage that has been previously added by the methods appendStage() or prependStage(). | CanonicMultiStageLayouter |
Method | Defined By | ||
---|---|---|---|
checkGroupNodeSize(layout:GraphLayout, node:Object):void
This method throws an com.yworks.bridge.util.IllegalArgumentException if the width/height of the given group node object is zero. | CanonicMultiStageLayouter | ||
checkNodeSize(layout:GraphLayout, node:Object):void
This method throws an com.yworks.bridge.util.IllegalArgumentException if the width/height of the given node object is zero. | CanonicMultiStageLayouter | ||
Factory method that creates the default EdgeLayoutDescriptor. | OrthogonalLayouter | ||
CanonicMultiStageLayouter | |||
initOrthogonalLayouter():void
Initializes this object. | OrthogonalLayouter |
Constant | Defined By | ||
---|---|---|---|
BOX_STYLE : int = 2 [static]
Layout style specifier. | OrthogonalLayouter | ||
EDGE_LAYOUT_DESCRIPTOR_DPKEY : Object = y.layout.orthogonal.OrthogonalLayouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY [static]
com.yworks.yfiles.base.DataProvider key used to retrieve com.yworks.yfiles.layout.orthogonal.EdgeLayoutDescriptor instances for each edge in the graph. | OrthogonalLayouter | ||
FIXED_BOX_STYLE : int = 6 [static]
Layout style specifier. | OrthogonalLayouter | ||
FIXED_MIXED_STYLE : int = 5 [static]
Layout style specifier. | OrthogonalLayouter | ||
MIXED_STYLE : int = 3 [static]
Layout style specifier. | OrthogonalLayouter | ||
NODEMODEL_UNCHANGED : int = 0 [static]
| OrthogonalLayouter | ||
NODEMODEL_UNIFORM : int = 1 [static]
| OrthogonalLayouter | ||
NORMAL_STYLE : int = 0 [static]
Layout style specifier. | OrthogonalLayouter | ||
NORMAL_TREE_STYLE : int = 4 [static]
Layout style specifier. | OrthogonalLayouter | ||
UNIFORM_STYLE : int = 1 [static]
Layout style specifier. | OrthogonalLayouter |
alignDegreeOneNodes | property |
alignDegreeOneNodes:Boolean
Specifies whether the algorithm should try to align degree-one nodes that have the same neighbour.
The default is false
.
public function get alignDegreeOneNodes():Boolean
public function set alignDegreeOneNodes(value:Boolean):void
considerNodeLabels | property |
considerNodeLabels:Boolean
Getter:
Returns whether or not node labels are taken into account when calculating node positions (thereby preventing possible node/node label or node label/node label overlaps).
This method is a convenience method checks whether the label layouter (com.yworks.yfiles.layout.CanonicMultiStageLayouter.labelLayouter) is of type com.yworks.yfiles.layout.LabelLayoutTranslator and com.yworks.yfiles.layout.LabelLayoutTranslator.translateNodeLabels returns true
. The default is false
.
true
. Note that setting this option may overwrite the currently set label layouter. Hence, to combine this option with a generic edge labeling algorithm, the generic labeling has to be applied in an additional step after calculating the layout. Furthermore, node labels can only be considered if the layout style is set to NORMAL_STYLE.
public function get considerNodeLabels():Boolean
public function set considerNodeLabels(value:Boolean):void
Error — if the current label layouter is not of type com.yworks.yfiles.layout.LabelLayoutTranslator.
|
See also
edgeLayoutDescriptor | property |
edgeLayoutDescriptor:EdgeLayoutDescriptor
Specifies the EdgeLayoutDescriptor
instance used for all those edges, that do not have a specific layout descriptor assigned.
public function get edgeLayoutDescriptor():EdgeLayoutDescriptor
public function set edgeLayoutDescriptor(value:EdgeLayoutDescriptor):void
ReferenceError — if the argument is null
|
See also
grid | property |
grid:int
Specifies the size of the grid on which the nodes and edges are placed. Default is 20.
public function get grid():int
public function set grid(value:int):void
integratedEdgeLabeling | property |
integratedEdgeLabeling:Boolean
Getter:
Returns whether integrated edge labeling is enabled.
This method is a convenience method that checks if the label layouter (com.yworks.yfiles.layout.CanonicMultiStageLayouter.labelLayouter) is of type com.yworks.yfiles.layout.LabelLayoutTranslator and com.yworks.yfiles.layout.LabelLayoutTranslator.translateEdgeLabels returns true
. The default is false
.
true
Note: edge labels can only be considered if the layout style is set to NORMAL_STYLE.
public function get integratedEdgeLabeling():Boolean
public function set integratedEdgeLabeling(value:Boolean):void
Error — if the current label layouter is not of type com.yworks.yfiles.layout.LabelLayoutTranslator.
|
See also
layoutStyle | property |
layoutStyle:int
Getter: Returns the layout style of this layouter.
Setter: Sets the layout style for this layouter. By default the layout style NORMAL_STYLE is set. public function get layoutStyle():int
public function set layoutStyle(value:int):void
See also
nodeModel | property |
nodeModel:int
public function get nodeModel():int
public function set nodeModel(value:int):void
optimizePerceivedBends | property |
optimizePerceivedBends:Boolean
Specifies whether the algorithm should perform a post processing algorithm to reduce perceived bends in the drawing.
The default is false
.
public function get optimizePerceivedBends():Boolean
public function set optimizePerceivedBends(value:Boolean):void
useCrossingPostprocessing | property |
useCrossingPostprocessing:Boolean
Getter:
Returns if post-processing is used to reduce the number of crossings.
Default is true
.
true
.
public function get useCrossingPostprocessing():Boolean
public function set useCrossingPostprocessing(value:Boolean):void
useFaceMaximization | property |
useFaceMaximization:Boolean
Specifies if the layouter should try to maximize one face of the embedding.
Default is false
.
public function get useFaceMaximization():Boolean
public function set useFaceMaximization(value:Boolean):void
useLengthReduction | property |
useLengthReduction:Boolean
Specifies if the algorithm optimizes over the length of the edges.
This may decrease the length of some edges significantly but it slows the algorithm down. Default is true
.
public function get useLengthReduction():Boolean
public function set useLengthReduction(value:Boolean):void
useRandomization | property |
useRandomization:Boolean
Getter:
Returns if a randomization strategy is used.
Default is true
.
true
.
public function get useRandomization():Boolean
public function set useRandomization(value:Boolean):void
useSketchDrawing | property |
useSketchDrawing:Boolean
Specifies if the existing drawing should be used as sketch.
public function get useSketchDrawing():Boolean
public function set useSketchDrawing(value:Boolean):void
useSpacePostprocessing | property |
useSpacePostprocessing:Boolean
Getter:
Returns if post-processing is used to reduce the space used by the drawing.
Default is true
.
true
.
public function get useSpacePostprocessing():Boolean
public function set useSpacePostprocessing(value:Boolean):void
OrthogonalLayouter | () | Constructor |
public function OrthogonalLayouter(init:Boolean = true)
Returns a new instance.
Parametersinit:Boolean (default = true ) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
canLayoutCore | () | method |
override public function canLayoutCore(graph:LayoutGraph):Boolean
Returns always true
.
Parameters
graph:LayoutGraph |
Boolean |
createEdgeLayoutDescriptor | () | method |
protected function createEdgeLayoutDescriptor():EdgeLayoutDescriptor
Factory method that creates the default EdgeLayoutDescriptor.
May not return null
!
EdgeLayoutDescriptor — a new EdgeLayoutDescriptor (new EdgeLayoutDescriptor() )
|
doLayoutCore | () | method |
override public function doLayoutCore(graph:LayoutGraph):void
Assigns an orthogonal graph layout to the given layout graph.
Parameters
graph:LayoutGraph |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initOrthogonalLayouter | () | method |
protected final function initOrthogonalLayouter():void
Initializes this object. See the documentation of the corresponding factory method newOrthogonalLayouter()
for details.
See also
newOrthogonalLayouter | () | method |
public static function newOrthogonalLayouter():OrthogonalLayouter
Returns a new instance.
ReturnsOrthogonalLayouter |
BOX_STYLE | Constant |
public static const BOX_STYLE:int = 2
Layout style specifier. In this layout style the size of the original nodes will be enlarged in order to save some bends. All edges will be routed orthogonally.
EDGE_LAYOUT_DESCRIPTOR_DPKEY | Constant |
public static const EDGE_LAYOUT_DESCRIPTOR_DPKEY:Object = y.layout.orthogonal.OrthogonalLayouter.EDGE_LAYOUT_DESCRIPTOR_DPKEY
com.yworks.yfiles.base.DataProvider key used to retrieve com.yworks.yfiles.layout.orthogonal.EdgeLayoutDescriptor instances for each edge in the graph. Different settings will affect the routing of the edges during the layout. Note: minimum edge length constraints are only considered for layout style NORMAL_STYLE, NORMAL_TREE_STYLE and UNIFORM_STYLE (see layoutStyle).
See also
FIXED_BOX_STYLE | Constant |
public static const FIXED_BOX_STYLE:int = 6
Layout style specifier. Nodes will be placed at the same location as with FIXED_MIXED_STYLE but edges will be routed strictly orthogonally. The size of nodes will not be altered.
See also
FIXED_MIXED_STYLE | Constant |
public static const FIXED_MIXED_STYLE:int = 5
Layout style specifier. In this layout style not all edges will be routed orthogonally. Edge segments that directly connect to a node may be routed non-vertically and non-horizontally. The size of nodes will not be altered.
MIXED_STYLE | Constant |
public static const MIXED_STYLE:int = 3
Layout style specifier. In this layout style not all edges will be routed orthogonally. Edge segments that directly connect to a node may be routed non-vertically and non-horizontally. A small uniform size will be assigned to all nodes.
NODEMODEL_UNCHANGED | Constant |
public static const NODEMODEL_UNCHANGED:int = 0
NODEMODEL_UNIFORM | Constant |
public static const NODEMODEL_UNIFORM:int = 1
NORMAL_STYLE | Constant |
public static const NORMAL_STYLE:int = 0
Layout style specifier. In this layout style the size of the nodes will not be changed by the algorithm. All edges will be routed orthogonally.
NORMAL_TREE_STYLE | Constant |
public static const NORMAL_TREE_STYLE:int = 4
Layout style specifier. Like NORMAL_STYLE but all directed subtree structures of the graph will be laid out in an optimized way. All edges will be routed orthogonally. The tree edges will be routed in a bus-like fashion.
See also
UNIFORM_STYLE | Constant |
public static const UNIFORM_STYLE:int = 1
Layout style specifier. In this layout style a uniform size will be assigned to all nodes. All edges will be routed orthogonally.