Packagecom.yworks.yfiles.layout.circular
Classpublic class SingleCycleLayouter
InheritanceSingleCycleLayouter Inheritance CanonicMultiStageLayouter Inheritance YObject Inheritance Object

A layouter that places the nodes of a graph on a cycle.

Here is an sample output of the layouter with activated automatic radius determination.



Public Properties
 PropertyDefined By
  automaticRadius : Boolean
Getter: Returns whether or not to choose the cycle radius automatically.
SingleCycleLayouter
 InheritedcomponentLayouter : LayoutStage
Specifies the LayoutStage responsible for laying out the connected components of the graph.
CanonicMultiStageLayouter
 InheritedcomponentLayouterEnabled : Boolean
Getter: Returns whether or not ComponentLayouter is enabled.
CanonicMultiStageLayouter
  fixedRadius : Number
Getter: Returns the fixed radius for the cycle on which the nodes of the graph will be placed.
SingleCycleLayouter
  fromSketchModeEnabled : Boolean
Getter: Returns whether or not to take the coordinates of the input diagram into account when arranging the nodes.
SingleCycleLayouter
 InheritedgroupNodeHider : LayoutStage
Specifies the LayoutStage that is responsible for hiding away grouping information for the layout algorithm.
CanonicMultiStageLayouter
 InheritedhideGroupNodes : Boolean
Specifies whether or not to hide away group nodes before the layout begins.
CanonicMultiStageLayouter
  initialAngle : Number
Getter: Get the angle for the first node.
SingleCycleLayouter
 InheritedlabelLayouter : LayoutStage
Getter: Returns the algorithm used for placing labels.
CanonicMultiStageLayouter
 InheritedlabelLayouterEnabled : Boolean
Getter: Returns whether or not LabelLayouter is enabled.
CanonicMultiStageLayouter
  lastAppliedRadius : Number
[read-only] Returns the radius last applied by this layouter.
SingleCycleLayouter
 InheritedlayoutOrientation : int
Specifies the main layout orientation.
CanonicMultiStageLayouter
  minimalNodeDistance : int
Getter: Returns the distance to keep between the nodes on the cycle Default value is 30.0.
SingleCycleLayouter
  minimalRadius : Number
Getter: Returns the minimal radius for the cycle on which the nodes are placed.
SingleCycleLayouter
  nodeSequencer : NodeSequencer
Specifies the node sequencer used to determine the order of nodes around a cycle.
SingleCycleLayouter
 InheritedorientationLayouter : LayoutStage
Specifies the LayoutStage that is responsible for changing the orientation of the computed layout.
CanonicMultiStageLayouter
 InheritedorientationLayouterEnabled : Boolean
Getter: Returns whether or not the OrientationLayouter is enabled.
CanonicMultiStageLayouter
 InheritedparallelEdgeLayouter : LayoutStage
Getter: Returns the LayoutStage responsible for routing parallel edges.
CanonicMultiStageLayouter
 InheritedparallelEdgeLayouterEnabled : Boolean
Getter: Returns whether or not the ParallelEdgeLayouter is enabled.
CanonicMultiStageLayouter
 InheritedselfLoopLayouter : LayoutStage
Getter: Returns the LayoutStage used for routing Self-loops.
CanonicMultiStageLayouter
 InheritedselfLoopLayouterEnabled : Boolean
Getter: Returns whether or not the SelfLoopLayouter is enabled.
CanonicMultiStageLayouter
 InheritedsubgraphLayouter : LayoutStage
Specifies the LayoutStage that is responsible for constraining the layout process to a subgraph of the target graph.
CanonicMultiStageLayouter
 InheritedsubgraphLayouterEnabled : Boolean
Getter: Returns whether or not the SubgraphLayouter is enabled.
CanonicMultiStageLayouter
Public Methods
 MethodDefined By
  
SingleCycleLayouter(init:Boolean = true)
SingleCycleLayouter
 Inherited
Appends a stage to the layout pipeline.
CanonicMultiStageLayouter
 Inherited
Returns a layout for the given layout graph.
CanonicMultiStageLayouter
 Inherited
Returns a layout for the given graph interface and layout.
CanonicMultiStageLayouter
 Inherited
canLayout(graph:LayoutGraph):Boolean
Tests whether or not the given graph can be laid out by this layouter.
CanonicMultiStageLayouter
  
canLayoutCore(graph:LayoutGraph):Boolean
[override] Always returns true.
SingleCycleLayouter
 Inherited
doLayout(layoutGraph:LayoutGraph):void
Calculates a layout for the given graph.
CanonicMultiStageLayouter
 Inherited
Calculates a layout for the given graph interface and layout.
CanonicMultiStageLayouter
  
