Class AnnotationDisplayCustomizationFrame

  • All Implemented Interfaces:
    java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants

    public class AnnotationDisplayCustomizationFrame
    extends javax.swing.JFrame
    TODO: add type comment for AnnotationDisplayCustomizationFrame.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private javax.swing.JButton acceptButton
      The accept button.
      private static int BG
      The Constant BG.
      private java.awt.Color bgColor
      The bg color.
      private ColorIcon bgIcon
      The bg icon.
      private javax.swing.JButton cancelButton
      The cancel button.
      private javax.swing.text.Style currentStyle
      The current style.
      private static java.lang.String currentStyleName
      The Constant currentStyleName.
      private java.lang.String currentTypeName
      The current type name.
      private static java.lang.String defaultStyleName
      The Constant defaultStyleName.
      private static int FG
      The Constant FG.
      private java.awt.Color fgColor
      The fg color.
      private ColorIcon fgIcon
      The fg icon.
      private static long serialVersionUID
      The Constant serialVersionUID.
      private javax.swing.JSplitPane splitPane
      The split pane.
      private java.util.Map<java.lang.String,​javax.swing.text.Style> styleMap
      The style map.
      private javax.swing.JTextPane textPane
      The text pane.
      private javax.swing.JTree tree
      The tree.
      • Fields inherited from class javax.swing.JFrame

        accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
      • Fields inherited from class java.awt.Frame

        CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
      • Fields inherited from class java.awt.Component

        BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
      • Fields inherited from interface java.awt.image.ImageObserver

        ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
      • Fields inherited from interface javax.swing.WindowConstants

        DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private static void addChildren​(javax.swing.tree.DefaultMutableTreeNode node, Type type, TypeSystem ts)
      Adds the children.
      private void createButtonPanel​(javax.swing.JPanel buttonPanel)
      Creates the button panel.
      private javax.swing.JPanel createColorPanel​(java.lang.String text, ColorIcon icon, int buttonType)
      Creates the color panel.
      private javax.swing.JPanel createCustomizationPanel​(java.lang.String typeName)
      Creates the customization panel.
      private javax.swing.tree.TreeModel createTreeModel​(TypeSystem ts)
      Creates the tree model.
      private void enableButtons​(boolean flag)
      Enable buttons.
      void init​(java.util.Map<java.lang.String,​javax.swing.text.Style> styleMap1, CAS cas)
      Inits the.
      private void setCurrentStyle​(javax.swing.text.Style style)
      Sets the current style.
      private void setCustomizationPanel​(java.lang.String typeName)
      Sets the customization panel.
      private void setTextPane()
      Sets the text pane.
      • Methods inherited from class javax.swing.JFrame

        addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
      • Methods inherited from class java.awt.Frame

        addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
      • Methods inherited from class java.awt.Window

        addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
      • Methods inherited from class java.awt.Container

        add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
      • Methods inherited from class java.awt.Component

        action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.awt.MenuContainer

        getFont, postEvent
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        The Constant serialVersionUID.
        See Also:
        Constant Field Values
      • splitPane

        private javax.swing.JSplitPane splitPane
        The split pane.
      • fgColor

        private java.awt.Color fgColor
        The fg color.
      • bgColor

        private java.awt.Color bgColor
        The bg color.
      • fgIcon

        private ColorIcon fgIcon
        The fg icon.
      • bgIcon

        private ColorIcon bgIcon
        The bg icon.
      • textPane

        private javax.swing.JTextPane textPane
        The text pane.
      • defaultStyleName

        private static final java.lang.String defaultStyleName
        The Constant defaultStyleName.
        See Also:
        Constant Field Values
      • currentStyleName

        private static final java.lang.String currentStyleName
        The Constant currentStyleName.
        See Also:
        Constant Field Values
      • currentStyle

        private javax.swing.text.Style currentStyle
        The current style.
      • currentTypeName

        private java.lang.String currentTypeName
        The current type name.
      • acceptButton

        private javax.swing.JButton acceptButton
        The accept button.
      • cancelButton

        private javax.swing.JButton cancelButton
        The cancel button.
      • styleMap

        private java.util.Map<java.lang.String,​javax.swing.text.Style> styleMap
        The style map.
      • tree

        private javax.swing.JTree tree
        The tree.
    • Constructor Detail

      • AnnotationDisplayCustomizationFrame

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

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

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

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

      • setCurrentStyle

        private void setCurrentStyle​(javax.swing.text.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​(java.util.Map<java.lang.String,​javax.swing.text.Style> styleMap1,
                         CAS cas)
        Inits the.
        Parameters:
        styleMap1 - the style map 1
        cas - the cas
      • createCustomizationPanel

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

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

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

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

        private javax.swing.JPanel createColorPanel​(java.lang.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 javax.swing.tree.TreeModel createTreeModel​(TypeSystem ts)
        Creates the tree model.
        Parameters:
        ts - the ts
        Returns:
        the tree model
      • addChildren

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