Class MainFrame

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class MainFrame extends JFrame
Class comment for MainFrame.java goes here.
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • runAE

      public void runAE(boolean doCasReset)
    • runCPC

      public void runCPC()
    • setDataPath

      public void setDataPath(String dataPath)
    • loadAEDescriptor

      public void loadAEDescriptor(File descriptorFile)
    • handleException

      public void handleException(Throwable e)
    • handleException

      protected void handleException(Throwable e, StringBuffer msg)
    • showError

      private void showError(String msg)
    • loadFile

      public void loadFile()
    • loadXmiFile

      public void loadXmiFile(File xmiCasFile)
    • getMnemonic

      private static final int getMnemonic(int i)
    • createRecentTextFileItem

      private final JMenuItem createRecentTextFileItem(int num, File file)
    • addRecentTextFile

      private void addRecentTextFile(File file)
    • createRecentDescFileItem

      private final JMenuItem createRecentDescFileItem(int num, File file)
    • addRecentDescFile

      private void addRecentDescFile(File file)
    • setText

      public void setText(String text)
      Set the text to be analyzed.
      Parameters:
      text - The text.
    • loadTextFile

      public void loadTextFile(File textFile1)
      Load a text file.
      Parameters:
      textFile1 - The text file.
    • setTextNoTitle

      public void setTextNoTitle(String text)
    • setTitle

      public void setTitle()
    • saveFile

      public boolean saveFile()
    • confirmOverwrite

      public boolean confirmOverwrite(File f)
    • createTextArea

      private void createTextArea()
    • populateEditMenu

      private void populateEditMenu()
    • createEditActionMap

      private HashMap<Object,Action> createEditActionMap()
    • createMenuBar

      private JMenuBar createMenuBar()
    • createEditMenu

      private JMenu createEditMenu()
    • createHelpMenu

      private JMenu createHelpMenu()
    • createFileMenu

      private void createFileMenu()
    • setEnableCasFileReadingAndWriting

      public final void setEnableCasFileReadingAndWriting()
    • addCursorOwningComponent

      private final void addCursorOwningComponent(Component comp)
    • setWaitCursor

      private final void setWaitCursor()
    • resetCursor

      public final void resetCursor()
    • createCodePages

      public void createCodePages()
    • resetTrees

      public void resetTrees()
    • createCPMenu

      private void createCPMenu()
    • resetCPMenu

      public void resetCPMenu()
    • addLanguage

      public void addLanguage(String language1)
    • createLangMenu

      private void createLangMenu()
    • resetLangMenu

      public void resetLangMenu()
    • createLanguages

      public void createLanguages()
    • createRunMenu

      private JMenu createRunMenu()
    • createToolsMenu

      private JMenu createToolsMenu()
    • createStatusBar

      private void createStatusBar()
    • setCaretStatus

      public void setCaretStatus(int dot, int mark)
    • setFileStatusMessage

      public void setFileStatusMessage()
    • setAEStatusMessage

      private void setAEStatusMessage()
    • setStatusbarMessage

      public void setStatusbarMessage(String message)
    • initializeLogging

      private void initializeLogging()
    • init

      private void init()
    • initFileLists

      private final void initFileLists()
    • setupAE

      protected boolean setupAE(File aeFile)
    • initCas

      private final void initCas()
    • internalRunAE

      protected void internalRunAE(boolean doCasReset)
    • initIRTree

      private void initIRTree()
    • initFSTree

      private void initFSTree()
    • deleteFSTree

      private void deleteFSTree()
    • updateIndexTree

      public void updateIndexTree(boolean useCAS)
    • updateFSTree

      public void updateFSTree(String indexName, FSIndex index1)
    • getAnnotationsAtPos

      private ArrayList<FSNode> getAnnotationsAtPos(int pos, List<FSNode> annots)
    • createTypeTree

      private DefaultMutableTreeNode createTypeTree(Type type, TypeSystem ts, String label, FSIndexRepository ir)
    • loadProgramPreferences

      private void loadProgramPreferences() throws IOException
      Throws:
      IOException
    • setPreferredSize

      public void setPreferredSize(JComponent comp, String propPrefix)
    • getDimension

      public Dimension getDimension(String propPrefix)
    • stringListToString

      private static final String stringListToString(List<String> list)
    • stringToArrayList

      private static final List<String> stringToArrayList(String s)
    • saveProgramPreferences

      public void saveProgramPreferences() throws IOException
      Throws:
      IOException
    • saveColorPreferences

      public void saveColorPreferences(File file) throws IOException
      Throws:
      IOException
    • loadColorPreferences

      public void loadColorPreferences(File file) throws IOException
      Throws:
      IOException
    • initKeyMap

      private void initKeyMap()
    • showTextPopup

      public void showTextPopup(int x, int y)
    • getIndexTree

      public JTree getIndexTree()
    • getFsTree

      public JTree getFsTree()
    • getTextArea

      public JTextArea getTextArea()
    • getCas

      public CAS getCas()
    • isDirty

      public boolean isDirty()
    • setDirty

      public void setDirty(boolean isDirty)
    • getPreferences

      public Properties getPreferences()
    • getIndexLabel

      public String getIndexLabel()
    • getIndex

      public FSIndex getIndex()
    • getStyleMap

      public Map<String,Style> getStyleMap()
    • getAe

      public AnalysisEngine getAe()
    • setIndexLabel

      public void setIndexLabel(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 File getFileOpenDir()
    • setFileOpenDir

      public void setFileOpenDir(File fileOpenDir)
    • getTextFile

      public File getTextFile()
    • setTextFile

      public void setTextFile(File textFile)
    • setSaveTextFileEnable

      public void setSaveTextFileEnable(boolean enabled)
    • getUndoMgr

      public UndoMgr getUndoMgr()
    • setUndoEnabled

      public void setUndoEnabled(boolean enabled)
    • getXcasFileOpenDir

      public File getXcasFileOpenDir()
    • setXcasFileOpenDir

      public void setXcasFileOpenDir(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 File getColorSettingsDir()
    • setColorSettingsDir

      public void setColorSettingsDir(File colorSettingsDir)
    • getColorSettingFile

      public File getColorSettingFile()
    • setColorSettingFile

      public void setColorSettingFile(File colorSettingFile)
    • getAnnotOpenDir

      public File getAnnotOpenDir()
    • setAnnotOpenDir

      public void setAnnotOpenDir(File annotOpenDir)
    • getDataPathName

      public String getDataPathName()
    • setDataPathName

      public void setDataPathName(String dataPathName)
    • getCodePage

      public String getCodePage()
    • setCodePage

      public void setCodePage(String codePage)
    • getCodePages

      public List<String> getCodePages()
    • getLanguage

      public String getLanguage()
    • setLanguage

      public void setLanguage(String language)
    • getLanguages

      public List<String> getLanguages()
    • getLanguagePrefsList

      public String getLanguagePrefsList()
    • setLanguagePrefsList

      public void setLanguagePrefsList(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 -