Package | com.yworks.yfiles.layout |
Class | public class CanonicMultiStageLayouter |
Inheritance | CanonicMultiStageLayouter YObject Object |
Implements | Layouter |
Subclasses | ARTreeLayouter, BalloonLayouter, CircularLayouter, DirectedOrthogonalLayouter, FamilyTreeLayouter, GenericTreeLayouter, GraphTransformer, GRIP, HierarchicLayouter, HierarchicLayouterImpl, HVTreeLayouter, IncrementalHierarchicLayouter, OrganicLayouter, OrthogonalGroupLayouter, OrthogonalLayouter, RadialLayouter, RandomLayouter, SeriesParallelLayouter, SingleCycleLayouter, SmartOrganicLayouter, TreeLayouter |
See also
Property | Defined By | ||
---|---|---|---|
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 | ||
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 | ||
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 | ||
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 |
Method | Defined By | ||
---|---|---|---|
CanonicMultiStageLayouter(init:Boolean = true)
Constructs a new AbstractLayouter
| CanonicMultiStageLayouter | ||
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
Subclasses have to provide information whether or not they can layout the given graph. | CanonicMultiStageLayouter | ||
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
Subclasses have to provide core layout code in this method. | CanonicMultiStageLayouter | ||
enableOnlyCore():void
Disables all layout stages and performs only the core layouter. | CanonicMultiStageLayouter | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | CanonicMultiStageLayouter | ||
hashCode():int | YObject | ||
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 | ||
CanonicMultiStageLayouter |
componentLayouter | property |
componentLayouter:LayoutStage
Specifies the LayoutStage responsible for laying out the connected components of the graph.
public function get componentLayouter():LayoutStage
public function set componentLayouter(value:LayoutStage):void
componentLayouterEnabled | property |
componentLayouterEnabled:Boolean
Getter: Returns whether or not ComponentLayouter is enabled.
Setter: Specifies whether or not to enable the ComponentLayouter. By default it is enabled. public function get componentLayouterEnabled():Boolean
public function set componentLayouterEnabled(value:Boolean):void
groupNodeHider | property |
groupNodeHider:LayoutStage
Specifies the LayoutStage
that is responsible for hiding away grouping information for the layout algorithm.
public function get groupNodeHider():LayoutStage
public function set groupNodeHider(value:LayoutStage):void
hideGroupNodes | property |
hideGroupNodes:Boolean
Specifies whether or not to hide away group nodes before the layout begins. By default this is enabled for instances that cannot deal with node groupings.
public function get hideGroupNodes():Boolean
public function set hideGroupNodes(value:Boolean):void
labelLayouter | property |
labelLayouter:LayoutStage
Getter: Returns the algorithm used for placing labels. By default an instance of class com.yworks.yfiles.layout.labeling.GreedyMISLabeling will be returned.
Setter: Sets the algorithm used for placing labels. Note that assigning a new layout stage will not automatically activate it. To activate this stage use labelLayouterEnabled . public function get labelLayouter():LayoutStage
public function set labelLayouter(value:LayoutStage):void
See also
labelLayouterEnabled | property |
labelLayouterEnabled:Boolean
Getter: Returns whether or not LabelLayouter is enabled.
Setter: Specifies whether or not to enable the labeling algorithm. By default it is disabled. public function get labelLayouterEnabled():Boolean
public function set labelLayouterEnabled(value:Boolean):void
layoutOrientation | property |
layoutOrientation:int
Specifies the main layout orientation. The layouter tries to arrange nodes in such a way that all edges point in the main layout direction.
Note, the documentation for the other layout options assumes that the default layout orientation com.yworks.yfiles.layout.LayoutOrientation.TOP_TO_BOTTOM is being used.
public function get layoutOrientation():int
public function set layoutOrientation(value:int):void
See also
orientationLayouter | property |
orientationLayouter:LayoutStage
Specifies the LayoutStage that is responsible for changing the orientation of the computed layout.
public function get orientationLayouter():LayoutStage
public function set orientationLayouter(value:LayoutStage):void
orientationLayouterEnabled | property |
orientationLayouterEnabled:Boolean
Getter: Returns whether or not the OrientationLayouter is enabled.
Setter: Specifies whether or not to enable the OrientationLayouter. By default it is activated but does not change orientation of the layout. public function get orientationLayouterEnabled():Boolean
public function set orientationLayouterEnabled(value:Boolean):void
parallelEdgeLayouter | property |
parallelEdgeLayouter:LayoutStage
Getter: Returns the LayoutStage responsible for routing parallel edges. By default an instance of class com.yworks.yfiles.layout.ParallelEdgeLayouter will be returned.
Setter: Sets the ParallelEdgeLayouter responsible for routing parallel edges. public function get parallelEdgeLayouter():LayoutStage
public function set parallelEdgeLayouter(value:LayoutStage):void
See also
parallelEdgeLayouterEnabled | property |
parallelEdgeLayouterEnabled:Boolean
Getter: Returns whether or not the ParallelEdgeLayouter is enabled.
Setter: Specifies whether or not to enable the ParallelEdgeLayouter. By default it is enabled. public function get parallelEdgeLayouterEnabled():Boolean
public function set parallelEdgeLayouterEnabled(value:Boolean):void
selfLoopLayouter | property |
selfLoopLayouter:LayoutStage
Getter: Returns the LayoutStage used for routing Self-loops. By default an instance of class com.yworks.yfiles.layout.SelfLoopLayouter will be returned.
Setter: Sets the LayoutStage responsible for routing Self-loops. public function get selfLoopLayouter():LayoutStage
public function set selfLoopLayouter(value:LayoutStage):void
See also
selfLoopLayouterEnabled | property |
selfLoopLayouterEnabled:Boolean
Getter: Returns whether or not the SelfLoopLayouter is enabled.
Setter: Specifies whether or not to enable the SelfLoopLayouter. By default it is enabled. public function get selfLoopLayouterEnabled():Boolean
public function set selfLoopLayouterEnabled(value:Boolean):void
subgraphLayouter | property |
subgraphLayouter:LayoutStage
Specifies the LayoutStage that is responsible for constraining the layout process to a subgraph of the target graph.
public function get subgraphLayouter():LayoutStage
public function set subgraphLayouter(value:LayoutStage):void
subgraphLayouterEnabled | property |
subgraphLayouterEnabled:Boolean
Getter: Returns whether or not the SubgraphLayouter is enabled.
Setter: Specifies whether or not to enable the SubgraphLayouter. By default it is disabled. public function get subgraphLayouterEnabled():Boolean
public function set subgraphLayouterEnabled(value:Boolean):void
CanonicMultiStageLayouter | () | Constructor |
public function CanonicMultiStageLayouter(init:Boolean = true)
Constructs a new AbstractLayouter
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.
|
appendStage | () | method |
public function appendStage(stage:LayoutStage):void
Appends a stage to the layout pipeline. Stages added with this method will be invoked just before the core layouter will be invoked.
Parameters
stage:LayoutStage |
calcLayout | () | method |
public function calcLayout(layoutGraph:LayoutGraph):GraphLayout
Returns a layout for the given layout graph. The given graph will not be modified by the layout process.
Parameters
layoutGraph:LayoutGraph |
GraphLayout |
calcLayout2 | () | method |
public function calcLayout2(graph:GraphInterface, layout:GraphLayout):GraphLayout
Returns a layout for the given graph interface and layout. The given graph and layout will not be modified by the layout process.
Parameters
graph:GraphInterface | |
layout:GraphLayout |
GraphLayout |
canLayout | () | method |
public function canLayout(graph:LayoutGraph):Boolean
Tests whether or not the given graph can be laid out by this layouter. All stage layouters and the core layouter must be able to calculate the layout to make this test successful.
Parameters
graph:LayoutGraph |
Boolean |
canLayoutCore | () | method |
public function canLayoutCore(graph:LayoutGraph):Boolean
Subclasses have to provide information whether or not they can layout the given graph.
Parameters
graph:LayoutGraph |
Boolean |
checkGroupNodeSize | () | method |
protected function 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. It is called by the doLayout() method for each group node object in the input graph.
Parameters
layout:GraphLayout — a graph layout object.
| |
node:Object — the group node object to test.
|
IllegalArgumentException — thrown if the width/height of the group node object is zero.
|
See also
checkNodeSize | () | method |
protected function 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. It is called by the doLayout() method for each node object in the input graph.
Parameters
layout:GraphLayout — a graph layout object.
| |
node:Object — the node object to test.
|
IllegalArgumentException — thrown if the width/height of the node object is zero.
|
See also
doLayout | () | method |
public function doLayout(layoutGraph:LayoutGraph):void
Calculates a layout for the given graph. The given graph will not be copied during the layout process and the layout will be immediately applied to the given graph. This method is not side effect free in the sense that the order of edges or nodes in the input graph may change during the layout process.
Parameters
layoutGraph:LayoutGraph |
doLayout2 | () | method |
public function doLayout2(graph:GraphInterface, layout:GraphLayout):void
Calculates a layout for the given graph interface and layout. The calculated layout will be written back to the given layout.
Parameters
graph:GraphInterface | |
layout:GraphLayout |
doLayoutCore | () | method |
public function doLayoutCore(graph:LayoutGraph):void
Subclasses have to provide core layout code in this method.
Parameters
graph:LayoutGraph |
enableOnlyCore | () | method |
public function enableOnlyCore():void
Disables all layout stages and performs only the core layouter.
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initCanonicMultiStageLayouter | () | method |
protected final function initCanonicMultiStageLayouter():void
prependStage | () | method |
public function prependStage(stage:LayoutStage):void
Prepends a stage to the layout pipeline. Stage added with this method will be invoked before any other stages will be invoked.
Parameters
stage:LayoutStage |
removeStage | () | method |
public function removeStage(stage:LayoutStage):void
Removes a LayoutStage that has been previously added by the methods appendStage() or prependStage().
Parameters
stage:LayoutStage |
See also