Class AnnotationDisplayCustomizationFrame

java.lang.Object
java.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
org.apache.uima.tools.cvd.AnnotationDisplayCustomizationFrame
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class AnnotationDisplayCustomizationFrame extends JFrame
TODO: add type comment for AnnotationDisplayCustomizationFrame.
See Also:
  • Field Details

    • serialVersionUID

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

      private static final int FG
      The Constant FG.
      See Also:
    • BG

      private static final int BG
      The Constant BG.
      See Also:
    • splitPane

      private JSplitPane splitPane
      The split pane.
    • fgColor

      private Color fgColor
      The fg color.
    • bgColor

      private Color bgColor
      The bg color.
    • fgIcon

      private ColorIcon fgIcon
      The fg icon.
    • bgIcon

      private ColorIcon bgIcon
      The bg icon.
    • textPane

      private JTextPane textPane
      The text pane.
    • defaultStyleName

      private static final String defaultStyleName
      The Constant defaultStyleName.
      See Also:
    • currentStyleName

      private static final String currentStyleName
      The Constant currentStyleName.
      See Also:
    • currentStyle

      private Style currentStyle
      The current style.
    • currentTypeName

      private String currentTypeName
      The current type name.
    • acceptButton

      private JButton acceptButton
      The accept button.
    • cancelButton

      private JButton cancelButton
      The cancel button.
    • styleMap

      private Map<String,Style> styleMap
      The style map.
    • tree

      private JTree tree
      The tree.
  • Constructor Details

    • AnnotationDisplayCustomizationFrame

      public AnnotationDisplayCustomizationFrame()
      Instantiates a new annotation display customization frame.
      Throws:
      HeadlessException - the java.awt. headless exception
    • AnnotationDisplayCustomizationFrame

      public AnnotationDisplayCustomizationFrame(GraphicsConfiguration arg0)
      Instantiates a new annotation display customization frame.
      Parameters:
      arg0 - the arg 0
    • AnnotationDisplayCustomizationFrame

      public AnnotationDisplayCustomizationFrame(String arg0)
      Instantiates a new annotation display customization frame.
      Parameters:
      arg0 - the arg 0
      Throws:
      HeadlessException - the java.awt. headless exception
    • AnnotationDisplayCustomizationFrame

      public AnnotationDisplayCustomizationFrame(String arg0, GraphicsConfiguration arg1)
      Instantiates a new annotation display customization frame.
      Parameters:
      arg0 - the arg 0
      arg1 - the arg 1
  • Method Details

    • setCurrentStyle

      private void setCurrentStyle(Style style)
      Sets the current style.
      Parameters:
      style - the new current style
    • enableButtons

      private void enableButtons(boolean flag)
      Enable buttons.
      Parameters:
      flag - the flag
    • init

      public void init(Map<String,Style> styleMap1, CAS cas)
      Inits the.
      Parameters:
      styleMap1 - the style map 1
      cas - the cas
    • createCustomizationPanel

      private JPanel createCustomizationPanel(String typeName)
      Creates the customization panel.
      Parameters:
      typeName - the type name
      Returns:
      the j panel
    • setCustomizationPanel

      private void setCustomizationPanel(String typeName)
      Sets the customization panel.
      Parameters:
      typeName - the new customization panel
    • createButtonPanel

      private void createButtonPanel(JPanel buttonPanel)
      Creates the button panel.
      Parameters:
      buttonPanel - the button panel
    • setTextPane

      private void setTextPane()
      Sets the text pane.
    • createColorPanel

      private JPanel createColorPanel(String text, ColorIcon icon, int buttonType)
      Creates the color panel.
      Parameters:
      text - the text
      icon - the icon
      buttonType - the button type
      Returns:
      the j panel
    • createTreeModel

      private TreeModel createTreeModel(TypeSystem ts)
      Creates the tree model.
      Parameters:
      ts - the ts
      Returns:
      the tree model
    • addChildren

      private static void addChildren(DefaultMutableTreeNode node, Type type, TypeSystem ts)
      Adds the children.
      Parameters:
      node - the node
      type - the type
      ts - the ts