Package org.apache.uima.tools.cvd
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:
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.JFrameTODO: add type comment forAnnotationDisplayCustomizationFrame.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private classAnnotationDisplayCustomizationFrame.AcceptButtonHandlerThe Class AcceptButtonHandler.private classAnnotationDisplayCustomizationFrame.CancelButtonHandlerThe Class CancelButtonHandler.private classAnnotationDisplayCustomizationFrame.CustomizeBgButtonHandlerThe Class CustomizeBgButtonHandler.private classAnnotationDisplayCustomizationFrame.CustomizeFgButtonHandlerThe Class CustomizeFgButtonHandler.private classAnnotationDisplayCustomizationFrame.TypeTreeSelectionListenerThe listener interface for receiving typeTreeSelection events.-
Nested classes/interfaces inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
-
Nested classes/interfaces inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
-
-
Field Summary
Fields Modifier and Type Field Description private javax.swing.JButtonacceptButtonThe accept button.private static intBGThe Constant BG.private java.awt.ColorbgColorThe bg color.private ColorIconbgIconThe bg icon.private javax.swing.JButtoncancelButtonThe cancel button.private javax.swing.text.StylecurrentStyleThe current style.private static java.lang.StringcurrentStyleNameThe Constant currentStyleName.private java.lang.StringcurrentTypeNameThe current type name.private static java.lang.StringdefaultStyleNameThe Constant defaultStyleName.private static intFGThe Constant FG.private java.awt.ColorfgColorThe fg color.private ColorIconfgIconThe fg icon.private static longserialVersionUIDThe Constant serialVersionUID.private javax.swing.JSplitPanesplitPaneThe split pane.private java.util.Map<java.lang.String,javax.swing.text.Style>styleMapThe style map.private javax.swing.JTextPanetextPaneThe text pane.private javax.swing.JTreetreeThe 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
-
-
Constructor Summary
Constructors Constructor Description AnnotationDisplayCustomizationFrame()Instantiates a new annotation display customization frame.AnnotationDisplayCustomizationFrame(java.awt.GraphicsConfiguration arg0)Instantiates a new annotation display customization frame.AnnotationDisplayCustomizationFrame(java.lang.String arg0)Instantiates a new annotation display customization frame.AnnotationDisplayCustomizationFrame(java.lang.String arg0, java.awt.GraphicsConfiguration arg1)Instantiates a new annotation display customization frame.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static voidaddChildren(javax.swing.tree.DefaultMutableTreeNode node, Type type, TypeSystem ts)Adds the children.private voidcreateButtonPanel(javax.swing.JPanel buttonPanel)Creates the button panel.private javax.swing.JPanelcreateColorPanel(java.lang.String text, ColorIcon icon, int buttonType)Creates the color panel.private javax.swing.JPanelcreateCustomizationPanel(java.lang.String typeName)Creates the customization panel.private javax.swing.tree.TreeModelcreateTreeModel(TypeSystem ts)Creates the tree model.private voidenableButtons(boolean flag)Enable buttons.voidinit(java.util.Map<java.lang.String,javax.swing.text.Style> styleMap1, CAS cas)Inits the.private voidsetCurrentStyle(javax.swing.text.Style style)Sets the current style.private voidsetCustomizationPanel(java.lang.String typeName)Sets the customization panel.private voidsetTextPane()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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
The Constant serialVersionUID.- See Also:
- Constant Field Values
-
FG
private static final int FG
The Constant FG.- See Also:
- Constant Field Values
-
BG
private static final int BG
The Constant BG.- 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 0arg1- 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 1cas- 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 texticon- the iconbuttonType- 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 nodetype- the typets- the ts
-
-