Class AnnotationFeaturesViewer

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible

public class AnnotationFeaturesViewer extends JPanel implements ActionListener
A tree view of Annotations and associated features.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      The Constant serialVersionUID.
      See Also:
    • ROOT

      public static final String ROOT
      The Constant ROOT.
      See Also:
    • scrollPane

      private JScrollPane scrollPane
      The scroll pane.
    • tree

      private JTree tree
      The tree.
    • expandAllButton

      private JButton expandAllButton
      The expand all button.
    • collapseAllButton

      private JButton collapseAllButton
      The collapse all button.
  • Constructor Details

    • AnnotationFeaturesViewer

      public AnnotationFeaturesViewer()
      Instantiates a new annotation features viewer.
  • Method Details

    • populate

      public void populate(AnalysisEngineDescription analysisEngine, AnalysisEngineMetaData aeMetaData, CAS cas)
      Populate.
      Parameters:
      analysisEngine - the analysis engine
      aeMetaData - the ae meta data
      cas - the cas
    • generateTreeView

      private JTree generateTreeView(AnalysisEngineDescription analysisEngine, AnalysisEngineMetaData aeMetaData, CAS cas)
      Generate tree view.
      Parameters:
      analysisEngine - the analysis engine
      aeMetaData - the ae meta data
      cas - the cas
      Returns:
      the j tree
    • getFeatureNamesForType

      private String[] getFeatureNamesForType(String aTypeName, CAS cas)
      Gets the feature names for type.
      Parameters:
      aTypeName - the a type name
      cas - the cas
      Returns:
      the feature names for type
    • getSelection

      public String getSelection()
      Gets the selection.
      Returns:
      the selection
    • addTreeSelectionListener

      public void addTreeSelectionListener(TreeSelectionListener sel)
      Adds the tree selection listener.
      Parameters:
      sel - the sel
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener