NodePosition


The NodePosition class is used to track the position of the nodes on the draw panel.

 

Method Index


public NodePosition(Dimension dd)

Arguments:

  1. dd is the dimension of the draw panel

Creates an array which contains all center points for the possible nodes on the draw panel.


public Point getNodePosition(int level, int xPos)

Arguments:

  1. level is the level of the tree for node
  2. xPos is the relative horizontal position of the node

Returns the point on the draw panel of the node.


Ted Jenks