Package pal.gui

Class TreeComponent

java.lang.Object
java.awt.Component
pal.gui.TreeComponent
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable

public class TreeComponent extends Component
An AWT Component for displaying a tree.
Version:
$Id: TreeComponent.java,v 1.17 2002/03/25 02:38:45 alexi Exp $
Author:
Alexei Drummond
See Also:
  • Field Details

  • Constructor Details

    • TreeComponent

      public TreeComponent(Tree tree, boolean usingSymbols)
    • TreeComponent

      public TreeComponent(Tree tree, TimeOrderCharacterData tocd, boolean usingSymbols)
    • TreeComponent

      public TreeComponent(Tree tree)
    • TreeComponent

      public TreeComponent(Tree tree, String title)
    • TreeComponent

      public TreeComponent(Tree tree, String title, boolean showTitle)
  • Method Details

    • setLabelMapping

      public final void setLabelMapping(LabelMapping lm)
    • setColouriser

      public void setColouriser(NameColouriser nc)
    • setAttributeName

      public void setAttributeName(String name)
    • setMaxHeight

      public void setMaxHeight(double maxHeight)
    • setTree

      public void setTree(Tree tree)
    • setTitle

      public void setTitle(String title)
    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class Component
    • setInvertCircular

      public void setInvertCircular(boolean invert)
    • getMinimumSize

      public Dimension getMinimumSize()
      Overrides:
      getMinimumSize in class Component
    • getTitle

      public String getTitle()
    • setMode

      public void setMode(int mode)
      Sets the mode of display for this component.
      Parameters:
      the - mode to switch to. Valid arguments are NORMAL (for normal tree display), and CIRCULAR (for a circular view of the trees)
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class Component