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.JFrame
Class comment for MainFrame.java goes here.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Nested classes/interfaces inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Nested classes/interfaces inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
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 javax.swing.WindowConstants |
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary |
MainFrame(java.io.File iniFile)
Constructor for MainFrame. |
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, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.awt.Window |
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOwnedWindows, getOwner, getOwnerlessWindows, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, 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, paint, 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, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, 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, isOpaque, 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, setBackground, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, 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 |
logLevels
public static java.util.List<Level> logLevels
textDirPref
public static final java.lang.String textDirPref
- See Also:
- Constant Field Values
aeDirPref
public static final java.lang.String aeDirPref
- See Also:
- Constant Field Values
xcasDirPref
public static final java.lang.String xcasDirPref
- See Also:
- Constant Field Values
textSizePref
public static final java.lang.String textSizePref
- See Also:
- Constant Field Values
indexTreeSizePref
public static final java.lang.String indexTreeSizePref
- See Also:
- Constant Field Values
fsTreeSizePref
public static final java.lang.String fsTreeSizePref
- See Also:
- Constant Field Values
tsWindowSizePref
public static final java.lang.String tsWindowSizePref
- See Also:
- Constant Field Values
annotViewSizePref
public static final java.lang.String annotViewSizePref
- See Also:
- Constant Field Values
logViewSizePref
public static final java.lang.String logViewSizePref
- See Also:
- Constant Field Values
widthSuffix
public static final java.lang.String widthSuffix
- See Also:
- Constant Field Values
heightSuffix
public static final java.lang.String heightSuffix
- See Also:
- Constant Field Values
DEFAULT_STYLE_NAME
public static final java.lang.String DEFAULT_STYLE_NAME
- See Also:
- Constant Field Values
MainFrame
public MainFrame(java.io.File iniFile)
- Constructor for MainFrame.
- Throws:
java.awt.HeadlessException
runAE
public void runAE(boolean doCasReset)
runCPC
public void runCPC()
setDataPath
public void setDataPath(java.lang.String dataPath)
loadAEDescriptor
public void loadAEDescriptor(java.io.File descriptorFile)
handleException
public void handleException(java.lang.Throwable e)
handleException
protected void handleException(java.lang.Throwable e,
java.lang.StringBuffer msg)
loadFile
public void loadFile()
loadXmiFile
public void loadXmiFile(java.io.File xmiCasFile)
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)
setTitle
public void setTitle()
saveFile
public boolean saveFile()
confirmOverwrite
public boolean confirmOverwrite(java.io.File f)
setEnableCasFileReadingAndWriting
public final void setEnableCasFileReadingAndWriting()
resetCursor
public final void resetCursor()
createCodePages
public void createCodePages()
resetTrees
public void resetTrees()
resetCPMenu
public void resetCPMenu()
addLanguage
public void addLanguage(java.lang.String language1)
resetLangMenu
public void resetLangMenu()
createLanguages
public void createLanguages()
setCaretStatus
public void setCaretStatus(int dot,
int mark)
setFileStatusMessage
public void setFileStatusMessage()
setStatusbarMessage
public void setStatusbarMessage(java.lang.String message)
setupAE
protected boolean setupAE(java.io.File aeFile)
internalRunAE
protected void internalRunAE(boolean doCasReset)
updateIndexTree
public void updateIndexTree(boolean useCAS)
updateFSTree
public void updateFSTree(java.lang.String indexName,
FSIndex index1)
setPreferredSize
public void setPreferredSize(javax.swing.JComponent comp,
java.lang.String propPrefix)
getDimension
public java.awt.Dimension getDimension(java.lang.String propPrefix)
saveProgramPreferences
public void saveProgramPreferences()
throws java.io.IOException
- Throws:
java.io.IOException
saveColorPreferences
public void saveColorPreferences(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
loadColorPreferences
public void loadColorPreferences(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
showTextPopup
public void showTextPopup(int x,
int y)
getIndexTree
public javax.swing.JTree getIndexTree()
getFsTree
public javax.swing.JTree getFsTree()
getTextArea
public javax.swing.JTextArea getTextArea()
getCas
public CAS getCas()
isDirty
public boolean isDirty()
setDirty
public void setDirty(boolean isDirty)
getPreferences
public java.util.Properties getPreferences()
getIndexLabel
public java.lang.String getIndexLabel()
getIndex
public FSIndex getIndex()
getStyleMap
public java.util.Map<java.lang.String,javax.swing.text.Style> getStyleMap()
getAe
public AnalysisEngine getAe()
setIndexLabel
public void setIndexLabel(java.lang.String indexLabel)
isAnnotationIndex
public boolean isAnnotationIndex()
setAnnotationIndex
public void setAnnotationIndex(boolean isAnnotationIndex)
setIndex
public void setIndex(FSIndex index)
setAllAnnotationViewerItemEnable
public void setAllAnnotationViewerItemEnable(boolean enabled)
getFileOpenDir
public java.io.File getFileOpenDir()
setFileOpenDir
public void setFileOpenDir(java.io.File fileOpenDir)
getTextFile
public java.io.File getTextFile()
setTextFile
public void setTextFile(java.io.File textFile)
setSaveTextFileEnable
public void setSaveTextFileEnable(boolean enabled)
getUndoMgr
public UndoMgr getUndoMgr()
setUndoEnabled
public void setUndoEnabled(boolean enabled)
getXcasFileOpenDir
public java.io.File getXcasFileOpenDir()
setXcasFileOpenDir
public void setXcasFileOpenDir(java.io.File xcasFileOpenDir)
setCas
public void setCas(CAS cas)
setRunOnCasEnabled
public void setRunOnCasEnabled()
destroyAe
public void destroyAe()
setRerunEnabled
public void setRerunEnabled(boolean enabled)
setTypeSystemViewerEnabled
public void setTypeSystemViewerEnabled(boolean enabled)
getColorSettingsDir
public java.io.File getColorSettingsDir()
setColorSettingsDir
public void setColorSettingsDir(java.io.File colorSettingsDir)
getColorSettingFile
public java.io.File getColorSettingFile()
setColorSettingFile
public void setColorSettingFile(java.io.File colorSettingFile)
getAnnotOpenDir
public java.io.File getAnnotOpenDir()
setAnnotOpenDir
public void setAnnotOpenDir(java.io.File annotOpenDir)
getDataPathName
public java.lang.String getDataPathName()
setDataPathName
public void setDataPathName(java.lang.String dataPathName)
getCodePage
public java.lang.String getCodePage()
setCodePage
public void setCodePage(java.lang.String codePage)
getCodePages
public java.util.List<java.lang.String> getCodePages()
getLanguage
public java.lang.String getLanguage()
setLanguage
public void setLanguage(java.lang.String language)
getLanguages
public java.util.List<java.lang.String> getLanguages()
getLanguagePrefsList
public java.lang.String getLanguagePrefsList()
setLanguagePrefsList
public void setLanguagePrefsList(java.lang.String languagePrefsList)
handleSofas
public void handleSofas()
isExitOnClose
public boolean isExitOnClose()
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. Calling
setExitOnClose(false)
prevents that. It is then
the caller's task to shut down the JVM.
- Parameters:
exitOnClose
-
Copyright © 2013. All Rights Reserved.