edu.wisc.ssec.mcidasv.ui
Class McIDASVViewPanel.VMInfo

java.lang.Object
  extended by edu.wisc.ssec.mcidasv.ui.McIDASVViewPanel.VMInfo
All Implemented Interfaces:
ImageObserver
Enclosing class:
McIDASVViewPanel

public class McIDASVViewPanel.VMInfo
extends Object
implements ImageObserver


Field Summary
private  List<JToggleButton> buttons
           
private  List<String> categories
           
private  boolean catOpen
           
private  JButton catToggle
           
private  JComponent contents
           
private  List<McIDASVViewPanel.ControlInfo> controlInfos
           
private  JPanel headerPanel
           
private  boolean ignore
           
private  KeyListener listener
           
private  McIDASVViewPanel.ViewManagers myType
           
private  JButton popupButton
           
private  JComponent tabContents
           
private  JLabel viewLabel
           
private  ViewManager viewManager
           
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
McIDASVViewPanel.VMInfo(ViewManager vm, McIDASVViewPanel.ViewManagers type)
           
 
Method Summary
 void addControlInfo(McIDASVViewPanel.ControlInfo info)
           
private  void buttonsChanged()
          Redo the buttons
 void changeControlInfo(McIDASVViewPanel.ControlInfo info)
           
 boolean getCatOpen()
           
 String getLabel()
          Get the ViewManager label.
 boolean holds(ViewManager vm)
          Determine if this VMInfo contains a given ViewManager.
 boolean imageUpdate(Image img, int flags, int x, int y, int width, int height)
           
 void paintButton(Graphics g, McIDASVViewPanel.ControlInfo info)
           
 void removeControlInfo(McIDASVViewPanel.ControlInfo info)
           
 void setCatOpen(boolean v)
           
 void showPopupMenu()
           
 void viewManagerChanged()
          my viewmanager has changed.
 void viewManagerDestroyed()
          Handles ViewManager removal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

viewManager

private ViewManager viewManager

popupButton

private JButton popupButton

tabContents

private JComponent tabContents

headerPanel

private JPanel headerPanel

ignore

private boolean ignore

controlInfos

private List<McIDASVViewPanel.ControlInfo> controlInfos

buttons

private List<JToggleButton> buttons

contents

private JComponent contents

viewLabel

private JLabel viewLabel

catToggle

private JButton catToggle

catOpen

private boolean catOpen

listener

private KeyListener listener

categories

private List<String> categories

myType

private McIDASVViewPanel.ViewManagers myType
Constructor Detail

McIDASVViewPanel.VMInfo

public McIDASVViewPanel.VMInfo(ViewManager vm,
                               McIDASVViewPanel.ViewManagers type)
Method Detail

getCatOpen

public boolean getCatOpen()

setCatOpen

public void setCatOpen(boolean v)

showPopupMenu

public void showPopupMenu()

holds

public boolean holds(ViewManager vm)
Determine if this VMInfo contains a given ViewManager.

Parameters:
vm - The ViewManager you wish to test.
Returns:
True if this VMInfo contains vm, false otherwise.

removeControlInfo

public void removeControlInfo(McIDASVViewPanel.ControlInfo info)

changeControlInfo

public void changeControlInfo(McIDASVViewPanel.ControlInfo info)

paintButton

public void paintButton(Graphics g,
                        McIDASVViewPanel.ControlInfo info)

addControlInfo

public void addControlInfo(McIDASVViewPanel.ControlInfo info)

buttonsChanged

private void buttonsChanged()
Redo the buttons


viewManagerDestroyed

public void viewManagerDestroyed()
Handles ViewManager removal.


viewManagerChanged

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


getLabel

public String getLabel()
Get the ViewManager label. If the ViewManager does not already have a valid name, a default name is created, based on the number of existing ViewManagers.

Returns:
label The ViewManager's name.

imageUpdate

public boolean imageUpdate(Image img,
                           int flags,
                           int x,
                           int y,
                           int width,
                           int height)
Specified by:
imageUpdate in interface ImageObserver