public class MainFrame extends JFrame
JFrame.AccessibleJFrameFrame.AccessibleAWTFrameWindow.AccessibleAWTWindow, Window.TypeContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy| Modifier and Type | Field and Description |
|---|---|
static String |
aeDirPref
The Constant aeDirPref.
|
static String |
annotViewSizePref
The Constant annotViewSizePref.
|
static String |
DEFAULT_STYLE_NAME
The Constant DEFAULT_STYLE_NAME.
|
static String |
fsTreeSizePref
The Constant fsTreeSizePref.
|
static String |
heightSuffix
The Constant heightSuffix.
|
static String |
indexTreeSizePref
The Constant indexTreeSizePref.
|
static List<org.apache.uima.util.Level> |
logLevels
The log levels.
|
static String |
logViewSizePref
The Constant logViewSizePref.
|
static String |
textDirPref
The Constant textDirPref.
|
static String |
textSizePref
The Constant textSizePref.
|
static String |
tsWindowSizePref
The Constant tsWindowSizePref.
|
static String |
widthSuffix
The Constant widthSuffix.
|
static String |
xcasDirPref
The Constant xcasDirPref.
|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabledCROSSHAIR_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_CURSORBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTDISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSEABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
MainFrame(File iniFile)
Constructor for MainFrame.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLanguage(String language1)
Adds the language.
|
boolean |
confirmOverwrite(File f)
Confirm overwrite.
|
void |
createCodePages()
Creates the code pages.
|
void |
createLanguages()
Creates the languages.
|
void |
destroyAe()
Destroy ae.
|
org.apache.uima.analysis_engine.AnalysisEngine |
getAe()
Gets the ae.
|
File |
getAnnotOpenDir()
Gets the annot open dir.
|
org.apache.uima.cas.CAS |
getCas()
Gets the cas.
|
String |
getCodePage()
Gets the code page.
|
List<String> |
getCodePages()
Gets the code pages.
|
File |
getColorSettingFile()
Gets the color setting file.
|
File |
getColorSettingsDir()
Gets the color settings dir.
|
String |
getDataPathName()
Gets the data path name.
|
Dimension |
getDimension(String propPrefix)
Gets the dimension.
|
File |
getFileOpenDir()
Gets the file open dir.
|
JTree |
getFsTree()
Gets the fs tree.
|
org.apache.uima.cas.FSIndex |
getIndex()
Gets the index.
|
String |
getIndexLabel()
Gets the index label.
|
JTree |
getIndexTree()
Gets the index tree.
|
String |
getLanguage()
Gets the language.
|
String |
getLanguagePrefsList()
Gets the language prefs list.
|
List<String> |
getLanguages()
Gets the languages.
|
Properties |
getPreferences()
Gets the preferences.
|
Map<String,Style> |
getStyleMap()
Gets the style map.
|
JTextArea |
getTextArea()
Gets the text area.
|
File |
getTextFile()
Gets the text file.
|
UndoMgr |
getUndoMgr()
Gets the undo mgr.
|
File |
getXcasFileOpenDir()
Gets the xcas file open dir.
|
void |
handleException(Throwable e)
Handle exception.
|
protected void |
handleException(Throwable e,
StringBuffer msg)
Handle exception.
|
void |
handleSofas()
Handle sofas.
|
protected void |
internalRunAE(boolean doCasReset)
Internal run AE.
|
boolean |
isAnnotationIndex()
Checks if is annotation index.
|
boolean |
isDirty()
Checks if is dirty.
|
boolean |
isExitOnClose()
Checks if is exit on close.
|
void |
loadAEDescriptor(File descriptorFile)
Load AE descriptor.
|
void |
loadColorPreferences(File file)
Load color preferences.
|
void |
loadFile()
Load file.
|
void |
loadTextFile(File textFile1)
Load a text file.
|
void |
loadXmiFile(File xmiCasFile)
Load xmi file.
|
void |
resetCPMenu()
Reset CP menu.
|
void |
resetCursor()
Reset cursor.
|
void |
resetLangMenu()
Reset lang menu.
|
void |
resetTrees()
Reset trees.
|
void |
runAE(boolean doCasReset)
Run AE.
|
void |
runCPC()
Run CPC.
|
void |
saveColorPreferences(File file)
Save color preferences.
|
boolean |
saveFile()
Save file.
|
void |
saveProgramPreferences()
Save program preferences.
|
void |
setAllAnnotationViewerItemEnable(boolean enabled)
Sets the all annotation viewer item enable.
|
void |
setAnnotationIndex(boolean isAnnotationIndex)
Sets the annotation index.
|
void |
setAnnotOpenDir(File annotOpenDir)
Sets the annot open dir.
|
void |
setCaretStatus(int dot,
int mark)
Sets the caret status.
|
void |
setCas(org.apache.uima.cas.CAS cas)
Sets the cas.
|
void |
setCodePage(String codePage)
Sets the code page.
|
void |
setColorSettingFile(File colorSettingFile)
Sets the color setting file.
|
void |
setColorSettingsDir(File colorSettingsDir)
Sets the color settings dir.
|
void |
setDataPath(String dataPath)
Sets the data path.
|
void |
setDataPathName(String dataPathName)
Sets the data path name.
|
void |
setDirty(boolean isDirty)
Sets the dirty.
|
void |
setEnableCasFileReadingAndWriting()
Sets the enable cas file reading and writing.
|
void |
setExitOnClose(boolean exitOnClose)
Set exit-on-close behavior.
|
void |
setFileOpenDir(File fileOpenDir)
Sets the file open dir.
|
void |
setFileStatusMessage()
Sets the file status message.
|
void |
setIndex(org.apache.uima.cas.FSIndex index)
Sets the index.
|
void |
setIndexLabel(String indexLabel)
Sets the index label.
|
void |
setLanguage(String language)
Sets the language.
|
void |
setLanguagePrefsList(String languagePrefsList)
Sets the language prefs list.
|
void |
setPreferredSize(JComponent comp,
String propPrefix)
Sets the preferred size.
|
void |
setRerunEnabled(boolean enabled)
Sets the rerun enabled.
|
void |
setRunOnCasEnabled()
Sets the run on cas enabled.
|
void |
setSaveTextFileEnable(boolean enabled)
Sets the save text file enable.
|
void |
setStatusbarMessage(String message)
Sets the statusbar message.
|
void |
setText(String text)
Set the text to be analyzed.
|
void |
setTextFile(File textFile)
Sets the text file.
|
void |
setTextNoTitle(String text)
Sets the text no title.
|
void |
setTitle()
Sets the title.
|
void |
setTypeSystemViewerEnabled(boolean enabled)
Sets the type system viewer enabled.
|
void |
setUndoEnabled(boolean enabled)
Sets the undo enabled.
|
protected boolean |
setupAE(File aeFile)
Setup AE.
|
void |
setXcasFileOpenDir(File xcasFileOpenDir)
Sets the xcas file open dir.
|
void |
showTextPopup(int x,
int y)
Show text popup.
|
void |
updateFSTree(String indexName,
org.apache.uima.cas.FSIndex index1)
Update FS tree.
|
void |
updateIndexTree(boolean useCAS)
Update index tree.
|
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, updateaddNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecoratedaddPropertyChangeListener, 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, toFrontadd, 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, validateTreeaction, 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, transferFocusUpCycleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetFont, postEventpublic static List<org.apache.uima.util.Level> logLevels
public static final String textDirPref
public static final String aeDirPref
public static final String xcasDirPref
public static final String textSizePref
public static final String indexTreeSizePref
public static final String fsTreeSizePref
public static final String tsWindowSizePref
public static final String annotViewSizePref
public static final String logViewSizePref
public static final String widthSuffix
public static final String heightSuffix
public static final String DEFAULT_STYLE_NAME
public MainFrame(File iniFile)
iniFile - the ini fileHeadlessException - -public void runAE(boolean doCasReset)
doCasReset - the do cas resetpublic void runCPC()
public void setDataPath(String dataPath)
dataPath - the new data pathpublic void loadAEDescriptor(File descriptorFile)
descriptorFile - the descriptor filepublic void handleException(Throwable e)
e - the eprotected void handleException(Throwable e, StringBuffer msg)
e - the emsg - the msgpublic void loadFile()
public void loadXmiFile(File xmiCasFile)
xmiCasFile - the xmi cas filepublic void setText(String text)
text - The text.public void loadTextFile(File textFile1)
textFile1 - The text file.public void setTextNoTitle(String text)
text - the new text no titlepublic void setTitle()
public boolean saveFile()
public boolean confirmOverwrite(File f)
f - the fpublic final void setEnableCasFileReadingAndWriting()
public final void resetCursor()
public void createCodePages()
public void resetTrees()
public void resetCPMenu()
public void addLanguage(String language1)
language1 - the language 1public void resetLangMenu()
public void createLanguages()
public void setCaretStatus(int dot,
int mark)
dot - the dotmark - the markpublic void setFileStatusMessage()
public void setStatusbarMessage(String message)
message - the new statusbar messageprotected boolean setupAE(File aeFile)
aeFile - the ae fileprotected void internalRunAE(boolean doCasReset)
doCasReset - the do cas resetpublic void updateIndexTree(boolean useCAS)
useCAS - the use CASpublic void updateFSTree(String indexName, org.apache.uima.cas.FSIndex index1)
indexName - the index nameindex1 - the index 1public void setPreferredSize(JComponent comp, String propPrefix)
comp - the comppropPrefix - the prop prefixpublic Dimension getDimension(String propPrefix)
propPrefix - the prop prefixpublic void saveProgramPreferences()
throws IOException
IOException - Signals that an I/O exception has occurred.public void saveColorPreferences(File file) throws IOException
file - the fileIOException - Signals that an I/O exception has occurred.public void loadColorPreferences(File file) throws IOException
file - the fileIOException - Signals that an I/O exception has occurred.public void showTextPopup(int x,
int y)
x - the xy - the ypublic JTree getIndexTree()
public JTree getFsTree()
public JTextArea getTextArea()
public org.apache.uima.cas.CAS getCas()
public boolean isDirty()
public void setDirty(boolean isDirty)
isDirty - the new dirtypublic Properties getPreferences()
public String getIndexLabel()
public org.apache.uima.cas.FSIndex getIndex()
public org.apache.uima.analysis_engine.AnalysisEngine getAe()
public void setIndexLabel(String indexLabel)
indexLabel - the new index labelpublic boolean isAnnotationIndex()
public void setAnnotationIndex(boolean isAnnotationIndex)
isAnnotationIndex - the new annotation indexpublic void setIndex(org.apache.uima.cas.FSIndex index)
index - the new indexpublic void setAllAnnotationViewerItemEnable(boolean enabled)
enabled - the new all annotation viewer item enablepublic File getFileOpenDir()
public void setFileOpenDir(File fileOpenDir)
fileOpenDir - the new file open dirpublic File getTextFile()
public void setTextFile(File textFile)
textFile - the new text filepublic void setSaveTextFileEnable(boolean enabled)
enabled - the new save text file enablepublic UndoMgr getUndoMgr()
public void setUndoEnabled(boolean enabled)
enabled - the new undo enabledpublic File getXcasFileOpenDir()
public void setXcasFileOpenDir(File xcasFileOpenDir)
xcasFileOpenDir - the new xcas file open dirpublic void setCas(org.apache.uima.cas.CAS cas)
cas - the new caspublic void setRunOnCasEnabled()
public void destroyAe()
public void setRerunEnabled(boolean enabled)
enabled - the new rerun enabledpublic void setTypeSystemViewerEnabled(boolean enabled)
enabled - the new type system viewer enabledpublic File getColorSettingsDir()
public void setColorSettingsDir(File colorSettingsDir)
colorSettingsDir - the new color settings dirpublic File getColorSettingFile()
public void setColorSettingFile(File colorSettingFile)
colorSettingFile - the new color setting filepublic File getAnnotOpenDir()
public void setAnnotOpenDir(File annotOpenDir)
annotOpenDir - the new annot open dirpublic String getDataPathName()
public void setDataPathName(String dataPathName)
dataPathName - the new data path namepublic String getCodePage()
public void setCodePage(String codePage)
codePage - the new code pagepublic String getLanguage()
public void setLanguage(String language)
language - the new languagepublic String getLanguagePrefsList()
public void setLanguagePrefsList(String languagePrefsList)
languagePrefsList - the new language prefs listpublic void handleSofas()
public boolean isExitOnClose()
public void setExitOnClose(boolean exitOnClose)
setExitOnClose(false) prevents that. It is then
the caller's task to shut down the JVM.exitOnClose - the new exit on closeCopyright © 2006–2018 The Apache Software Foundation. All rights reserved.