eas Tree

  • How to set the depth of the tree (the tree that is a total of a few levels)
// Set depth of the tree is 3 , i.e. the tree comprising 0 , 1 , 2 three nodes
table.getTreeColumn().setDepth(3);
  • How to set the orientation of the tree
The tree includes two direction: down from the upper (i.e., above the root) and upwardly from the lower (i.e., below the root node).
// set the orientation of the tree is a top-down
table.getTreeColumn().setOrientation(KDTStyleConstants.UP);
// set the orientation of the tree from the bottom up to
table.getTreeColumn().setOrientation(KDTStyleConstants.DOWN);
  • How to set the level of each tree row
KDTable each line has a tree-level information, the default is 0 (ie, root)
// set the first 0 row tree level 0
table.getRow(0).setTreeLevel(0);
// set the first 1 line tree level 1
table.getRow(1).setTreeLevel(1);
// set of 2 , 3 , 4 tree line level is 2
table.getRow(2).setTreeLevel(2);
table.getRow(3).setTreeLevel(2);
  table.getRow(4).setTreeLevel(2);

Guess you like

Origin www.cnblogs.com/luojiabao/p/10963709.html
EAS