public class SettingsDialog
extends javax.swing.JDialog
Modifier and Type | Class and Description |
---|---|
static class |
SettingsDialog.TriState |
javax.swing.JDialog.AccessibleJDialog
java.awt.Dialog.AccessibleAWTDialog, java.awt.Dialog.ModalExclusionType, java.awt.Dialog.ModalityType
java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
Modifier and Type | Field and Description |
---|---|
private MultipleChoice |
annotationToolTipTriState |
private ColorPad |
backgroundColorPad
ColorPad
|
private javax.swing.text.JTextComponent |
baseTextComponent
Document base
|
private static int |
BOTTOM |
private ColorPad |
coreferencesBackgroundColorPad |
private ColorPad |
coreferencesForegroundColorPad
ColorPad
|
private MultipleChoice |
corefsModeTriState |
private static java.lang.String |
DEFAULT |
private javax.swing.JTextField |
documentTextField
Default document
|
private MultipleChoice |
edgesAsCurvesTriState
Render edges as arcs tristate
|
private MultipleChoice |
gradientState
Display gradient tristate
|
private MultipleChoice |
hatchTriState
Display hatch tristate
|
private MultipleChoice |
highlightHeadTriState
Highlight heads tristate
|
private MultipleChoice |
highlightMarkHeadTriState
Highlight mark head tristate
|
private MultipleChoice |
highlightTriState
Highlight tristate
|
private static java.awt.Insets |
IB |
private static java.awt.Insets |
IB_1 |
private static java.awt.Insets |
IB_n |
private static java.awt.Insets |
II |
private static java.awt.Insets |
II_1 |
private static java.awt.Insets |
II_n |
private static java.awt.Insets |
IL |
private static java.awt.Insets |
IL_1 |
private static java.awt.Insets |
IL_n |
private javax.swing.text.JTextComponent |
imageBaseComponent
Image base
|
private static java.awt.Insets |
IT |
private static java.awt.Insets |
IT_1 |
private static java.awt.Insets |
IT_n |
private static int |
LEFT |
private MultipleChoice |
longNameRadioButton
Display short/long name radio button
|
private static int |
MIN_PAD_X |
private MultipleChoice |
namedEntitiesModeTriState |
private ColorPad |
nesBackgroundColorPad |
private ColorPad |
nesForegroundColorPad
ColorPad
|
boolean |
ok
Whether OK button was pressed
|
private ColorPad |
posBackgroundColorPad |
private MultipleChoice |
posesModeTriState
Render mode
|
private ColorPad |
posForegroundColorPad
ColorPad
|
private MultipleChoice |
propagateFilterTriState
Whether to propagate accept filter settings to children
|
private MultipleChoice |
propagatePaletteTriState
Whether to propagate palette settings to children
|
private ColorPad |
relationBackgroundColorPad |
private ColorPad |
relationForegroundColorPad
ColorPad
|
private javax.swing.text.JTextComponent |
relationsFilterComponent
Path to relations file
|
private MultipleChoice |
relationsModeTriState |
private javax.swing.text.JTextComponent |
relationsPaletteComponent
Path to relations filter file
|
private javax.swing.JCheckBox |
relaunchOnChangeCheckBox
Relaunch on change
|
private static int |
RIGHT |
private ColorPad |
semanticGraphBackgroundColorPad |
private ColorPad |
semanticGraphForegroundColorPad
ColorPad
|
private javax.swing.JComboBox<java.lang.Object> |
sentenceToolTipComboBox
Tooltip mode
|
private ColorPad |
sentimentBackgroundColorPad |
private ColorPad |
sentimentForegroundColorPad
ColorPad
|
private MultipleChoice |
sentimentsModeTriState |
private static long |
serialVersionUID |
private javax.swing.text.JTextComponent |
servletURLComponent
Servlet URL
|
private Settings |
settings
Settings
|
private static int |
TEXT_WIDTH |
private javax.swing.JComboBox<java.lang.Object> |
toolModeComboBox
Filter tool mode (toolbar, splitpane, none)
|
private static int |
TOP |
private static int |
TOP0 |
private MultipleChoice |
typedDependenciesModeTriState |
private javax.swing.text.JTextComponent |
xMemoryComponent
Extra memory
|
accessibleContext, rootPane, rootPaneCheckingEnabled
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Constructor and Description |
---|
SettingsDialog(Settings settings,
java.awt.Frame owner)
Constructor
|
Modifier and Type | Method and Description |
---|---|
private void |
checkBoxToSettings(javax.swing.JCheckBox checkBox,
Settings.Setting setting) |
private void |
colorPadToSettings(ColorPad pad,
Settings.Setting setting) |
private void |
comboBoxToSettings(javax.swing.JComboBox<java.lang.Object> comboBox,
Settings.Setting setting) |
private static java.awt.Component |
group(java.awt.Component... components) |
private void |
initialize()
Initialize
|
static void |
main(java.lang.String[] args)
Main
|
private javax.swing.JPanel |
makeBehaviourPanel()
Make behaviour panel
|
private javax.swing.JButton |
makeBrowseButton(javax.swing.text.JTextComponent buddy,
boolean directory,
java.lang.String ext,
java.lang.String type)
Make browse button
|
private javax.swing.JButton |
makeBrowseURLButton(javax.swing.text.JTextComponent buddy)
Make browse button
|
private javax.swing.JButton |
makeCancelButton()
Make cancel button
|
private static javax.swing.JCheckBox |
makeCheckBox(java.lang.String label)
Make checkbox
|
private static ColorPad |
makeColorPad()
Make color pad
|
private javax.swing.JPanel |
makeColorPanel()
Make color settings panel
|
private static javax.swing.JComboBox<java.lang.Object> |
makeComboBox(java.lang.Object[] options0)
Make combobox
|
private javax.swing.JPanel |
makeCommandPanel()
Make command panel
|
private javax.swing.JPanel |
makeDisplayPanel()
Make view settings panel
|
private javax.swing.JPanel |
makeDocumentPanel()
Make document settings panel
|
private static javax.swing.JFileChooser |
makeFileChooser(java.lang.String ext,
java.lang.String type)
Make file chooser
|
private static javax.swing.JFileChooser |
makeFolderChooser()
Make folder chooser
|
private javax.swing.JPanel |
makeGraphPanel()
Make graph panel
|
private javax.swing.JButton |
makeOkButton()
Make ok button
|
private static MultipleChoice |
makeSelector(java.lang.Object[] objects)
Make 2-state radio group
|
private javax.swing.JPanel |
makeServerUrlPanel()
Make server url settings panel
|
private static javax.swing.JTextField |
makeTextField()
Make textfield
|
private static MultipleChoice |
makeTristate()
Make 3-state radio group
|
private void |
numSettingsToNumTextComponent(javax.swing.text.JTextComponent textComponent,
Settings.Setting setting) |
private static void |
setCurrentDirectory(javax.swing.JFileChooser chooser,
java.lang.String currentDirectory)
Set current directory for file chooser
|
private void |
settingsToCheckBox(javax.swing.JCheckBox checkBox,
Settings.Setting setting,
boolean defaultNull) |
private void |
settingsToColorPad(ColorPad pad,
Settings.Setting setting) |
private void |
settingsToComboBox(javax.swing.JComboBox<java.lang.Object> comboBox,
Settings.Setting setting) |
private void |
settingsToTextComponent(javax.swing.text.JTextComponent textComponent,
Settings.Setting setting) |
private static void |
settingsToTriState(MultipleChoice radioGroup,
java.lang.Boolean value) |
private void |
settingsToTriState(MultipleChoice radioGroup,
Settings.Setting setting) |
void |
setVisible(boolean show) |
private void |
textComponentToSettings(javax.swing.text.JTextComponent textComponent,
Settings.Setting setting) |
private static java.lang.Boolean |
triStateToSettings(MultipleChoice radioGroup) |
private void |
triStateToSettings(MultipleChoice radioGroup,
Settings.Setting setting) |
addImpl, createRootPane, dialogInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setBackground, setModal, setModalityType, setOpacity, setResizable, setShape, setTitle, setUndecorated, show, toBack
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, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeNotify, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImage, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, toFront
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
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, remove, 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
private static final long serialVersionUID
private static final int TOP0
private static final int TOP
private static final int BOTTOM
private static final int LEFT
private static final int RIGHT
private static final java.awt.Insets IL_1
private static final java.awt.Insets IL
private static final java.awt.Insets IL_n
private static final java.awt.Insets II_1
private static final java.awt.Insets II
private static final java.awt.Insets II_n
private static final java.awt.Insets IT_1
private static final java.awt.Insets IT
private static final java.awt.Insets IT_n
private static final java.awt.Insets IB_1
private static final java.awt.Insets IB
private static final java.awt.Insets IB_n
private static final int TEXT_WIDTH
private static final int MIN_PAD_X
private static final java.lang.String DEFAULT
private final Settings settings
private MultipleChoice posesModeTriState
private MultipleChoice relationsModeTriState
private MultipleChoice typedDependenciesModeTriState
private MultipleChoice namedEntitiesModeTriState
private MultipleChoice sentimentsModeTriState
private MultipleChoice corefsModeTriState
private javax.swing.JComboBox<java.lang.Object> sentenceToolTipComboBox
private MultipleChoice annotationToolTipTriState
private MultipleChoice hatchTriState
private MultipleChoice gradientState
private MultipleChoice edgesAsCurvesTriState
private MultipleChoice highlightTriState
private MultipleChoice highlightHeadTriState
private MultipleChoice highlightMarkHeadTriState
private MultipleChoice longNameRadioButton
private MultipleChoice propagateFilterTriState
private MultipleChoice propagatePaletteTriState
private javax.swing.JCheckBox relaunchOnChangeCheckBox
private javax.swing.text.JTextComponent relationsFilterComponent
private javax.swing.text.JTextComponent relationsPaletteComponent
private javax.swing.text.JTextComponent servletURLComponent
private javax.swing.text.JTextComponent baseTextComponent
private javax.swing.text.JTextComponent imageBaseComponent
private javax.swing.JTextField documentTextField
private javax.swing.JComboBox<java.lang.Object> toolModeComboBox
private ColorPad backgroundColorPad
private ColorPad posForegroundColorPad
private ColorPad posBackgroundColorPad
private ColorPad relationForegroundColorPad
private ColorPad relationBackgroundColorPad
private ColorPad semanticGraphForegroundColorPad
private ColorPad semanticGraphBackgroundColorPad
private ColorPad nesForegroundColorPad
private ColorPad nesBackgroundColorPad
private ColorPad sentimentForegroundColorPad
private ColorPad sentimentBackgroundColorPad
private ColorPad coreferencesForegroundColorPad
private ColorPad coreferencesBackgroundColorPad
private javax.swing.text.JTextComponent xMemoryComponent
public boolean ok
public SettingsDialog(Settings settings, java.awt.Frame owner)
settings
- settingsowner
- frame ownerprivate void initialize()
private static java.awt.Component group(java.awt.Component... components)
private javax.swing.JPanel makeServerUrlPanel()
private javax.swing.JPanel makeDocumentPanel()
private javax.swing.JPanel makeBehaviourPanel()
private javax.swing.JPanel makeDisplayPanel()
private javax.swing.JPanel makeColorPanel()
private javax.swing.JPanel makeGraphPanel()
private static ColorPad makeColorPad()
private javax.swing.JPanel makeCommandPanel()
private static MultipleChoice makeTristate()
private static MultipleChoice makeSelector(java.lang.Object[] objects)
private static javax.swing.JTextField makeTextField()
private static javax.swing.JCheckBox makeCheckBox(java.lang.String label)
label
- labelprivate static javax.swing.JComboBox<java.lang.Object> makeComboBox(java.lang.Object[] options0)
options0
- optionsprivate javax.swing.JButton makeBrowseButton(javax.swing.text.JTextComponent buddy, boolean directory, java.lang.String ext, java.lang.String type)
buddy
- buddy componentdirectory
- directoryext
- extensiontype
- typeprivate javax.swing.JButton makeBrowseURLButton(javax.swing.text.JTextComponent buddy)
buddy
- buddy componentprivate static javax.swing.JFileChooser makeFileChooser(java.lang.String ext, java.lang.String type)
ext
- extensiontype
- typeprivate static javax.swing.JFileChooser makeFolderChooser()
private static void setCurrentDirectory(javax.swing.JFileChooser chooser, java.lang.String currentDirectory)
chooser
- file choosercurrentDirectory
- directory to set as currentprivate javax.swing.JButton makeOkButton()
private javax.swing.JButton makeCancelButton()
private static void settingsToTriState(MultipleChoice radioGroup, java.lang.Boolean value)
private void settingsToTriState(MultipleChoice radioGroup, Settings.Setting setting)
private void checkBoxToSettings(javax.swing.JCheckBox checkBox, Settings.Setting setting)
private void settingsToCheckBox(javax.swing.JCheckBox checkBox, Settings.Setting setting, boolean defaultNull)
private static java.lang.Boolean triStateToSettings(MultipleChoice radioGroup)
private void triStateToSettings(MultipleChoice radioGroup, Settings.Setting setting)
private void settingsToColorPad(ColorPad pad, Settings.Setting setting)
private void colorPadToSettings(ColorPad pad, Settings.Setting setting)
private void textComponentToSettings(javax.swing.text.JTextComponent textComponent, Settings.Setting setting)
private void settingsToTextComponent(javax.swing.text.JTextComponent textComponent, Settings.Setting setting)
private void numSettingsToNumTextComponent(javax.swing.text.JTextComponent textComponent, Settings.Setting setting)
private void comboBoxToSettings(javax.swing.JComboBox<java.lang.Object> comboBox, Settings.Setting setting)
private void settingsToComboBox(javax.swing.JComboBox<java.lang.Object> comboBox, Settings.Setting setting)
public void setVisible(boolean show)
setVisible
in class java.awt.Dialog
public static void main(java.lang.String[] args)
args
- command line arguments