ti.chimera.plugin
Class WindowModePlugin

java.lang.Object
  extended byti.chimera.Plugin
      extended byti.chimera.plugin.AbstractModePlugin
          extended byti.chimera.plugin.WindowModePlugin

public class WindowModePlugin
extends AbstractModePlugin

This plugin provides an implementation of the window manager mode. It provides an implementation of the WindowMode service for the window manager to use to activate/deactivate this mode. The rest of this plugin realizes the implementation of displaying dialogs, tool- bars, menubar entries, etc., on behalf of the window manager plugin.

This plugin is only half of the equasion as far as window management. The other half is the plugin that implements the "window manager" service, which is the "front end" that the rest of the system uses.

The devision is labor is that the this plugin responds to data written into the registry.

Version:
0.1
Author:
Rob Clark

Nested Class Summary
 
Nested classes inherited from class ti.chimera.plugin.AbstractModePlugin
AbstractModePlugin.AbstractWindowMode, AbstractModePlugin.DialogImplementation, AbstractModePlugin.DialogUtility
 
Nested classes inherited from class ti.chimera.Plugin
Plugin.MenuBarItemResource, Plugin.RegistrySubscriberResource, Plugin.ServiceFactory, Plugin.ToolBarFactory, Plugin.ToolBarResource, Plugin.ViewFactory, Plugin.ViewResource
 
Field Summary
 
Fields inherited from class ti.chimera.plugin.AbstractModePlugin
JDK14, mainWindow, MRJ, registry, userInterfaceVisible
 
Fields inherited from class ti.chimera.Plugin
main
 
Constructor Summary
WindowModePlugin(Main main)
          Class Constructor.
 
Method Summary
protected  java.awt.Component createMainWindow()
          Create the main-window, in which the menubar, toolbar, etc.
protected  void disposeMainWindow(java.awt.Component mainWindow)
          Dispose of the main-window created by createMainWindow().
protected  java.awt.Rectangle getDefaultMainWindowBounds()
          Get the appropriate default main-window size for this mode
 
Methods inherited from class ti.chimera.plugin.AbstractModePlugin
fixBounds, fixMainWindowBounds, getAppName, getGraphicsConfiguration, getMain, getScreenInsets, setVisible
 
Methods inherited from class ti.chimera.Plugin
addResource, getName, isActive, registerService, registerServiceFactory, registerServiceFactory, removeResource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WindowModePlugin

public WindowModePlugin(Main main)
Class Constructor.

Parameters:
main - the main application
Method Detail

getDefaultMainWindowBounds

protected java.awt.Rectangle getDefaultMainWindowBounds()
Get the appropriate default main-window size for this mode


createMainWindow

protected java.awt.Component createMainWindow()
Create the main-window, in which the menubar, toolbar, etc. are displayed.

Specified by:
createMainWindow in class AbstractModePlugin
Returns:
the main-window
See Also:
#diposeMainWindow

disposeMainWindow

protected void disposeMainWindow(java.awt.Component mainWindow)
Dispose of the main-window created by createMainWindow().

Specified by:
disposeMainWindow in class AbstractModePlugin
Parameters:
mainWindow - the main-window to dispose
See Also:
createMainWindow()