Class CasTreeViewer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class CasTreeViewer extends JPanel
A GUI that displays annotation results in a Swing tree viewer. This class extends JPanel and so can be reused within any Swing application.
See Also:
  • Constructor Details

    • CasTreeViewer

      public CasTreeViewer(CAS aCAS) throws CASException
      Creates a CAS Tree Viewer.
      Parameters:
      aCAS - the CAS containing the annotations to be displayed in the tree viewer GUI
      Throws:
      CASException - the CAS exception
  • Method Details

    • main

      public static void main(String[] args)
      Main program. Runs a TAE and displays the resulting annotations in the tree viewer.
      Parameters:
      args - Command-line arguments - two are reguired: the path to the TAE descriptor and a file to be analyzed.
    • setSize

      public void setSize(Dimension d)
      Sets the size.
      Overrides:
      setSize in class Component
      Parameters:
      d - the new size
      See Also: