TreeLayout

Simplicite.Diagram. TreeLayout

new TreeLayout(desktop, params)

Description:
  • TreeLayout

Parameters:
Name Type Description
desktop Simplicite.Diagram.Desktop

desktop

params Object

layout options

Members

gapBetweenLevels

Description:
  • Gap between levels

Gap between levels

gapBetweenNodes

Description:
  • Gap between nodes

Gap between nodes

inspect

Description:
  • Inspect

Inspect

levelSizes

Description:
  • Level sizes

Level sizes

openClose

Description:
  • Open/close

Open/close

reverse

Description:
  • Reverse

Reverse

root

Description:
  • Root

Root

rootPosition

Description:
  • Root position

Root position

vertical

Description:
  • Vertical

Vertical

Methods

addNode()

Description:
  • Add node

doLayout()

Description:
  • Do layout

getSize()

Description:
  • Get size

getTreeLevelSize()

Description:
  • Get tree level size

getTreeLevelSizes()

Description:
  • Get tree level sizes

globalSize()

Description:
  • Global size

insertNode()

Description:
  • Insert node

isOpen()

Description:
  • Is open?

layoutNodeBuildTree()

Description:
  • Generate the tree form the parent thru links

open()

Description:
  • Open

removeAll()

Description:
  • Remove all

removeNode()

Description:
  • Remove node

revalidate()

Description:
  • Revalidate

setGapBetweenLevels()

Description:
  • Set gap between levels

setGapBetweenNodes()

Description:
  • Set gap between nodes

setLevelSizes()

Description:
  • Set tree level sizes

setOpenClose()

Description:
  • Set open/close

setOrientation()

Description:
  • Set orientation

setParent()

Description:
  • Set parent

setRoot()

Description:
  • Set root

setRootPosition()

Description:
  • Set root position

switchOpenClose()

Description:
  • Switch open/close