Package | com.yworks.yfiles.layout.hierarchic.incremental |
Class | public class TypeBasedDrawingDistanceCalculator |
Inheritance | TypeBasedDrawingDistanceCalculator YObject Object |
Implements | DrawingDistanceCalculator |
See also
Property | Defined By | ||
---|---|---|---|
edge2EdgeDistance : Number
Specifies the distance between edges. | TypeBasedDrawingDistanceCalculator | ||
minimumFirstSegmentLength : Number
Specifies the minimum length of the first and last segment of an edge. | TypeBasedDrawingDistanceCalculator | ||
node2EdgeDistance : Number
Specifies the distance between nodes and edges. | TypeBasedDrawingDistanceCalculator | ||
node2NodeDistance : Number
Specifies the distance between nodes. | TypeBasedDrawingDistanceCalculator | ||
useCompaction : Boolean
Specifies whether or not the compaction option is enabled. | TypeBasedDrawingDistanceCalculator |
Method | Defined By | ||
---|---|---|---|
TypeBasedDrawingDistanceCalculator(init:Boolean = true)
Creates a new instance of TypeBasedDrawingDistanceCalculator
| TypeBasedDrawingDistanceCalculator | ||
TypeBasedDrawingDistanceCalculator | |||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | TypeBasedDrawingDistanceCalculator | ||
getMinDistance(graph:LayoutGraph, layer:Layer, ldp:LayoutDataProvider, left:Node, right:Node):Number | TypeBasedDrawingDistanceCalculator | ||
hashCode():int | YObject | ||
TypeBasedDrawingDistanceCalculator | |||
[static]
Creates a new instance of TypeBasedDrawingDistanceCalculator
| TypeBasedDrawingDistanceCalculator |
Method | Defined By | ||
---|---|---|---|
Initializes this object. | TypeBasedDrawingDistanceCalculator |
edge2EdgeDistance | property |
edge2EdgeDistance:Number
Specifies the distance between edges.
public function get edge2EdgeDistance():Number
public function set edge2EdgeDistance(value:Number):void
minimumFirstSegmentLength | property |
minimumFirstSegmentLength:Number
Specifies the minimum length of the first and last segment of an edge.
public function get minimumFirstSegmentLength():Number
public function set minimumFirstSegmentLength(value:Number):void
node2EdgeDistance | property |
node2EdgeDistance:Number
Specifies the distance between nodes and edges.
public function get node2EdgeDistance():Number
public function set node2EdgeDistance(value:Number):void
node2NodeDistance | property |
node2NodeDistance:Number
Specifies the distance between nodes.
public function get node2NodeDistance():Number
public function set node2NodeDistance(value:Number):void
useCompaction | property |
useCompaction:Boolean
Specifies whether or not the compaction option is enabled. If it is enabled adjacent layer elements may be placed in a stacked style (i.e., horizontally interleaving). By default this option is disabled.
public function get useCompaction():Boolean
public function set useCompaction(value:Boolean):void
TypeBasedDrawingDistanceCalculator | () | Constructor |
public function TypeBasedDrawingDistanceCalculator(init:Boolean = true)
Creates a new instance of TypeBasedDrawingDistanceCalculator
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.
|
dispose | () | method |
public function dispose(graph:LayoutGraph, layers:Layers, ldp:LayoutDataProvider):void
Parameters
graph:LayoutGraph | |
layers:Layers | |
ldp:LayoutDataProvider |
getClass | () | method |
override public function getClass():Class
ReturnsClass |
getMinDistance | () | method |
public function getMinDistance(graph:LayoutGraph, layer:Layer, ldp:LayoutDataProvider, left:Node, right:Node):Number
Parameters
graph:LayoutGraph | |
layer:Layer | |
ldp:LayoutDataProvider | |
left:Node | |
right:Node |
Number |
initialize | () | method |
public function initialize(graph:LayoutGraph, layers:Layers, ldp:LayoutDataProvider):void
Parameters
graph:LayoutGraph | |
layers:Layers | |
ldp:LayoutDataProvider |
initTypeBasedDrawingDistanceCalculator | () | method |
protected final function initTypeBasedDrawingDistanceCalculator():void
Initializes this object. See the documentation of the corresponding factory method newTypeBasedDrawingDistanceCalculator()
for details.
See also
newTypeBasedDrawingDistanceCalculator | () | method |
public static function newTypeBasedDrawingDistanceCalculator():TypeBasedDrawingDistanceCalculator
Creates a new instance of TypeBasedDrawingDistanceCalculator
ReturnsTypeBasedDrawingDistanceCalculator |