Options
All
  • Public
  • Public/Protected
  • All
Menu

An abstraction of a hierarchical edge for the hierarchy layout

Hierarchy

Index

Constructors

constructor

Properties

cell

cell: mxCell

The graph cell this object represents.

connectsAsSource

connectsAsSource: any

Collection of hierarchy edges that have this node as a source

connectsAsTarget

connectsAsTarget: any

Collection of hierarchy edges that have this node as a target

hashCode

hashCode: boolean

Assigns a unique hashcode for each node. Used by the model dfs instead of copying HashSets

height

height: number

The height of this cell. Default is 0.

id

id: string

The object identity of the wrapped cell

maxRank

maxRank: number

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

minRank

minRank: number

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

nextLayerConnectedCells

nextLayerConnectedCells: mxCell[]

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

previousLayerConnectedCells

previousLayerConnectedCells: mxCell[]

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

temp

temp: any[]

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

width

width: number

The width of this cell. Default is 0.

x

x: number[]

The x position of this cell for each layer it occupies

y

y: number[]

The y position of this cell for each layer it occupies

Methods

getCoreCell

getGeneralPurposeVariable

  • getGeneralPurposeVariable(layer: number): any

getNextLayerConnectedCells

  • getNextLayerConnectedCells(layer: number): mxCell

getPreviousLayerConnectedCells

  • getPreviousLayerConnectedCells(layer: number): mxCell

getRankValue

  • getRankValue(layer: number): number

getX

  • getX(layer: number): number

isAncestor

  • isAncestor(otherNode: any): boolean

isEdge

  • isEdge(): boolean

isVertex

  • isVertex(): boolean

setGeneralPurposeVariable

  • setGeneralPurposeVariable(layer: number, value: any): void

setX

  • setX(layer: number, value: number): void

setY

  • setY(layer: number, value: number): void

Generated using TypeDoc