Packagecom.yworks.yfiles.layout.router
Classpublic class CollinearBendHider
InheritanceCollinearBendHider Inheritance AbstractLayoutStage Inheritance YObject Inheritance Object

Temporarily hides collinear bends on edge paths.



Public Properties
 PropertyDefined By
 InheritedcoreLayouter : Layouter
Specifies the core layouter.
AbstractLayoutStage
Public Methods
 MethodDefined By
  
CollinearBendHider(coreLayouter:Layouter, init:Boolean = true)
CollinearBendHider
  
canLayout(graph:LayoutGraph):Boolean
[override]
CollinearBendHider
  
doLayout(graph:LayoutGraph):void
[override]
CollinearBendHider
 Inherited
equals(o:Object):Boolean
YObject
  
getClass():Class
[override]
CollinearBendHider
 Inherited
hashCode():int
YObject
  
[static]
CollinearBendHider
Protected Methods
 MethodDefined By
 Inherited
canLayoutCore(graph:LayoutGraph):Boolean
Queries the core layouter whether or not the given graph can be laid out.
AbstractLayoutStage
 Inherited
Invokes the layout routine of the core layouter.
AbstractLayoutStage
 Inherited
AbstractLayoutStage
 Inherited
AbstractLayoutStage
  
initCollinearBendHider(coreLayouter:Layouter):void
Initializes this object.
CollinearBendHider
Public Constants
 ConstantDefined By
  SELECTED_EDGES : Object = CollinearBendHider#SELECTED_EDGES
[static] DataProvider key for boolean edge data.
CollinearBendHider
Constructor Detail
CollinearBendHider()Constructor
public function CollinearBendHider(coreLayouter:Layouter, init:Boolean = true)

Parameters
coreLayouter:Layouter
 
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
canLayout()method
override public function canLayout(graph:LayoutGraph):Boolean

Parameters

graph:LayoutGraph

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

Parameters

graph:LayoutGraph

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

Returns
Class
initCollinearBendHider()method 
protected final function initCollinearBendHider(coreLayouter:Layouter):void

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

Parameters

coreLayouter:Layouter

See also

newCollinearBendHider()method 
public static function newCollinearBendHider(coreLayouter:Layouter):CollinearBendHider

Parameters

coreLayouter:Layouter

Returns
CollinearBendHider
Constant Detail
SELECTED_EDGESConstant
public static const SELECTED_EDGES:Object = CollinearBendHider#SELECTED_EDGES

DataProvider key for boolean edge data. Only selected edges will be considered by this stage. If this key is not bound to the graph, then all edges will be considered.