Package ucar.unidata.idv.ui
Class ViewPanelImpl.VMInfo
java.lang.Object
ucar.unidata.idv.ui.ViewPanelImpl.VMInfo
- All Implemented Interfaces:
ImageObserver
- Enclosing class:
ViewPanelImpl
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddControlInfo(ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo) new controlvoidchangeControlInfo(ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo) The control info changedbooleanDo we hold the given objectbooleanimageUpdate(Image img, int flags, int x, int y, int width, int height) Handle updateprotected voidpaintButton(Graphics g, ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo) Paint the buttonvoidremoveControlInfo(ucar.unidata.idv.ui.ViewPanelImpl.ControlInfo controlInfo) Remove the controlvoidSHow the ViewManager popup menuvoidmy viewmanager has changed.voidmy viewmanager had been removed
-
Constructor Details
-
VMInfo
ctor- Parameters:
obj- Either a ViewManager or a string label
-
-
Method Details
-
showPopupMenu
public void showPopupMenu()SHow the ViewManager popup menu -
imageUpdate
Handle update- Specified by:
imageUpdatein interfaceImageObserver- Parameters:
img- paramflags- paramx- paramy- paramwidth- paramheight- param- Returns:
- continue
-
holds
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
Paint the button- Parameters:
g- graphicscontrolInfo- 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.
-