Class OrganizationalChart.OrganizationalTreeNode

Enclosing class:
OrganizationalChart

protected class OrganizationalChart.OrganizationalTreeNode extends JGraphTreeLayout.StandardTreeNode
An ADT representing a node in an organisational chart structure.
  • Field Details

    • verticalStyleChildren

      protected boolean verticalStyleChildren
      Whether or not children of this node this have vertical children
  • Constructor Details

    • OrganizationalTreeNode

      public OrganizationalTreeNode(Object cell)
  • Method Details

    • addChild

      public void addChild(JGraphTreeLayout.StandardTreeNode newChild)
      Adds a new child to this parent node
      Overrides:
      addChild in class JGraphTreeLayout.StandardTreeNode
      Parameters:
      newChild - the child to be added
    • isVerticalStyleChildren

      public boolean isVerticalStyleChildren()
      Returns:
      the verticalStyleChildren
    • setVerticalStyleChildren

      public void setVerticalStyleChildren(boolean verticalStyleChildren)
      Parameters:
      verticalStyleChildren - the verticalStyleChildren to set
    • setDepth

      public void setDepth(int depth)
      Overrides:
      setDepth in class JGraphTreeLayout.StandardTreeNode
      Parameters:
      depth - the depth to set
    • setPosition

      public void setPosition(Point2D parent, double levelHeight)
      Sets the position of this node
      Overrides:
      setPosition in class JGraphTreeLayout.StandardTreeNode
      Parameters:
      parent - the parent of this node
      levelHeight - the height of nodes on the same level
    • positionVerticalChildren

      protected void positionVerticalChildren(Point2D parent)