|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--harmonic.mz.manager.GUIManager
This manages the user interface at the global scale. It is a set of farily specific functions that one would normally not care about.
| Field Summary | |
static int |
BOTTOM_PANE
|
static int |
LEFT_PANE
|
static int |
RIGHT_PANE
|
static int |
TOP_PANE
|
| Method Summary | |
void |
addBottomPanel(java.lang.String name,
javax.swing.Icon icon,
java.awt.Component c)
|
void |
addInputPanel(java.lang.String name,
javax.swing.Icon icon,
java.awt.Component c)
|
void |
addModulePanel(java.lang.String name,
javax.swing.Icon icon,
java.awt.Component c)
Add panel in the area for module control panels. |
void |
addReadoutUpdater(ReadoutUpdater ru)
Add a ReadoutUpdater to the list of updaters to be called by the update timer. |
void |
addToPulldownMenu(HWM_GroupData menu,
Module mod)
Function alows modules to embed a menu in the main pull down menu. |
void |
addUIField(java.lang.String name,
ModelNode field)
|
boolean |
dropObject(java.lang.Object obj,
java.awt.Point p)
Try to drop the object (what ever it is) at given screen coordinate point into a welcome place in the user interface. |
void |
finishInit()
|
ModelViewport |
getCurrentView()
Return viewport user has set as current, for relevent operations. |
java.util.Vector |
getFloatedToolbars()
Return toolbars that are in floating frames |
java.awt.Component |
getFocusWindow()
Return window that is supposed to have keyboard focus |
java.awt.Frame |
getFrame()
Return the application main frame |
java.awt.Image |
getFrameIconImage()
Returns the image for the frame corner |
java.lang.String |
getFrameTitle()
Get the frame title. |
HWM_GroupData |
getGlobalMenu()
Return the menu data for the application menu |
HWSplitPane |
getHorizontalSplit()
|
javax.swing.ImageIcon |
getImageIcon(FunctionStarter action)
Create's the icons for FunctionStarter. |
HWM_PulldownMenu |
getPulldownMenu()
Return the main pulldown menu |
HWToolbarHolder |
getToolbarHolder(java.lang.String key)
Return the HWToolbarHolder at the given key |
harmonic.mz.docnode.UILookAndFeelField |
getUIData()
Returns the data node used to keep user interface settings. |
HWSplitPane |
getVerticalSplit()
|
boolean |
keyblock(java.awt.event.KeyEvent e)
|
ModelViewport |
newViewport()
|
void |
postAppMenu(int mouseX,
int mouseY)
Post the global controls menu in the viewport at the given point |
void |
postContextMenu(ModelNode node,
java.awt.Component cmp,
int x,
int y)
Post a context meny for the given node in the viewport |
void |
removeBottomPanel(java.awt.Component c)
|
void |
removeFromPulldownMenu(Module mod)
Remove the module's controls from the global menus |
void |
removeInputPanel(java.awt.Component c)
|
void |
removeModulePanel(java.awt.Component c)
|
void |
removeReadoutUpdater(ReadoutUpdater ru)
|
void |
removeViewport_Pre(ModelViewport viewport)
|
void |
removeViewport(ModelViewport viewport)
|
void |
setFocusWindow(java.awt.Component fe)
This is a semi-klude for taking the keyboard focus so that the mouse does not have to be over the frame with text input. |
void |
setOwnedVisibility(boolean b)
Controls whether windows owned by main frame are visible |
void |
setUIDefaults()
Set the user interface settings to some hard-coded defaults. |
boolean |
trySplitPaneDrop(int paneIndex,
int subindex,
java.awt.Component cmp,
java.awt.Point _p)
Try dropping the component in the split panes that line the viewport |
void |
unpostMenus()
Removes any menus that are floating about |
void |
updateFileTitle()
Update the frame title to follow current file from FileManager |
void |
updateUIVariables()
|
void |
viewportChanged(harmonic.viewer3D.event.ViewportEvent e)
|
harmonic.viewer3D.Viewport |
viewportUnderMouse(java.awt.Point p)
Returns the Viewport under the screen coordinate |
void |
windowHidden(java.awt.Window wnd)
This was added when SGI was having trouble getting repaint msg to viewport. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int LEFT_PANE
public static final int TOP_PANE
public static final int RIGHT_PANE
public static final int BOTTOM_PANE
| Method Detail |
public void finishInit()
public void updateUIVariables()
public void addUIField(java.lang.String name,
ModelNode field)
public void setUIDefaults()
public void setOwnedVisibility(boolean b)
public void viewportChanged(harmonic.viewer3D.event.ViewportEvent e)
viewportChanged in interface harmonic.viewer3D.event.ViewportListenerpublic harmonic.mz.docnode.UILookAndFeelField getUIData()
public javax.swing.ImageIcon getImageIcon(FunctionStarter action)
public java.awt.Image getFrameIconImage()
public boolean trySplitPaneDrop(int paneIndex,
int subindex,
java.awt.Component cmp,
java.awt.Point _p)
public void addToPulldownMenu(HWM_GroupData menu,
Module mod)
public void removeFromPulldownMenu(Module mod)
public java.lang.String getFrameTitle()
public void updateFileTitle()
public HWM_GroupData getGlobalMenu()
public ModelViewport getCurrentView()
public ModelViewport newViewport()
public void removeViewport(ModelViewport viewport)
public void removeViewport_Pre(ModelViewport viewport)
public HWM_PulldownMenu getPulldownMenu()
public HWToolbarHolder getToolbarHolder(java.lang.String key)
public void addModulePanel(java.lang.String name,
javax.swing.Icon icon,
java.awt.Component c)
public void removeModulePanel(java.awt.Component c)
public void addInputPanel(java.lang.String name,
javax.swing.Icon icon,
java.awt.Component c)
public void removeInputPanel(java.awt.Component c)
public void addBottomPanel(java.lang.String name,
javax.swing.Icon icon,
java.awt.Component c)
public void removeBottomPanel(java.awt.Component c)
public HWSplitPane getVerticalSplit()
public HWSplitPane getHorizontalSplit()
public boolean keyblock(java.awt.event.KeyEvent e)
public harmonic.viewer3D.Viewport viewportUnderMouse(java.awt.Point p)
public void postAppMenu(int mouseX,
int mouseY)
public void unpostMenus()
public void postContextMenu(ModelNode node,
java.awt.Component cmp,
int x,
int y)
node - Node that generates context menucmp - Component point is relative tox - x component of pointy - y component of pointpublic void addReadoutUpdater(ReadoutUpdater ru)
public void removeReadoutUpdater(ReadoutUpdater ru)
addReadoutUpdater()public java.util.Vector getFloatedToolbars()
public java.awt.Component getFocusWindow()
public boolean dropObject(java.lang.Object obj,
java.awt.Point p)
public java.awt.Frame getFrame()
public void setFocusWindow(java.awt.Component fe)
public void windowHidden(java.awt.Window wnd)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||