Package org.apache.uima.tools.cvd
Class MainFrame
- java.lang.Object
-
- java.awt.Component
-
- java.awt.Container
-
- java.awt.Window
-
- java.awt.Frame
-
- javax.swing.JFrame
-
- org.apache.uima.tools.cvd.MainFrame
-
- All Implemented Interfaces:
java.awt.image.ImageObserver,java.awt.MenuContainer,java.io.Serializable,javax.accessibility.Accessible,javax.swing.RootPaneContainer,javax.swing.WindowConstants
public class MainFrame extends javax.swing.JFrameClass comment for MainFrame.java goes here.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
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.JMenuItemacdItemThe acd item.private AnalysisEngineaeThe ae.private java.io.FileaeDescriptorFileThe ae descriptor file.static java.lang.StringaeDirPrefThe Constant aeDirPref.private javax.swing.JTextFieldaeStatusThe ae status.private javax.swing.JMenuItemallAnnotationViewerItemThe all annotation viewer item.private java.io.FileannotOpenDirThe annot open dir.static java.lang.StringannotViewSizePrefThe Constant annotViewSizePref.private javax.swing.JTextFieldcaretStatusThe caret status.private CAScasThe cas.private java.lang.StringcodePageThe code page.private java.util.List<java.lang.String>codePagesThe code pages.private static java.lang.StringcolorDirPrefThe Constant colorDirPref.private static java.lang.StringcolorFilePrefThe Constant colorFilePref.private java.io.FilecolorSettingFileThe color setting file.private java.io.FilecolorSettingsDirThe color settings dir.private javax.swing.ActioncopyActionThe copy action.private javax.swing.ButtonGroupcpButtonsThe cp buttons.private static java.lang.StringcpCurrentPrefThe Constant cpCurrentPref.private javax.swing.JMenucpMenuThe cp menu.private java.util.List<java.awt.Cursor>cursorCacheThe cursor cache.private java.util.List<java.awt.Component>cursorOwningComponentsThe cursor owning components.private javax.swing.ActioncutActionThe cut action.private java.lang.StringdataPathNameThe data path name.private static java.lang.StringdataPathPrefThe Constant dataPathPref.static java.lang.StringDEFAULT_STYLE_NAMEThe Constant DEFAULT_STYLE_NAME.private static java.lang.StringdefaultLanguagesThe Constant defaultLanguages.private static java.lang.StringdefaultTextThe Constant defaultText.private static java.lang.StringdescFileListPrefThe Constant descFileListPref.private java.util.List<java.lang.String>descFileNameListThe desc file name list.private javax.swing.JMenueditMenuThe edit menu.private booleanexitOnCloseThe exit on close.private javax.swing.JMenufileMenuThe file menu.private java.io.FilefileOpenDirThe file open dir.private javax.swing.JMenuItemfileSaveItemThe file save item.private javax.swing.JTextFieldfileStatusThe file status.private javax.swing.JTreefsTreeThe fs tree.private static java.awt.DimensionfsTreeDimensionDefaultThe Constant fsTreeDimensionDefault.private javax.swing.JScrollPanefsTreeScrollPaneThe fs tree scroll pane.static java.lang.StringfsTreeSizePrefThe Constant fsTreeSizePref.static java.lang.StringheightSuffixThe Constant heightSuffix.(package private) static java.lang.StringhtmlGrayColorThe Constant htmlGrayColor.private FSIndexindexThe index.private java.lang.StringindexLabelThe index label.private static java.lang.StringindexReposRootLabelThe Constant indexReposRootLabel.private javax.swing.JTreeindexTreeThe index tree.private javax.swing.JScrollPaneindexTreeScrollPaneThe index tree scroll pane.static java.lang.StringindexTreeSizePrefThe Constant indexTreeSizePref.private java.io.FileiniFileThe ini file.private booleanisAnnotationIndexThe is annotation index.private booleanisDirtyThe is dirty.private javax.swing.ButtonGrouplangButtonsThe lang buttons.private static java.lang.StringlangCurrentPrefThe Constant langCurrentPref.private static java.lang.StringlangListPrefThe Constant langListPref.private javax.swing.JMenulangMenuThe lang menu.private java.lang.StringlanguageThe language.private static java.lang.StringLANGUAGE_DEFAULTThe Constant LANGUAGE_DEFAULT.(package private) java.lang.StringlanguagePrefsListThe language prefs list.private java.util.List<java.lang.String>languagesThe languages.private ProcessTracelastRunProcessTraceThe last run process trace.private LoggerlogThe log.private java.io.FilelogFileThe log file.private static java.awt.DimensionlogFileDimensionDefaultThe Constant logFileDimensionDefault.private static java.lang.StringloggerPropertiesFileNameThe Constant loggerPropertiesFileName.static java.util.List<Level>logLevelsThe log levels.static java.lang.StringlogViewSizePrefThe Constant logViewSizePref.private static intmaxRecentSizeThe Constant maxRecentSize.private static java.lang.StringnoIndexReposLabelThe Constant noIndexReposLabel.private java.util.PropertiespreferencesThe preferences.private javax.swing.JMenurecentDescFileMenuThe recent desc file menu.private RecentFilesListrecentDescFilesThe recent desc files.private javax.swing.JMenurecentTextFileMenuThe recent text file menu.private RecentFilesListrecentTextFilesThe recent text files.private javax.swing.JMenuItemreRunMenuThe re run menu.private javax.swing.JMenuItemrunCPCMenuThe run CPC menu.private javax.swing.JMenuItemrunOnCasMenuItemThe run on cas menu item.private static java.awt.ColorselectionColorThe Constant selectionColor.private static longserialVersionUIDThe Constant serialVersionUID.private javax.swing.JMenuItemshowPerfReportItemThe show perf report item.private javax.swing.JComboBoxsofaSelectionComboBoxThe sofa selection combo box.private javax.swing.JPanelsofaSelectionPanelThe sofa selection panel.private javax.swing.JTextFieldstatusBarThe status bar.private javax.swing.JPanelstatusPanelThe status panel.private java.util.Map<java.lang.String,javax.swing.text.Style>styleMapThe style map.private javax.swing.JTextAreatextAreaThe text area.private static java.awt.DimensiontextDimensionDefaultThe Constant textDimensionDefault.static java.lang.StringtextDirPrefThe Constant textDirPref.private java.io.FiletextFileThe text file.private static java.lang.StringtextFileListPrefThe Constant textFileListPref.private java.util.List<java.lang.String>textFileNameListThe text file name list.private javax.swing.JPopupMenutextPopupThe text popup.private javax.swing.JScrollPanetextScrollPaneThe text scroll pane.static java.lang.StringtextSizePrefThe Constant textSizePref.private javax.swing.border.BordertextTitleBorderThe text title border.private static java.lang.StringtitleTextThe Constant titleText.private javax.swing.JMenuItemtsViewerItemThe ts viewer item.static java.lang.StringtsWindowSizePrefThe Constant tsWindowSizePref.private javax.swing.JMenuItemtypeSystemReadItemThe type system read item.private javax.swing.JMenuItemtypeSystemWriteItemThe type system write item.private javax.swing.JMenuItemundoItemThe undo item.private UndoMgrundoMgrThe undo mgr.static java.lang.StringwidthSuffixThe Constant widthSuffix.static java.lang.StringxcasDirPrefThe Constant xcasDirPref.private java.io.FilexcasFileOpenDirThe xcas file open dir.private javax.swing.JMenuItemxcasReadItemThe xcas read item.private javax.swing.JMenuItemxcasWriteItemThe xcas write item.private javax.swing.JMenuItemxmiCasReadItemThe xmi cas read item.private javax.swing.JMenuItemxmiCasWriteItemThe xmi cas write item.-
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 MainFrame(java.io.File iniFile)Constructor for MainFrame.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private voidaddCursorOwningComponent(java.awt.Component comp)Adds the cursor owning component.voidaddLanguage(java.lang.String language1)Adds the language.private voidaddRecentDescFile(java.io.File file)Adds the recent desc file.private voidaddRecentTextFile(java.io.File file)Adds the recent text file.booleanconfirmOverwrite(java.io.File f)Confirm overwrite.voidcreateCodePages()Creates the code pages.private voidcreateCPMenu()Creates the CP menu.private java.util.HashMap<java.lang.Object,javax.swing.Action>createEditActionMap()Creates the edit action map.private javax.swing.JMenucreateEditMenu()Creates the edit menu.private voidcreateFileMenu()Creates the file menu.private javax.swing.JMenucreateHelpMenu()Creates the help menu.private voidcreateLangMenu()Creates the lang menu.voidcreateLanguages()Creates the languages.private javax.swing.JMenuBarcreateMenuBar()Creates the menu bar.private javax.swing.JMenuItemcreateRecentDescFileItem(int num, java.io.File file)Creates the recent desc file item.private javax.swing.JMenuItemcreateRecentTextFileItem(int num, java.io.File file)Creates the recent text file item.private javax.swing.JMenucreateRunMenu()Creates the run menu.private voidcreateStatusBar()Creates the status bar.private voidcreateTextArea()Creates the text area.private javax.swing.JMenucreateToolsMenu()Creates the tools menu.private javax.swing.tree.DefaultMutableTreeNodecreateTypeTree(Type type, TypeSystem ts, java.lang.String label, FSIndexRepository ir)Creates the type tree.private voiddeleteFSTree()Delete FS tree.voiddestroyAe()Destroy ae.AnalysisEnginegetAe()Gets the ae.private java.util.ArrayList<FSNode>getAnnotationsAtPos(int pos, java.util.List<FSNode> annots)Gets the annotations at pos.java.io.FilegetAnnotOpenDir()Gets the annot open dir.CASgetCas()Gets the cas.java.lang.StringgetCodePage()Gets the code page.java.util.List<java.lang.String>getCodePages()Gets the code pages.java.io.FilegetColorSettingFile()Gets the color setting file.java.io.FilegetColorSettingsDir()Gets the color settings dir.java.lang.StringgetDataPathName()Gets the data path name.java.awt.DimensiongetDimension(java.lang.String propPrefix)Gets the dimension.java.io.FilegetFileOpenDir()Gets the file open dir.javax.swing.JTreegetFsTree()Gets the fs tree.FSIndexgetIndex()Gets the index.java.lang.StringgetIndexLabel()Gets the index label.javax.swing.JTreegetIndexTree()Gets the index tree.java.lang.StringgetLanguage()Gets the language.java.lang.StringgetLanguagePrefsList()Gets the language prefs list.java.util.List<java.lang.String>getLanguages()Gets the languages.private static intgetMnemonic(int i)Gets the mnemonic.java.util.PropertiesgetPreferences()Gets the preferences.java.util.Map<java.lang.String,javax.swing.text.Style>getStyleMap()Gets the style map.javax.swing.JTextAreagetTextArea()Gets the text area.java.io.FilegetTextFile()Gets the text file.UndoMgrgetUndoMgr()Gets the undo mgr.java.io.FilegetXcasFileOpenDir()Gets the xcas file open dir.voidhandleException(java.lang.Throwable e)Handle exception.protected voidhandleException(java.lang.Throwable e, java.lang.StringBuffer msg)Handle exception.voidhandleSofas()Handle sofas.private voidinit()Inits the.private voidinitCas()Inits the cas.private voidinitFileLists()Inits the file lists.private voidinitFSTree()Inits the FS tree.private voidinitializeLogging()Initialize logging.private voidinitIRTree()Inits the IR tree.private voidinitKeyMap()Inits the key map.protected voidinternalRunAE(boolean doCasReset)Internal run AE.booleanisAnnotationIndex()Checks if is annotation index.booleanisDirty()Checks if is dirty.booleanisExitOnClose()Checks if is exit on close.voidloadAEDescriptor(java.io.File descriptorFile)Load AE descriptor.voidloadColorPreferences(java.io.File file)Load color preferences.voidloadFile()Load file.private voidloadProgramPreferences()Load program preferences.voidloadTextFile(java.io.File textFile1)Load a text file.voidloadXmiFile(java.io.File xmiCasFile)Load xmi file.private voidpopulateEditMenu()Populate edit menu.voidresetCPMenu()Reset CP menu.voidresetCursor()Reset cursor.voidresetLangMenu()Reset lang menu.voidresetTrees()Reset trees.voidrunAE(boolean doCasReset)Run AE.voidrunCPC()Run CPC.voidsaveColorPreferences(java.io.File file)Save color preferences.booleansaveFile()Save file.voidsaveProgramPreferences()Save program preferences.private voidsetAEStatusMessage()Sets the AE status message.voidsetAllAnnotationViewerItemEnable(boolean enabled)Sets the all annotation viewer item enable.voidsetAnnotationIndex(boolean isAnnotationIndex)Sets the annotation index.voidsetAnnotOpenDir(java.io.File annotOpenDir)Sets the annot open dir.voidsetCaretStatus(int dot, int mark)Sets the caret status.voidsetCas(CAS cas)Sets the cas.voidsetCodePage(java.lang.String codePage)Sets the code page.voidsetColorSettingFile(java.io.File colorSettingFile)Sets the color setting file.voidsetColorSettingsDir(java.io.File colorSettingsDir)Sets the color settings dir.voidsetDataPath(java.lang.String dataPath)Sets the data path.voidsetDataPathName(java.lang.String dataPathName)Sets the data path name.voidsetDirty(boolean isDirty)Sets the dirty.voidsetEnableCasFileReadingAndWriting()Sets the enable cas file reading and writing.voidsetExitOnClose(boolean exitOnClose)Set exit-on-close behavior.voidsetFileOpenDir(java.io.File fileOpenDir)Sets the file open dir.voidsetFileStatusMessage()Sets the file status message.voidsetIndex(FSIndex index)Sets the index.voidsetIndexLabel(java.lang.String indexLabel)Sets the index label.voidsetLanguage(java.lang.String language)Sets the language.voidsetLanguagePrefsList(java.lang.String languagePrefsList)Sets the language prefs list.voidsetPreferredSize(javax.swing.JComponent comp, java.lang.String propPrefix)Sets the preferred size.voidsetRerunEnabled(boolean enabled)Sets the rerun enabled.voidsetRunOnCasEnabled()Sets the run on cas enabled.voidsetSaveTextFileEnable(boolean enabled)Sets the save text file enable.voidsetStatusbarMessage(java.lang.String message)Sets the statusbar message.voidsetText(java.lang.String text)Set the text to be analyzed.voidsetTextFile(java.io.File textFile)Sets the text file.voidsetTextNoTitle(java.lang.String text)Sets the text no title.voidsetTitle()Sets the title.voidsetTypeSystemViewerEnabled(boolean enabled)Sets the type system viewer enabled.voidsetUndoEnabled(boolean enabled)Sets the undo enabled.protected booleansetupAE(java.io.File aeFile)Setup AE.private voidsetWaitCursor()Sets the wait cursor.voidsetXcasFileOpenDir(java.io.File xcasFileOpenDir)Sets the xcas file open dir.private voidshowError(java.lang.String msg)Show error.voidshowTextPopup(int x, int y)Show text popup.private static java.lang.StringstringListToString(java.util.List<java.lang.String> list)String list to string.private static java.util.List<java.lang.String>stringToArrayList(java.lang.String s)String to array list.voidupdateFSTree(java.lang.String indexName, FSIndex index1)Update FS tree.voidupdateIndexTree(boolean useCAS)Update index tree.-
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
-
logLevels
public static java.util.List<Level> logLevels
The log levels.
-
loggerPropertiesFileName
private static final java.lang.String loggerPropertiesFileName
The Constant loggerPropertiesFileName.- See Also:
- Constant Field Values
-
defaultText
private static final java.lang.String defaultText
The Constant defaultText.- See Also:
- Constant Field Values
-
titleText
private static final java.lang.String titleText
The Constant titleText.- See Also:
- Constant Field Values
-
htmlGrayColor
static final java.lang.String htmlGrayColor
The Constant htmlGrayColor.- See Also:
- Constant Field Values
-
indexReposRootLabel
private static final java.lang.String indexReposRootLabel
The Constant indexReposRootLabel.- See Also:
- Constant Field Values
-
noIndexReposLabel
private static final java.lang.String noIndexReposLabel
The Constant noIndexReposLabel.- See Also:
- Constant Field Values
-
textArea
private javax.swing.JTextArea textArea
The text area.
-
indexTree
private javax.swing.JTree indexTree
The index tree.
-
fsTree
private javax.swing.JTree fsTree
The fs tree.
-
statusPanel
private javax.swing.JPanel statusPanel
The status panel.
-
statusBar
private javax.swing.JTextField statusBar
The status bar.
-
fileStatus
private javax.swing.JTextField fileStatus
The file status.
-
aeStatus
private javax.swing.JTextField aeStatus
The ae status.
-
caretStatus
private javax.swing.JTextField caretStatus
The caret status.
-
textTitleBorder
private javax.swing.border.Border textTitleBorder
The text title border.
-
isDirty
private boolean isDirty
The is dirty.
-
textScrollPane
private javax.swing.JScrollPane textScrollPane
The text scroll pane.
-
indexTreeScrollPane
private javax.swing.JScrollPane indexTreeScrollPane
The index tree scroll pane.
-
fsTreeScrollPane
private javax.swing.JScrollPane fsTreeScrollPane
The fs tree scroll pane.
-
fileMenu
private javax.swing.JMenu fileMenu
The file menu.
-
fileSaveItem
private javax.swing.JMenuItem fileSaveItem
The file save item.
-
editMenu
private javax.swing.JMenu editMenu
The edit menu.
-
undoItem
private javax.swing.JMenuItem undoItem
The undo item.
-
undoMgr
private UndoMgr undoMgr
The undo mgr.
-
cutAction
private javax.swing.Action cutAction
The cut action.
-
copyAction
private javax.swing.Action copyAction
The copy action.
-
allAnnotationViewerItem
private javax.swing.JMenuItem allAnnotationViewerItem
The all annotation viewer item.
-
acdItem
private javax.swing.JMenuItem acdItem
The acd item.
-
tsViewerItem
private javax.swing.JMenuItem tsViewerItem
The ts viewer item.
-
reRunMenu
private javax.swing.JMenuItem reRunMenu
The re run menu.
-
runCPCMenu
private javax.swing.JMenuItem runCPCMenu
The run CPC menu.
-
runOnCasMenuItem
private javax.swing.JMenuItem runOnCasMenuItem
The run on cas menu item.
-
showPerfReportItem
private javax.swing.JMenuItem showPerfReportItem
The show perf report item.
-
textPopup
private javax.swing.JPopupMenu textPopup
The text popup.
-
xcasReadItem
private javax.swing.JMenuItem xcasReadItem
The xcas read item.
-
xcasWriteItem
private javax.swing.JMenuItem xcasWriteItem
The xcas write item.
-
xmiCasReadItem
private javax.swing.JMenuItem xmiCasReadItem
The xmi cas read item.
-
xmiCasWriteItem
private javax.swing.JMenuItem xmiCasWriteItem
The xmi cas write item.
-
typeSystemWriteItem
private javax.swing.JMenuItem typeSystemWriteItem
The type system write item.
-
typeSystemReadItem
private javax.swing.JMenuItem typeSystemReadItem
The type system read item.
-
recentTextFileMenu
private javax.swing.JMenu recentTextFileMenu
The recent text file menu.
-
recentDescFileMenu
private javax.swing.JMenu recentDescFileMenu
The recent desc file menu.
-
iniFile
private java.io.File iniFile
The ini file.
-
codePages
private java.util.List<java.lang.String> codePages
The code pages.
-
codePage
private java.lang.String codePage
The code page.
-
cpMenu
private javax.swing.JMenu cpMenu
The cp menu.
-
cpButtons
private javax.swing.ButtonGroup cpButtons
The cp buttons.
-
languagePrefsList
java.lang.String languagePrefsList
The language prefs list.
-
languages
private java.util.List<java.lang.String> languages
The languages.
-
langMenu
private javax.swing.JMenu langMenu
The lang menu.
-
langButtons
private javax.swing.ButtonGroup langButtons
The lang buttons.
-
LANGUAGE_DEFAULT
private static final java.lang.String LANGUAGE_DEFAULT
The Constant LANGUAGE_DEFAULT.- See Also:
- Constant Field Values
-
language
private java.lang.String language
The language.
-
defaultLanguages
private static final java.lang.String defaultLanguages
The Constant defaultLanguages.- See Also:
- Constant Field Values
-
textFile
private java.io.File textFile
The text file.
-
fileOpenDir
private java.io.File fileOpenDir
The file open dir.
-
annotOpenDir
private java.io.File annotOpenDir
The annot open dir.
-
xcasFileOpenDir
private java.io.File xcasFileOpenDir
The xcas file open dir.
-
colorSettingsDir
private java.io.File colorSettingsDir
The color settings dir.
-
indexLabel
private java.lang.String indexLabel
The index label.
-
index
private FSIndex index
The index.
-
isAnnotationIndex
private boolean isAnnotationIndex
The is annotation index.
-
cas
private CAS cas
The cas.
-
aeDescriptorFile
private java.io.File aeDescriptorFile
The ae descriptor file.
-
ae
private AnalysisEngine ae
The ae.
-
logFile
private java.io.File logFile
The log file.
-
log
private Logger log
The log.
-
colorSettingFile
private java.io.File colorSettingFile
The color setting file.
-
selectionColor
private static final java.awt.Color selectionColor
The Constant selectionColor.
-
preferences
private java.util.Properties preferences
The preferences.
-
lastRunProcessTrace
private ProcessTrace lastRunProcessTrace
The last run process trace.
-
textDirPref
public static final java.lang.String textDirPref
The Constant textDirPref.- See Also:
- Constant Field Values
-
aeDirPref
public static final java.lang.String aeDirPref
The Constant aeDirPref.- See Also:
- Constant Field Values
-
xcasDirPref
public static final java.lang.String xcasDirPref
The Constant xcasDirPref.- See Also:
- Constant Field Values
-
textSizePref
public static final java.lang.String textSizePref
The Constant textSizePref.- See Also:
- Constant Field Values
-
indexTreeSizePref
public static final java.lang.String indexTreeSizePref
The Constant indexTreeSizePref.- See Also:
- Constant Field Values
-
fsTreeSizePref
public static final java.lang.String fsTreeSizePref
The Constant fsTreeSizePref.- See Also:
- Constant Field Values
-
tsWindowSizePref
public static final java.lang.String tsWindowSizePref
The Constant tsWindowSizePref.- See Also:
- Constant Field Values
-
annotViewSizePref
public static final java.lang.String annotViewSizePref
The Constant annotViewSizePref.- See Also:
- Constant Field Values
-
logViewSizePref
public static final java.lang.String logViewSizePref
The Constant logViewSizePref.- See Also:
- Constant Field Values
-
widthSuffix
public static final java.lang.String widthSuffix
The Constant widthSuffix.- See Also:
- Constant Field Values
-
heightSuffix
public static final java.lang.String heightSuffix
The Constant heightSuffix.- See Also:
- Constant Field Values
-
colorFilePref
private static final java.lang.String colorFilePref
The Constant colorFilePref.- See Also:
- Constant Field Values
-
colorDirPref
private static final java.lang.String colorDirPref
The Constant colorDirPref.- See Also:
- Constant Field Values
-
cpCurrentPref
private static final java.lang.String cpCurrentPref
The Constant cpCurrentPref.- See Also:
- Constant Field Values
-
langCurrentPref
private static final java.lang.String langCurrentPref
The Constant langCurrentPref.- See Also:
- Constant Field Values
-
langListPref
private static final java.lang.String langListPref
The Constant langListPref.- See Also:
- Constant Field Values
-
textFileListPref
private static final java.lang.String textFileListPref
The Constant textFileListPref.- See Also:
- Constant Field Values
-
descFileListPref
private static final java.lang.String descFileListPref
The Constant descFileListPref.- See Also:
- Constant Field Values
-
dataPathPref
private static final java.lang.String dataPathPref
The Constant dataPathPref.- See Also:
- Constant Field Values
-
textDimensionDefault
private static final java.awt.Dimension textDimensionDefault
The Constant textDimensionDefault.
-
fsTreeDimensionDefault
private static final java.awt.Dimension fsTreeDimensionDefault
The Constant fsTreeDimensionDefault.
-
logFileDimensionDefault
private static final java.awt.Dimension logFileDimensionDefault
The Constant logFileDimensionDefault.
-
DEFAULT_STYLE_NAME
public static final java.lang.String DEFAULT_STYLE_NAME
The Constant DEFAULT_STYLE_NAME.- See Also:
- Constant Field Values
-
styleMap
private java.util.Map<java.lang.String,javax.swing.text.Style> styleMap
The style map.
-
maxRecentSize
private static final int maxRecentSize
The Constant maxRecentSize.- See Also:
- Constant Field Values
-
recentTextFiles
private final RecentFilesList recentTextFiles
The recent text files.
-
textFileNameList
private final java.util.List<java.lang.String> textFileNameList
The text file name list.
-
recentDescFiles
private final RecentFilesList recentDescFiles
The recent desc files.
-
descFileNameList
private final java.util.List<java.lang.String> descFileNameList
The desc file name list.
-
cursorOwningComponents
private java.util.List<java.awt.Component> cursorOwningComponents
The cursor owning components.
-
cursorCache
private java.util.List<java.awt.Cursor> cursorCache
The cursor cache.
-
dataPathName
private java.lang.String dataPathName
The data path name.
-
sofaSelectionComboBox
private javax.swing.JComboBox sofaSelectionComboBox
The sofa selection combo box.
-
sofaSelectionPanel
private javax.swing.JPanel sofaSelectionPanel
The sofa selection panel.
-
exitOnClose
private boolean exitOnClose
The exit on close.
-
-
Method Detail
-
runAE
public void runAE(boolean doCasReset)
Run AE.- Parameters:
doCasReset- the do cas reset
-
runCPC
public void runCPC()
Run CPC.
-
setDataPath
public void setDataPath(java.lang.String dataPath)
Sets the data path.- Parameters:
dataPath- the new data path
-
loadAEDescriptor
public void loadAEDescriptor(java.io.File descriptorFile)
Load AE descriptor.- Parameters:
descriptorFile- the descriptor file
-
handleException
public void handleException(java.lang.Throwable e)
Handle exception.- Parameters:
e- the e
-
handleException
protected void handleException(java.lang.Throwable e, java.lang.StringBuffer msg)Handle exception.- Parameters:
e- the emsg- the msg
-
showError
private void showError(java.lang.String msg)
Show error.- Parameters:
msg- the msg
-
loadFile
public void loadFile()
Load file.
-
loadXmiFile
public void loadXmiFile(java.io.File xmiCasFile)
Load xmi file.- Parameters:
xmiCasFile- the xmi cas file
-
getMnemonic
private static final int getMnemonic(int i)
Gets the mnemonic.- Parameters:
i- the i- Returns:
- the mnemonic
-
createRecentTextFileItem
private final javax.swing.JMenuItem createRecentTextFileItem(int num, java.io.File file)Creates the recent text file item.- Parameters:
num- the numfile- the file- Returns:
- the j menu item
-
addRecentTextFile
private void addRecentTextFile(java.io.File file)
Adds the recent text file.- Parameters:
file- the file
-
createRecentDescFileItem
private final javax.swing.JMenuItem createRecentDescFileItem(int num, java.io.File file)Creates the recent desc file item.- Parameters:
num- the numfile- the file- Returns:
- the j menu item
-
addRecentDescFile
private void addRecentDescFile(java.io.File file)
Adds the recent desc file.- Parameters:
file- the file
-
setText
public void setText(java.lang.String text)
Set the text to be analyzed.- Parameters:
text- The text.
-
loadTextFile
public void loadTextFile(java.io.File textFile1)
Load a text file.- Parameters:
textFile1- The text file.
-
setTextNoTitle
public void setTextNoTitle(java.lang.String text)
Sets the text no title.- Parameters:
text- the new text no title
-
setTitle
public void setTitle()
Sets the title.
-
saveFile
public boolean saveFile()
Save file.- Returns:
- true, if successful
-
confirmOverwrite
public boolean confirmOverwrite(java.io.File f)
Confirm overwrite.- Parameters:
f- the f- Returns:
- true, if successful
-
createTextArea
private void createTextArea()
Creates the text area.
-
populateEditMenu
private void populateEditMenu()
Populate edit menu.
-
createEditActionMap
private java.util.HashMap<java.lang.Object,javax.swing.Action> createEditActionMap()
Creates the edit action map.- Returns:
- the hash map
-
createMenuBar
private javax.swing.JMenuBar createMenuBar()
Creates the menu bar.- Returns:
- the j menu bar
-
createEditMenu
private javax.swing.JMenu createEditMenu()
Creates the edit menu.- Returns:
- the j menu
-
createHelpMenu
private javax.swing.JMenu createHelpMenu()
Creates the help menu.- Returns:
- the j menu
-
createFileMenu
private void createFileMenu()
Creates the file menu.
-
setEnableCasFileReadingAndWriting
public final void setEnableCasFileReadingAndWriting()
Sets the enable cas file reading and writing.
-
addCursorOwningComponent
private final void addCursorOwningComponent(java.awt.Component comp)
Adds the cursor owning component.- Parameters:
comp- the comp
-
setWaitCursor
private final void setWaitCursor()
Sets the wait cursor.
-
resetCursor
public final void resetCursor()
Reset cursor.
-
createCodePages
public void createCodePages()
Creates the code pages.
-
resetTrees
public void resetTrees()
Reset trees.
-
createCPMenu
private void createCPMenu()
Creates the CP menu.
-
resetCPMenu
public void resetCPMenu()
Reset CP menu.
-
addLanguage
public void addLanguage(java.lang.String language1)
Adds the language.- Parameters:
language1- the language 1
-
createLangMenu
private void createLangMenu()
Creates the lang menu.
-
resetLangMenu
public void resetLangMenu()
Reset lang menu.
-
createLanguages
public void createLanguages()
Creates the languages.
-
createRunMenu
private javax.swing.JMenu createRunMenu()
Creates the run menu.- Returns:
- the j menu
-
createToolsMenu
private javax.swing.JMenu createToolsMenu()
Creates the tools menu.- Returns:
- the j menu
-
createStatusBar
private void createStatusBar()
Creates the status bar.
-
setCaretStatus
public void setCaretStatus(int dot, int mark)Sets the caret status.- Parameters:
dot- the dotmark- the mark
-
setFileStatusMessage
public void setFileStatusMessage()
Sets the file status message.
-
setAEStatusMessage
private void setAEStatusMessage()
Sets the AE status message.
-
setStatusbarMessage
public void setStatusbarMessage(java.lang.String message)
Sets the statusbar message.- Parameters:
message- the new statusbar message
-
initializeLogging
private void initializeLogging()
Initialize logging.
-
init
private void init()
Inits the.
-
initFileLists
private final void initFileLists()
Inits the file lists.
-
setupAE
protected boolean setupAE(java.io.File aeFile)
Setup AE.- Parameters:
aeFile- the ae file- Returns:
- true, if successful
-
initCas
private final void initCas()
Inits the cas.
-
internalRunAE
protected void internalRunAE(boolean doCasReset)
Internal run AE.- Parameters:
doCasReset- the do cas reset
-
initIRTree
private void initIRTree()
Inits the IR tree.
-
initFSTree
private void initFSTree()
Inits the FS tree.
-
deleteFSTree
private void deleteFSTree()
Delete FS tree.
-
updateIndexTree
public void updateIndexTree(boolean useCAS)
Update index tree.- Parameters:
useCAS- the use CAS
-
updateFSTree
public void updateFSTree(java.lang.String indexName, FSIndex index1)Update FS tree.- Parameters:
indexName- the index nameindex1- the index 1
-
getAnnotationsAtPos
private java.util.ArrayList<FSNode> getAnnotationsAtPos(int pos, java.util.List<FSNode> annots)
Gets the annotations at pos.- Parameters:
pos- the posannots- the annots- Returns:
- the annotations at pos
-
createTypeTree
private javax.swing.tree.DefaultMutableTreeNode createTypeTree(Type type, TypeSystem ts, java.lang.String label, FSIndexRepository ir)
Creates the type tree.- Parameters:
type- the typets- the tslabel- the labelir- the ir- Returns:
- the default mutable tree node
-
loadProgramPreferences
private void loadProgramPreferences() throws java.io.IOExceptionLoad program preferences.- Throws:
java.io.IOException- Signals that an I/O exception has occurred.
-
setPreferredSize
public void setPreferredSize(javax.swing.JComponent comp, java.lang.String propPrefix)Sets the preferred size.- Parameters:
comp- the comppropPrefix- the prop prefix
-
getDimension
public java.awt.Dimension getDimension(java.lang.String propPrefix)
Gets the dimension.- Parameters:
propPrefix- the prop prefix- Returns:
- the dimension
-
stringListToString
private static final java.lang.String stringListToString(java.util.List<java.lang.String> list)
String list to string.- Parameters:
list- the list- Returns:
- the string
-
stringToArrayList
private static final java.util.List<java.lang.String> stringToArrayList(java.lang.String s)
String to array list.- Parameters:
s- the s- Returns:
- the list
-
saveProgramPreferences
public void saveProgramPreferences() throws java.io.IOExceptionSave program preferences.- Throws:
java.io.IOException- Signals that an I/O exception has occurred.
-
saveColorPreferences
public void saveColorPreferences(java.io.File file) throws java.io.IOExceptionSave color preferences.- Parameters:
file- the file- Throws:
java.io.IOException- Signals that an I/O exception has occurred.
-
loadColorPreferences
public void loadColorPreferences(java.io.File file) throws java.io.IOExceptionLoad color preferences.- Parameters:
file- the file- Throws:
java.io.IOException- Signals that an I/O exception has occurred.
-
initKeyMap
private void initKeyMap()
Inits the key map.
-
showTextPopup
public void showTextPopup(int x, int y)Show text popup.- Parameters:
x- the xy- the y
-
getIndexTree
public javax.swing.JTree getIndexTree()
Gets the index tree.- Returns:
- the index tree
-
getFsTree
public javax.swing.JTree getFsTree()
Gets the fs tree.- Returns:
- the fs tree
-
getTextArea
public javax.swing.JTextArea getTextArea()
Gets the text area.- Returns:
- the text area
-
getCas
public CAS getCas()
Gets the cas.- Returns:
- the cas
-
isDirty
public boolean isDirty()
Checks if is dirty.- Returns:
- true, if is dirty
-
setDirty
public void setDirty(boolean isDirty)
Sets the dirty.- Parameters:
isDirty- the new dirty
-
getPreferences
public java.util.Properties getPreferences()
Gets the preferences.- Returns:
- the preferences
-
getIndexLabel
public java.lang.String getIndexLabel()
Gets the index label.- Returns:
- the index label
-
getIndex
public FSIndex getIndex()
Gets the index.- Returns:
- the index
-
getStyleMap
public java.util.Map<java.lang.String,javax.swing.text.Style> getStyleMap()
Gets the style map.- Returns:
- the style map
-
getAe
public AnalysisEngine getAe()
Gets the ae.- Returns:
- the ae
-
setIndexLabel
public void setIndexLabel(java.lang.String indexLabel)
Sets the index label.- Parameters:
indexLabel- the new index label
-
isAnnotationIndex
public boolean isAnnotationIndex()
Checks if is annotation index.- Returns:
- true, if is annotation index
-
setAnnotationIndex
public void setAnnotationIndex(boolean isAnnotationIndex)
Sets the annotation index.- Parameters:
isAnnotationIndex- the new annotation index
-
setIndex
public void setIndex(FSIndex index)
Sets the index.- Parameters:
index- the new index
-
setAllAnnotationViewerItemEnable
public void setAllAnnotationViewerItemEnable(boolean enabled)
Sets the all annotation viewer item enable.- Parameters:
enabled- the new all annotation viewer item enable
-
getFileOpenDir
public java.io.File getFileOpenDir()
Gets the file open dir.- Returns:
- the file open dir
-
setFileOpenDir
public void setFileOpenDir(java.io.File fileOpenDir)
Sets the file open dir.- Parameters:
fileOpenDir- the new file open dir
-
getTextFile
public java.io.File getTextFile()
Gets the text file.- Returns:
- the text file
-
setTextFile
public void setTextFile(java.io.File textFile)
Sets the text file.- Parameters:
textFile- the new text file
-
setSaveTextFileEnable
public void setSaveTextFileEnable(boolean enabled)
Sets the save text file enable.- Parameters:
enabled- the new save text file enable
-
getUndoMgr
public UndoMgr getUndoMgr()
Gets the undo mgr.- Returns:
- the undo mgr
-
setUndoEnabled
public void setUndoEnabled(boolean enabled)
Sets the undo enabled.- Parameters:
enabled- the new undo enabled
-
getXcasFileOpenDir
public java.io.File getXcasFileOpenDir()
Gets the xcas file open dir.- Returns:
- the xcas file open dir
-
setXcasFileOpenDir
public void setXcasFileOpenDir(java.io.File xcasFileOpenDir)
Sets the xcas file open dir.- Parameters:
xcasFileOpenDir- the new xcas file open dir
-
setCas
public void setCas(CAS cas)
Sets the cas.- Parameters:
cas- the new cas
-
setRunOnCasEnabled
public void setRunOnCasEnabled()
Sets the run on cas enabled.
-
destroyAe
public void destroyAe()
Destroy ae.
-
setRerunEnabled
public void setRerunEnabled(boolean enabled)
Sets the rerun enabled.- Parameters:
enabled- the new rerun enabled
-
setTypeSystemViewerEnabled
public void setTypeSystemViewerEnabled(boolean enabled)
Sets the type system viewer enabled.- Parameters:
enabled- the new type system viewer enabled
-
getColorSettingsDir
public java.io.File getColorSettingsDir()
Gets the color settings dir.- Returns:
- the color settings dir
-
setColorSettingsDir
public void setColorSettingsDir(java.io.File colorSettingsDir)
Sets the color settings dir.- Parameters:
colorSettingsDir- the new color settings dir
-
getColorSettingFile
public java.io.File getColorSettingFile()
Gets the color setting file.- Returns:
- the color setting file
-
setColorSettingFile
public void setColorSettingFile(java.io.File colorSettingFile)
Sets the color setting file.- Parameters:
colorSettingFile- the new color setting file
-
getAnnotOpenDir
public java.io.File getAnnotOpenDir()
Gets the annot open dir.- Returns:
- the annot open dir
-
setAnnotOpenDir
public void setAnnotOpenDir(java.io.File annotOpenDir)
Sets the annot open dir.- Parameters:
annotOpenDir- the new annot open dir
-
getDataPathName
public java.lang.String getDataPathName()
Gets the data path name.- Returns:
- the data path name
-
setDataPathName
public void setDataPathName(java.lang.String dataPathName)
Sets the data path name.- Parameters:
dataPathName- the new data path name
-
getCodePage
public java.lang.String getCodePage()
Gets the code page.- Returns:
- the code page
-
setCodePage
public void setCodePage(java.lang.String codePage)
Sets the code page.- Parameters:
codePage- the new code page
-
getCodePages
public java.util.List<java.lang.String> getCodePages()
Gets the code pages.- Returns:
- the code pages
-
getLanguage
public java.lang.String getLanguage()
Gets the language.- Returns:
- the language
-
setLanguage
public void setLanguage(java.lang.String language)
Sets the language.- Parameters:
language- the new language
-
getLanguages
public java.util.List<java.lang.String> getLanguages()
Gets the languages.- Returns:
- the languages
-
getLanguagePrefsList
public java.lang.String getLanguagePrefsList()
Gets the language prefs list.- Returns:
- the language prefs list
-
setLanguagePrefsList
public void setLanguagePrefsList(java.lang.String languagePrefsList)
Sets the language prefs list.- Parameters:
languagePrefsList- the new language prefs list
-
handleSofas
public void handleSofas()
Handle sofas.
-
isExitOnClose
public boolean isExitOnClose()
Checks if is exit on close.- Returns:
- true, if is exit on close
-
setExitOnClose
public void setExitOnClose(boolean exitOnClose)
Set exit-on-close behavior. Normally, CVD will shut down the JVM it's running in when it's main window is being closed. CallingsetExitOnClose(false)prevents that. It is then the caller's task to shut down the JVM.- Parameters:
exitOnClose- the new exit on close
-
-