Package | com.yworks.yfiles.layout.hierarchic |
Class | public class MedianLinearSegmentDrawer |
Inheritance | MedianLinearSegmentDrawer AbstractDrawer YObject Object |
Method | Defined By | ||
---|---|---|---|
MedianLinearSegmentDrawer(init:Boolean = true) | MedianLinearSegmentDrawer | ||
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] | MedianLinearSegmentDrawer | ||
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 | ||
markConflicts(layerLists:Vector.<Object>, conflictMark:EdgeMap, dummyMap:NodeMap, pos:Vector.<int>):void [static]
Mark type 1 conflicts. | MedianLinearSegmentDrawer | ||
[static] | MedianLinearSegmentDrawer | ||
verticalAlignment(g:LayoutGraph, layerLists:Vector.<Object>):void
Calculates vertical alignment. | MedianLinearSegmentDrawer |
Method | Defined By | ||
---|---|---|---|
assignFinalCoordinates(layerLists:Vector.<Object>, _layerID:DataProvider):void [override]
Performs coordinate assignment. | MedianLinearSegmentDrawer | ||
dispose():void [override]
Frees held resources. | MedianLinearSegmentDrawer | ||
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 | ||
horizontalCompaction(g:LayoutGraph, x:Vector.<Number>, layerLists:Vector.<Object>):void
Calculate coordinates. | MedianLinearSegmentDrawer | ||
Initializes data structures for all runs. | MedianLinearSegmentDrawer | ||
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 | ||
MedianLinearSegmentDrawer | |||
propagateCoordinates(g:LayoutGraph):void
Writes the calculated x values in the layout graph. | MedianLinearSegmentDrawer | ||
Initializes data structures for one basic step. | MedianLinearSegmentDrawer |
MedianLinearSegmentDrawer | () | Constructor |
public function MedianLinearSegmentDrawer(init:Boolean = true)
init:Boolean (default = true )
|
assignFinalCoordinates | () | method |
override protected function assignFinalCoordinates(layerLists:Vector.<Object>, _layerID:DataProvider):void
Performs coordinate assignment.
Parameters
layerLists:Vector.<Object> | |
_layerID:DataProvider |
dispose | () | method |
override protected function dispose():void
Frees held resources.
getClass | () | method |
override public function getClass():Class
ReturnsClass |
horizontalCompaction | () | method |
protected function horizontalCompaction(g:LayoutGraph, x:Vector.<Number>, layerLists:Vector.<Object>):void
Calculate coordinates. This method corresponds to Algorithm 3 in [BK01].
Parameters
g:LayoutGraph — the graph for which the layout is calculated.
| |
x:Vector.<Number> — the array where the result is stored.
| |
layerLists:Vector.<Object> |
init | () | method |
protected function init(g:Graph, layerLists:Vector.<Object>):void
Initializes data structures for all runs.
Parameters
g:Graph | |
layerLists:Vector.<Object> |
initMedianLinearSegmentDrawer | () | method |
protected final function initMedianLinearSegmentDrawer():void
markConflicts | () | method |
public static function markConflicts(layerLists:Vector.<Object>, conflictMark:EdgeMap, dummyMap:NodeMap, pos:Vector.<int>):void
Mark type 1 conflicts. This method corresponds to Algorithm 1 in [BK01].
Parameters
layerLists:Vector.<Object> — the list of layers.
| |
conflictMark:EdgeMap — used to mark the conflicting edges.
| |
dummyMap:NodeMap — map which returns true for bends, false otherwise.
| |
pos:Vector.<int> — is indexed by the index method of node and returns the rank of a node inside the layer which contains the node.
|
newMedianLinearSegmentDrawer | () | method |
public static function newMedianLinearSegmentDrawer():MedianLinearSegmentDrawer
ReturnsMedianLinearSegmentDrawer |
propagateCoordinates | () | method |
protected function propagateCoordinates(g:LayoutGraph):void
Writes the calculated x values in the layout graph.
Parameters
g:LayoutGraph |
reinit | () | method |
protected function reinit(g:Graph, x:Vector.<Number>):void
Initializes data structures for one basic step.
Parameters
g:Graph | |
x:Vector.<Number> — the array where the coordinates will be stored.
|
verticalAlignment | () | method |
public function verticalAlignment(g:LayoutGraph, layerLists:Vector.<Object>):void
Calculates vertical alignment. This method corresponds to Algorithm 2 in [BK01].
Parameters
g:LayoutGraph — the graph for which the layout is calculated.
| |
layerLists:Vector.<Object> — the list of layers.
|