|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
gate.gui.MainFrame
public class MainFrame
The main Gate GUI frame.
| Nested Class Summary | |
|---|---|
(package private) class |
MainFrame.AlertAction
|
(package private) class |
MainFrame.CartoonMinder
During longer operations it is nice to keep the user entertained so (s)he doesn't fall asleep looking at a progress bar that seems have stopped. |
(package private) class |
MainFrame.CleanMarkedCorpusEvalAction
This class represent an action which brings up the corpus evaluation tool |
(package private) class |
MainFrame.CloseRecursivelySelectedResourcesAction
|
(package private) class |
MainFrame.CloseSelectedResourcesAction
|
(package private) class |
MainFrame.CloseViewAction
Closes the view associated to a resource. |
(package private) class |
MainFrame.CloseViewsForSelectedResourcesAction
|
(package private) class |
MainFrame.ExitGateAction
Closes the view associated to a resource. |
(package private) class |
MainFrame.GenerateStoredCorpusEvalAction
This class represent an action which brings up the corpus evaluation tool |
(package private) class |
MainFrame.HelpAboutAction
|
(package private) class |
MainFrame.HelpMailingListAction
|
(package private) class |
MainFrame.HelpOnItemTreeAction
|
(package private) class |
MainFrame.HelpUserGuideAction
|
(package private) class |
MainFrame.HelpUserGuideInContextAction
|
(package private) class |
MainFrame.HideAllAction
|
(package private) class |
MainFrame.LiveMenu
A menu that self populates based on CREOLE register data before being shown. |
(package private) class |
MainFrame.LoadANNIEWithDefaultsAction
Loads ANNIE with default parameters. |
(package private) class |
MainFrame.LoadANNIEWithoutDefaultsAction
Loads ANNIE without default parameters. |
(package private) class |
MainFrame.LoadApplicationAction
Loads the application. |
(package private) class |
MainFrame.LoadCreoleRepositoryAction
Deprecated. |
(package private) class |
MainFrame.LoadResourceFromFileAction
|
(package private) class |
MainFrame.LocaleSelectorMenuItem
|
(package private) class |
MainFrame.ManagePluginsAction
|
(package private) class |
MainFrame.NewAnnotDiffAction
This class represent an action which brings up the Annot Diff tool |
(package private) class |
MainFrame.NewBootStrapAction
|
(package private) class |
MainFrame.NewCorpusEvalAction
This class represent an action which brings up the corpus evaluation tool |
(package private) class |
MainFrame.NewDSAction
|
(package private) class |
MainFrame.NewGazetteerEditorAction
This class represent an action which brings up the Gazetteer Editor tool |
(package private) class |
MainFrame.NewResourceAction
|
(package private) class |
MainFrame.OpenDSAction
|
(package private) class |
MainFrame.ProgressBarUpdater
|
(package private) class |
MainFrame.RecentAppsMenu
Recent applications menu that remembers previously loaded applications. |
(package private) class |
MainFrame.RenameResourceAction
|
(package private) class |
MainFrame.ResourcesTree
Overrides default JTree behaviour for tooltips. |
protected class |
MainFrame.ResourcesTreeCellEditor
|
protected class |
MainFrame.ResourcesTreeCellRenderer
|
protected class |
MainFrame.ResourcesTreeModel
|
(package private) class |
MainFrame.ResourceToolTip
Implementation of a custom tool tip to be used for showing extended information about CREOLE resources. |
(package private) class |
MainFrame.ShowResourceAction
|
(package private) class |
MainFrame.ShowSelectedResourcesAction
|
(package private) class |
MainFrame.StatusBarUpdater
|
(package private) static class |
MainFrame.StopAction
|
(package private) class |
MainFrame.StoredMarkedCorpusEvalAction
This class represent an action which brings up the corpus evaluation tool |
(package private) class |
MainFrame.ToggleToolTipsAction
|
(package private) class |
MainFrame.ToolsMenu
The "Tools" menu, which includes some static menu items (added in initGuiComponents) and some dynamic items contributed by plugins. |
(package private) class |
MainFrame.VerboseModeCorpusEvalToolAction
This class represent an action which brings up the corpus evaluation tool |
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
protected JButton |
alertButton
|
protected MainFrame.CartoonMinder |
animator
|
protected DefaultMutableTreeNode |
applicationsRoot
|
protected JPopupMenu |
appsPopup
Popup used for right click actions on the Applications node. |
protected DefaultMutableTreeNode |
datastoresRoot
|
protected JPopupMenu |
dssPopup
Popup used for right click actions on the Datastores node. |
protected static XJFileChooser |
fileChooser
|
protected JProgressBar |
globalProgressBar
|
private static JDialog |
guiLock
|
protected static Collection<Component> |
guiRoots
|
protected HelpFrame |
helpFrame
|
protected static String[] |
ICON_EXTENSIONS
Extensions for icon files to be tried in this order. |
protected static Map<String,Icon> |
iconByName
Holds all the icons used in the Gate GUI indexed by filename. |
private static MainFrame |
instance
|
protected DefaultMutableTreeNode |
languageResourcesRoot
|
protected JSplitPane |
leftSplit
|
protected static org.apache.log4j.Logger |
log
|
protected LogArea |
logArea
|
protected TabHighlighter |
logHighlighter
|
protected JScrollPane |
logScroll
|
protected JScrollPane |
lowerScroll
|
protected JPopupMenu |
lrsPopup
Popup used for right click actions on the LRs node. |
protected JSplitPane |
mainSplit
|
protected XJTabbedPane |
mainTabbedPane
|
protected JMenuBar |
menuBar
|
protected NewResourceDialog |
newResourceDialog
|
protected OptionsDialog |
optionsDialog
|
protected PluginManagerUI |
pluginManager
|
protected DefaultMutableTreeNode |
processingResourcesRoot
|
protected JProgressBar |
progressBar
|
protected JPopupMenu |
prsPopup
Popup used for right click actions on the PRs node. |
protected JTree |
resourcesTree
|
protected DefaultTreeModel |
resourcesTreeModel
|
protected DefaultMutableTreeNode |
resourcesTreeRoot
|
protected JScrollPane |
resourcesTreeScroll
|
protected Splash |
splash
|
private static Pattern |
START_RUNNING_PATTERN
Regular expression pattern for the "Start running" message. |
protected JLabel |
statusBar
|
private boolean |
titleChangable
Flag to protect Frame title to be changed |
protected JToolBar |
toolbar
|
protected JCheckBoxMenuItem |
verboseModeItem
|
| 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()
|
|
MainFrame(boolean isShellSlacGIU,
GraphicsConfiguration gc)
Construct the frame. |
|
MainFrame(GraphicsConfiguration gc)
|
|
| Method Summary | |
|---|---|
protected DataStore |
createSearchableDataStore()
Method is used in NewDSAction |
protected DataStore |
createSerialDataStore()
Method is used in NewDSAction |
void |
datastoreClosed(CreoleEvent e)
Called when a DataStore has been closed |
void |
datastoreCreated(CreoleEvent e)
Called when a DataStore has been created |
void |
datastoreOpened(CreoleEvent e)
Called when a DataStore has been opened |
private void |
displayJavaHelpBrowser(String urlString)
|
protected Handle |
findHandleForResource(Resource res)
Locates the handle for a given resource. |
static XJFileChooser |
getFileChooser()
Get the file chooser. |
static Collection<Component> |
getGuiRoots()
|
static Icon |
getIcon(String baseName)
|
static MainFrame |
getInstance()
|
static Map<String,EventListener> |
getListeners()
Deprecated. Use Gate.getListeners() instead |
PrintStream |
getOriginalErr()
Gets the original system error output stream, which was later redirected to the messages pane. |
PrintStream |
getOriginalOut()
Gets the original system output stream, which was later redirected to the messages pane. |
protected void |
initGuiComponents(boolean isShellSlacGUI)
|
protected void |
initListeners(boolean isShellSlacGIU)
|
protected void |
initLocalData(boolean isShellSlacGIU)
|
protected void |
initMacListeners()
Set up the handlers to support the Macintosh Application menu. |
static void |
lockGUI(String message)
This method will lock all input to the gui by means of a modal dialog. |
protected DataStore |
openDocServiceDataStore()
Method is used in ....OpenDSAction |
protected DataStore |
openSearchableDataStore()
Method is used in OpenDSAction |
protected DataStore |
openSerialDataStore()
Method is used in OpenDSAction |
void |
processFinished()
Called when the process is finished. |
protected void |
processWindowEvent(WindowEvent e)
Overridden so we can exit when window is closed |
void |
progressChanged(int i)
Called when the progress has changed |
void |
resourceLoaded(CreoleEvent e)
Called when a new Resource has been loaded into the system |
void |
resourceRenamed(Resource resource,
String oldName,
String newName)
Called when the creole register has renamed a resource.1 |
void |
resourceUnloaded(CreoleEvent e)
Called when a Resource has been removed from the system |
protected void |
select(Handle handle)
|
Handle |
select(Resource res)
Selects a resource if loaded in the system and not invisible. |
void |
setTitle(String title)
Override to avoid Protege to change Frame title |
void |
setTitleChangable(boolean isChangable)
|
void |
showHelpFrame(String urlString,
String resourceName)
|
void |
statusChanged(String text)
Calleed when there a new status message. |
static void |
unlockGUI()
|
| 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, setUndecorated |
| 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 |
| Field Detail |
|---|
protected static final org.apache.log4j.Logger log
protected JMenuBar menuBar
protected JSplitPane mainSplit
protected JSplitPane leftSplit
protected JLabel statusBar
protected JButton alertButton
protected JProgressBar progressBar
protected JProgressBar globalProgressBar
protected XJTabbedPane mainTabbedPane
protected JScrollPane lowerScroll
protected JPopupMenu appsPopup
protected JPopupMenu dssPopup
protected JPopupMenu lrsPopup
protected JPopupMenu prsPopup
protected JCheckBoxMenuItem verboseModeItem
protected JTree resourcesTree
protected JScrollPane resourcesTreeScroll
protected DefaultTreeModel resourcesTreeModel
protected DefaultMutableTreeNode resourcesTreeRoot
protected DefaultMutableTreeNode applicationsRoot
protected DefaultMutableTreeNode languageResourcesRoot
protected DefaultMutableTreeNode processingResourcesRoot
protected DefaultMutableTreeNode datastoresRoot
protected Splash splash
protected PluginManagerUI pluginManager
protected LogArea logArea
protected JScrollPane logScroll
protected JToolBar toolbar
protected static XJFileChooser fileChooser
private static MainFrame instance
protected OptionsDialog optionsDialog
protected MainFrame.CartoonMinder animator
protected TabHighlighter logHighlighter
protected NewResourceDialog newResourceDialog
protected HelpFrame helpFrame
protected static Map<String,Icon> iconByName
getIcon(String) method.
protected static Collection<Component> guiRoots
protected static final String[] ICON_EXTENSIONS
private static JDialog guiLock
private static final Pattern START_RUNNING_PATTERN
private boolean titleChangable
| Constructor Detail |
|---|
public MainFrame()
public MainFrame(GraphicsConfiguration gc)
public MainFrame(boolean isShellSlacGIU,
GraphicsConfiguration gc)
isShellSlacGIU - true for embedded uses of GATE where a simpler GUI
should be displayed.gc - graphics configuration used,
see JFrame.JFrame(java.awt.GraphicsConfiguration)| Method Detail |
|---|
public static Icon getIcon(String baseName)
public static MainFrame getInstance()
public static XJFileChooser getFileChooser()
public PrintStream getOriginalOut()
PrintStream value.public PrintStream getOriginalErr()
PrintStream value.protected Handle findHandleForResource(Resource res)
res - the resource for which the handle is sought.
Handle for the resource, if it it was found.public Handle select(Resource res)
res - the resource to be selected.
Handle for the resource, null if not found.protected void select(Handle handle)
protected void initLocalData(boolean isShellSlacGIU)
protected void initGuiComponents(boolean isShellSlacGUI)
protected void initListeners(boolean isShellSlacGIU)
protected void initMacListeners()
public void progressChanged(int i)
ProgressListener
progressChanged in interface ProgressListenerpublic void processFinished()
processFinished in interface ProgressListenerpublic void statusChanged(String text)
StatusListener
statusChanged in interface StatusListenerpublic void resourceLoaded(CreoleEvent e)
CreoleListenerResource has been loaded into the system
resourceLoaded in interface CreoleListenerpublic void resourceUnloaded(CreoleEvent e)
CreoleListenerResource has been removed from the system
resourceUnloaded in interface CreoleListenerpublic void datastoreOpened(CreoleEvent e)
DataStore has been opened
datastoreOpened in interface CreoleListenerpublic void datastoreCreated(CreoleEvent e)
DataStore has been created
datastoreCreated in interface CreoleListenerpublic void datastoreClosed(CreoleEvent e)
DataStore has been closed
datastoreClosed in interface CreoleListener
public void resourceRenamed(Resource resource,
String oldName,
String newName)
CreoleListener
resourceRenamed in interface CreoleListenerprotected void processWindowEvent(WindowEvent e)
processWindowEvent in class JFramepublic static Map<String,EventListener> getListeners()
Gate.getListeners() instead
public static Collection<Component> getGuiRoots()
public static void lockGUI(String message)
message - the message to be displayed while the GUI is lockedpublic static void unlockGUI()
public void setTitleChangable(boolean isChangable)
public void setTitle(String title)
setTitle in class Frameprotected DataStore createSerialDataStore()
protected DataStore openSerialDataStore()
protected DataStore openDocServiceDataStore()
protected DataStore createSearchableDataStore()
protected DataStore openSearchableDataStore()
public void showHelpFrame(String urlString,
String resourceName)
private void displayJavaHelpBrowser(String urlString)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||