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 |
static String |
annotViewSizePref |
static String |
DEFAULT_STYLE_NAME |
static String |
fsTreeSizePref |
static String |
heightSuffix |
static String |
indexTreeSizePref |
static List<org.apache.uima.util.Level> |
logLevels |
static String |
logViewSizePref |
static String |
textDirPref |
static String |
textSizePref |
static String |
tsWindowSizePref |
static String |
widthSuffix |
static String |
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.
|
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)
HeadlessException - -public void runAE(boolean doCasReset)
public void runCPC()
public void setDataPath(String dataPath)
public void loadAEDescriptor(File descriptorFile)
public void handleException(Throwable e)
protected void handleException(Throwable e, StringBuffer msg)
public void loadFile()
public void loadXmiFile(File xmiCasFile)
public void setText(String text)
text - The text.public void loadTextFile(File textFile1)
textFile1 - The text file.public void setTextNoTitle(String text)
public void setTitle()
public boolean saveFile()
public boolean confirmOverwrite(File f)
public final void setEnableCasFileReadingAndWriting()
public final void resetCursor()
public void createCodePages()
public void resetTrees()
public void resetCPMenu()
public void addLanguage(String language1)
public void resetLangMenu()
public void createLanguages()
public void setCaretStatus(int dot,
int mark)
public void setFileStatusMessage()
public void setStatusbarMessage(String message)
protected boolean setupAE(File aeFile)
protected void internalRunAE(boolean doCasReset)
public void updateIndexTree(boolean useCAS)
public void updateFSTree(String indexName, org.apache.uima.cas.FSIndex index1)
public void setPreferredSize(JComponent comp, String propPrefix)
public void saveProgramPreferences()
throws IOException
IOExceptionpublic void saveColorPreferences(File file) throws IOException
IOExceptionpublic void loadColorPreferences(File file) throws IOException
IOExceptionpublic void showTextPopup(int x,
int y)
public JTree getIndexTree()
public JTree getFsTree()
public JTextArea getTextArea()
public org.apache.uima.cas.CAS getCas()
public boolean isDirty()
public void setDirty(boolean isDirty)
public 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)
public boolean isAnnotationIndex()
public void setAnnotationIndex(boolean isAnnotationIndex)
public void setIndex(org.apache.uima.cas.FSIndex index)
public void setAllAnnotationViewerItemEnable(boolean enabled)
public File getFileOpenDir()
public void setFileOpenDir(File fileOpenDir)
public File getTextFile()
public void setTextFile(File textFile)
public void setSaveTextFileEnable(boolean enabled)
public UndoMgr getUndoMgr()
public void setUndoEnabled(boolean enabled)
public File getXcasFileOpenDir()
public void setXcasFileOpenDir(File xcasFileOpenDir)
public void setCas(org.apache.uima.cas.CAS cas)
public void setRunOnCasEnabled()
public void destroyAe()
public void setRerunEnabled(boolean enabled)
public void setTypeSystemViewerEnabled(boolean enabled)
public File getColorSettingsDir()
public void setColorSettingsDir(File colorSettingsDir)
public File getColorSettingFile()
public void setColorSettingFile(File colorSettingFile)
public File getAnnotOpenDir()
public void setAnnotOpenDir(File annotOpenDir)
public String getDataPathName()
public void setDataPathName(String dataPathName)
public String getCodePage()
public void setCodePage(String codePage)
public String getLanguage()
public void setLanguage(String language)
public String getLanguagePrefsList()
public void setLanguagePrefsList(String languagePrefsList)
public 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 - Copyright © 2006–2015 The Apache Software Foundation. All rights reserved.