[override] Core layout routine.
SingleCycleLayouter
 Inherited
Disables all layout stages and performs only the core layouter.
CanonicMultiStageLayouter
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
SingleCycleLayouter
 Inherited
hashCode():int
YObject
  
[static]
SingleCycleLayouter
 Inherited
Prepends a stage to the layout pipeline.
CanonicMultiStageLayouter
 Inherited
Removes a LayoutStage that has been previously added by the methods appendStage() or prependStage().
CanonicMultiStageLayouter
Protected Methods
 MethodDefined By
 Inherited
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
 Inherited
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
 Inherited
CanonicMultiStageLayouter
  
Initializes this object.
SingleCycleLayouter
Property Detail
automaticRadiusproperty
automaticRadius:Boolean

Getter: Returns whether or not to choose the cycle radius automatically. By default this feature is enabled.

Setter: Specifies whether or not the radius for the layout should be determined automatically. If enabled a radius will be chosen such that the adjacent nodes on the circle will be approximately minimalNodeDistance apart. If this feature is deactivated the radius specified via fixedRadius will be applied. By default this feature is enabled.


Implementation
    public function get automaticRadius():Boolean
    public function set automaticRadius(value:Boolean):void

See also

fixedRadiusproperty 
fixedRadius:Number

Getter: Returns the fixed radius for the cycle on which the nodes of the graph will be placed. Default value is 200.0.

Setter: Sets a fixed radius for the cycle on which the nodes of the graph will be placed.

The fixed radius is ignored if the automatic radius feature is activated. Default value is 200.0.


Implementation
    public function get fixedRadius():Number
    public function set fixedRadius(value:Number):void
fromSketchModeEnabledproperty 
fromSketchModeEnabled:Boolean

Getter: Returns whether or not to take the coordinates of the input diagram into account when arranging the nodes.

Setter: Determines whether or not to take the coordinates of the input diagram into account when arranging the nodes of the partition. If this features is enabled, the original circular order of peripheral nodes around an estimated circle center is preserved.

By default this feature is disabled.


Implementation
    public function get fromSketchModeEnabled():Boolean
    public function set fromSketchModeEnabled(value:Boolean):void
initialAngleproperty 
initialAngle:Number

Getter: Get the angle for the first node. Default value is 0.0

Setter: Set the angle for the first node of the sequence. The angle is measured in rad and world coordinates, i.e. 0 is east, Pi/4 south etc. Note: This setting is ignored when the SingleCycleLayouter is used in connection with com.yworks.yfiles.layout.circular.CircularLayouter.


Implementation
    public function get initialAngle():Number
    public function set initialAngle(value:Number):void

See also

lastAppliedRadiusproperty 
lastAppliedRadius:Number  [read-only]

Returns the radius last applied by this layouter.


Implementation
    public function get lastAppliedRadius():Number
minimalNodeDistanceproperty 
minimalNodeDistance:int

Getter: Returns the distance to keep between the nodes on the cycle Default value is 30.0.

Setter: Sets the minimal distance to keep between the nodes on the cycle This feature is ignored if the automatic radius feature is deactivated. Default value is 30.0.


Implementation
    public function get minimalNodeDistance():int
    public function set minimalNodeDistance(value:int):void
minimalRadiusproperty 
minimalRadius:Number

Getter: Returns the minimal radius for the cycle on which the nodes are placed. Default value is 5.0.

Setter: Sets the minimal radius for the cycle on which the nodes are placed. This feature is considered if the radius is detected automatically. Default value is 5.0.


Implementation
    public function get minimalRadius():Number
    public function set minimalRadius(value:Number):void
nodeSequencerproperty 
nodeSequencer:NodeSequencer

Specifies the node sequencer used to determine the order of nodes around a cycle.


Implementation
    public function get nodeSequencer():NodeSequencer
    public function set nodeSequencer(value:NodeSequencer):void
Constructor Detail
SingleCycleLayouter()Constructor
public function SingleCycleLayouter(init:Boolean = true)

Parameters
init: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.
Method Detail
canLayoutCore()method
override public function canLayoutCore(graph:LayoutGraph):Boolean

Always returns true. Yes we can handle anything!

Parameters

graph:LayoutGraph

Returns
Boolean
doLayoutCore()method 
override public function doLayoutCore(graph:LayoutGraph):void

Core layout routine.

Parameters

graph:LayoutGraph

getClass()method 
override public function getClass():Class

Returns
Class
initSingleCycleLayouter()method 
protected final function initSingleCycleLayouter():void

Initializes this object. See the documentation of the corresponding factory method newSingleCycleLayouter() for details.

See also

newSingleCycleLayouter()method 
public static function newSingleCycleLayouter():SingleCycleLayouter

Returns
SingleCycleLayouter