mxGraphAbstractHierarchyCell

An abstraction of an internal hierarchy node or edge

Summary
mxGraphAbstractHierarchyCellAn abstraction of an internal hierarchy node or edge
Functions
mxGraphAbstractHierarchyCellConstructs a new hierarchical layout algorithm.
Variables
maxRankThe maximum rank this cell occupies.
minRankThe minimum rank this cell occupies.
xThe x position of this cell for each layer it occupies
yThe y position of this cell for each layer it occupies
widthThe width of this cell
heightThe height of this cell
nextLayerConnectedCellsA cached version of the cells this cell connects to on the next layer up
previousLayerConnectedCellsA cached version of the cells this cell connects to on the next layer down
tempTemporary variable for general use.
Functions
getNextLayerConnectedCellsReturns the cells this cell connects to on the next layer up
getPreviousLayerConnectedCellsReturns the cells this cell connects to on the next layer down
isEdgeReturns whether or not this cell is an edge
isVertexReturns whether or not this cell is a node
getGeneralPurposeVariableGets the value of temp for the specified layer
setGeneralPurposeVariableSet the value of temp for the specified layer
setXSet the value of x for the specified layer
getXGets the value of x on the specified layer
setYSet the value of y for the specified layer

Functions

mxGraphAbstractHierarchyCell

function mxGraphAbstractHierarchyCell()

Constructs a new hierarchical layout algorithm.

Arguments

graphReference to the enclosing mxGraph.
deterministicOptional boolean that specifies if this layout should be deterministic.  Default is true.

Variables

maxRank

mxGraphAbstractHierarchyCell.prototype.maxRank

The maximum rank this cell occupies.  Default is -1.

minRank

mxGraphAbstractHierarchyCell.prototype.minRank

The minimum rank this cell occupies.  Default is -1.

x

mxGraphAbstractHierarchyCell.prototype.x

The x position of this cell for each layer it occupies

y

mxGraphAbstractHierarchyCell.prototype.y

The y position of this cell for each layer it occupies

width

mxGraphAbstractHierarchyCell.prototype.width

The width of this cell

height

mxGraphAbstractHierarchyCell.prototype.height

The height of this cell

nextLayerConnectedCells

mxGraphAbstractHierarchyCell.prototype.nextLayerConnectedCells

A cached version of the cells this cell connects to on the next layer up

previousLayerConnectedCells

mxGraphAbstractHierarchyCell.prototype.previousLayerConnectedCells

A cached version of the cells this cell connects to on the next layer down

temp

mxGraphAbstractHierarchyCell.prototype.temp

Temporary variable for general use.  Generally, try to avoid carrying information between stages.  Currently, the longest path layering sets temp to the rank position in fixRanks() and the crossing reduction uses this.  This meant temp couldn’t be used for hashing the nodes in the model dfs and so hashCode was created

Functions

getNextLayerConnectedCells

mxGraphAbstractHierarchyCell.prototype.getNextLayerConnectedCells = function(
   layer
)

Returns the cells this cell connects to on the next layer up

getPreviousLayerConnectedCells

mxGraphAbstractHierarchyCell.prototype.getPreviousLayerConnectedCells = function(
   layer
)

Returns the cells this cell connects to on the next layer down

isEdge

mxGraphAbstractHierarchyCell.prototype.isEdge = function()

Returns whether or not this cell is an edge

isVertex

mxGraphAbstractHierarchyCell.prototype.isVertex = function()

Returns whether or not this cell is a node

getGeneralPurposeVariable

mxGraphAbstractHierarchyCell.prototype.getGeneralPurposeVariable = function(
   layer
)

Gets the value of temp for the specified layer

setGeneralPurposeVariable

mxGraphAbstractHierarchyCell.prototype.setGeneralPurposeVariable = function(
   layer,
   value
)

Set the value of temp for the specified layer

setX

mxGraphAbstractHierarchyCell.prototype.setX = function(layer,
value)

Set the value of x for the specified layer

getX

mxGraphAbstractHierarchyCell.prototype.getX = function(layer)

Gets the value of x on the specified layer

setY

mxGraphAbstractHierarchyCell.prototype.setY = function(layer,
value)

Set the value of y for the specified layer

function mxGraphAbstractHierarchyCell()
Constructs a new hierarchical layout algorithm.
mxGraphAbstractHierarchyCell.prototype.maxRank
The maximum rank this cell occupies.
mxGraphAbstractHierarchyCell.prototype.minRank
The minimum rank this cell occupies.
mxGraphAbstractHierarchyCell.prototype.x
The x position of this cell for each layer it occupies
mxGraphAbstractHierarchyCell.prototype.y
The y position of this cell for each layer it occupies
mxGraphAbstractHierarchyCell.prototype.width
The width of this cell
mxGraphAbstractHierarchyCell.prototype.height
The height of this cell
mxGraphAbstractHierarchyCell.prototype.nextLayerConnectedCells
A cached version of the cells this cell connects to on the next layer up
mxGraphAbstractHierarchyCell.prototype.previousLayerConnectedCells
A cached version of the cells this cell connects to on the next layer down
mxGraphAbstractHierarchyCell.prototype.temp
Temporary variable for general use.
mxGraphAbstractHierarchyCell.prototype.getNextLayerConnectedCells = function(
   layer
)
Returns the cells this cell connects to on the next layer up
mxGraphAbstractHierarchyCell.prototype.getPreviousLayerConnectedCells = function(
   layer
)
Returns the cells this cell connects to on the next layer down
mxGraphAbstractHierarchyCell.prototype.isEdge = function()
Returns whether or not this cell is an edge
mxGraphAbstractHierarchyCell.prototype.isVertex = function()
Returns whether or not this cell is a node
mxGraphAbstractHierarchyCell.prototype.getGeneralPurposeVariable = function(
   layer
)
Gets the value of temp for the specified layer
mxGraphAbstractHierarchyCell.prototype.setGeneralPurposeVariable = function(
   layer,
   value
)
Set the value of temp for the specified layer
mxGraphAbstractHierarchyCell.prototype.setX = function(layer,
value)
Set the value of x for the specified layer
mxGraphAbstractHierarchyCell.prototype.getX = function(layer)
Gets the value of x on the specified layer
mxGraphAbstractHierarchyCell.prototype.setY = function(layer,
value)
Set the value of y for the specified layer
Extends mxEventSource to implement a graph component for the browser.
Close