Package | com.yworks.yfiles.layout.hierarchic |
Class | public class SimplexDrawer |
Inheritance | SimplexDrawer AbstractDrawer YObject Object |
Property | Defined By | ||
---|---|---|---|
dummyMap : NodeMap [write-only]
Gives the drawer the opportunity to distinguish between dummy nodes and real ones. | AbstractDrawer | ||
edgeLengthKey : Object [write-only]
Set the key to the data provider, which stores the length of the edges. | AbstractDrawer | ||
graphInternal : LayoutGraph [read-only] | AbstractDrawer | ||
maximalDuration : uint
Getter:
Returns the time limit (in milliseconds) set for the algorithm. | SimplexDrawer | ||
minimalEdgeDistance : Number
Specifies the minimal distance between two edges in the same layer. | AbstractDrawer | ||
minimalLayerDistance : Number
Specifies the minimal distance between two layers. | AbstractDrawer | ||
minimalMultiEdgeDistance : Number
Specifies the minimal distance between two edges sharing source/target in the same layer. | AbstractDrawer | ||
minimalNodeDistance : Number
Specifies the minimal distance between two nodes in the same layer. | AbstractDrawer | ||
straighteningFactor : int
Specifies the straightening factor. | SimplexDrawer |
Method | Defined By | ||
---|---|---|---|
SimplexDrawer(init:Boolean = true) | SimplexDrawer | ||
Binds the specified graph to this drawer and calls the abstract method assignFinalCoordinates()
| AbstractDrawer | ||
assignYCoords(graph:LayoutGraph, layerLists:Vector.<Object>):void
Assign the y coordinates to the nodes respecting the minimal layer distance. | AbstractDrawer | ||
assignYCoords2(graph:LayoutGraph, layers:Vector.<Object>):void
Assign the y coordinates to the nodes respecting the minimal layer distance. | AbstractDrawer | ||
equals(o:Object):Boolean | YObject | ||
getBottomBorder(v:Node):Number
Returns the height of the bottom border of the given node. | AbstractDrawer | ||
getBottomHalf(v:Node):Number
Returns the height of the border-obeying bottom half of the node,
| AbstractDrawer | ||
getBottomY(v:Node):Number
Returns the border obeying bottom y-coordinate of the given node. | AbstractDrawer | ||
getClass():Class [override] | SimplexDrawer | ||
getFullHeight(v:Node):Number
Returns the border obeying full height of the given node. | AbstractDrawer | ||
getFullWidth(v:Node):Number
Returns the border obeying full width of the given node. | AbstractDrawer | ||
getLeftBorder(v:Node):Number
Returns the width of the left border of the given node. | AbstractDrawer | ||
getLeftHalf(v:Node):Number
Returns the width of the border-obeying left half of the node,
| AbstractDrawer | ||
Returns the border obeying left x-coordinate of the given node. | AbstractDrawer | ||
getRightBorder(v:Node):Number
Returns the width of the right border of the given node. | AbstractDrawer | ||
getRightHalf(v:Node):Number
Returns the width of the border-obeying right half of the node,
| AbstractDrawer | ||
Returns the border obeying right x-coordinate of the given node. | AbstractDrawer | ||
getTopBorder(v:Node):Number
Returns the height of the top border of the given node. | AbstractDrawer | ||
getTopHalf(v:Node):Number
Returns the height of the border-obeying top half of the node,
| AbstractDrawer | ||
Returns the border obeying top y-coordinate of the given node. | AbstractDrawer | ||
hashCode():int | YObject | ||
[static] | SimplexDrawer |
Method | Defined By | ||
---|---|---|---|
assignFinalCoordinates(layerLists:Vector.<Object>, layerID:DataProvider):void [override]
Assigns the coordinates to the nodes based on simplex-rank assignment. | SimplexDrawer | ||
dispose():void
Frees allocated resources after the drawer is finished. | AbstractDrawer | ||
Returns the overall edge cost of the result. | SimplexDrawer | ||
getDistanceToNextNode(v:Node):Number
Returns the minimal distance between the right border of the given node and the left border of its right hand side neighbor in the layer. | AbstractDrawer | ||
initAbstractDrawer():void | AbstractDrawer | ||
initializeDistancesToNextNode(layerLists:Vector.<Object>):void
Initializes the minimal distances between the right border of a node and the left border of its right hand side neighbor in a layer. | AbstractDrawer | ||
initSimplexDrawer():void | SimplexDrawer | ||
[static]
Returns whether the given node is a dummy node. | SimplexDrawer |
maximalDuration | property |
maximalDuration:uint
Getter: Returns the time limit (in milliseconds) set for the algorithm.
Setter: Sets a preferred time limit (in milliseconds) for the algorithm. Note that restricting the maximal duration may result in a worse layout quality. Furthermore, the real runtime may exceed the maximal duration since the algorithm still have to find a valid solution. public function get maximalDuration():uint
public function set maximalDuration(value:uint):void
straighteningFactor | property |
straighteningFactor:int
Specifies the straightening factor. Higher values will result in longer straight line routings.
public function get straighteningFactor():int
public function set straighteningFactor(value:int):void
SimplexDrawer | () | Constructor |
public function SimplexDrawer(init:Boolean = true)
init:Boolean (default = true )
|
assignFinalCoordinates | () | method |
override protected function assignFinalCoordinates(layerLists:Vector.<Object>, layerID:DataProvider):void
Assigns the coordinates to the nodes based on simplex-rank assignment.
Parameters
layerLists:Vector.<Object> — The nodes in each layer.
| |
layerID:DataProvider — Provides the layer ID for nodes.
|
getClass | () | method |
override public function getClass():Class
ReturnsClass |
getCost | () | method |
protected function getCost(graph:Graph, result:NodeMap, weight:EdgeMap, minLength:EdgeMap):int
Returns the overall edge cost of the result.
Parameters
graph:Graph | |
result:NodeMap — The result to calculate the cost for.
| |
weight:EdgeMap — Provides the edge weights.
| |
minLength:EdgeMap — Provides the min length for edges.
|
int — The total cost given the parameters.
|
initSimplexDrawer | () | method |
protected final function initSimplexDrawer():void
isDummy | () | method |
protected static function isDummy(graph:LayoutGraph, node:Node):Boolean
Returns whether the given node is a dummy node.
Parameters
graph:LayoutGraph | |
node:Node |
Boolean |
newSimplexDrawer | () | method |