Package | com.yworks.yfiles.layout |
Class | public class RemoveColinearBendsStage |
Inheritance | RemoveColinearBendsStage AbstractLayoutStage YObject Object |
Property | Defined By | ||
---|---|---|---|
coreLayouter : Layouter
Specifies the core layouter. | AbstractLayoutStage | ||
removeStraightOnly : Boolean
Getter:
Returns the current state of the remove straight only property. | RemoveColinearBendsStage | ||
scale : Number
Specifies the current scale, to which this stage will refer, when checking for collinearity. | RemoveColinearBendsStage |
Method | Defined By | ||
---|---|---|---|
RemoveColinearBendsStage(init:Boolean = true) | RemoveColinearBendsStage | ||
canLayout(graph:LayoutGraph):Boolean [override] | RemoveColinearBendsStage | ||
doLayout(graph:LayoutGraph):void [override]
Removes collinear bends of the edges. | RemoveColinearBendsStage | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | RemoveColinearBendsStage | ||
hashCode():int | YObject | ||
[static] | RemoveColinearBendsStage |
Method | Defined By | ||
---|---|---|---|
canLayoutCore(graph:LayoutGraph):Boolean
Queries the core layouter whether or not the given graph can be laid out. | AbstractLayoutStage | ||
doLayoutCore(graph:LayoutGraph):void
Invokes the layout routine of the core layouter. | AbstractLayoutStage | ||
initAbstractLayoutStage1():void | AbstractLayoutStage | ||
initAbstractLayoutStage2(core:Layouter):void | AbstractLayoutStage | ||
initRemoveColinearBendsStage():void | RemoveColinearBendsStage |
removeStraightOnly | property |
removeStraightOnly:Boolean
Getter: Returns the current state of the remove straight only property.
Setter: Specifies whether the algorithm removes only collinear bends which lie in the middle of their neighbors or all collinear bends. In the first case, the angle at the middle bend must be 180 degrees, while in the second case, the angle can be either 180 degrees or 0 degree. The default isfalse
.
public function get removeStraightOnly():Boolean
public function set removeStraightOnly(value:Boolean):void
scale | property |
scale:Number
Specifies the current scale, to which this stage will refer, when checking for collinearity. Default value is 2.0. Which means that values are rounded to the second position after the decimal point. If the rounded values of an edge are leading to a collinear bend, this bend will be removed.
public function get scale():Number
public function set scale(value:Number):void
RemoveColinearBendsStage | () | Constructor |
public function RemoveColinearBendsStage(init:Boolean = true)
init:Boolean (default = true )
|
canLayout | () | method |
override public function canLayout(graph:LayoutGraph):Boolean
Parameters
graph:LayoutGraph |
Boolean |
doLayout | () | method |
override public function doLayout(graph:LayoutGraph):void
Removes collinear bends of the edges.
Parameters
graph:LayoutGraph — the graph
|
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initRemoveColinearBendsStage | () | method |
protected final function initRemoveColinearBendsStage():void
newRemoveColinearBendsStage | () | method |
public static function newRemoveColinearBendsStage():RemoveColinearBendsStage
ReturnsRemoveColinearBendsStage |