ucar.unidata.idv.ui
Class ViewPanelImpl.VMInfo

java.lang.Object
  extended by ucar.unidata.idv.ui.ViewPanelImpl.VMInfo
All Implemented Interfaces:
ImageObserver
Enclosing class:
ViewPanelImpl

public class ViewPanelImpl.VMInfo
extends Object
implements ImageObserver

Class VMInfo Holds gui stuff for a viewmanager

Version:
$Revision: 1.33 $
Author:
IDV Development Team

Field Summary
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
ViewPanelImpl.VMInfo(Object obj)
          ctor
 
Method Summary
 void addControlInfo(ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo)
          new control
 void changeControlInfo(ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo)
          The control info changed
 boolean holds(Object obj)
          Do we hold the given object
 boolean imageUpdate(Image img, int flags, int x, int y, int width, int height)
          Handle update
protected  void paintButton(Graphics g, ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo)
          Paint the button
 void removeControlInfo(ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo)
          Remove the control
 void showPopupMenu()
          SHow the ViewManager popup menu
 void viewManagerChanged()
          my viewmanager has changed.
 void viewManagerDestroyed()
          my viewmanager had been removed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewPanelImpl.VMInfo

public ViewPanelImpl.VMInfo(Object obj)
ctor

Parameters:
obj - Either a ViewManager or a string label
Method Detail

showPopupMenu

public void showPopupMenu()
SHow the ViewManager popup menu


imageUpdate

public boolean imageUpdate(Image img,
                           int flags,
                           int x,
                           int y,
                           int width,
                           int height)
Handle update

Specified by:
imageUpdate in interface ImageObserver
Parameters:
img - param
flags - param
x - param
y - param
width - param
height - param
Returns:
continue

holds

public boolean holds(Object obj)
Do we hold the given object

Parameters:
obj - The object
Returns:
Is it my object

removeControlInfo

public void removeControlInfo(ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo)
Remove the control

Parameters:
controlInfo - the contorl info to remove

changeControlInfo

public void changeControlInfo(ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo)
The control info changed

Parameters:
controlInfo - the control info_

paintButton

protected void paintButton(Graphics g,
                           ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo)
Paint the button

Parameters:
g - graphics
controlInfo - the control info_

addControlInfo

public void addControlInfo(ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo)
new control

Parameters:
controlInfo - the control info

viewManagerDestroyed

public void viewManagerDestroyed()
my viewmanager had been removed


viewManagerChanged

public void viewManagerChanged()
my viewmanager has changed. Update the gui.