public class McIDASVViewPanel.VMInfo extends Object implements ImageObserver
Modifier and Type | Field and Description |
---|---|
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 |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
VMInfo(ViewManager vm,
McIDASVViewPanel.ViewManagers type) |
Modifier and Type | Method and Description |
---|---|
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.
|
private ViewManager viewManager
private JButton popupButton
private JComponent tabContents
private JPanel headerPanel
private boolean ignore
private List<McIDASVViewPanel.ControlInfo> controlInfos
private List<JToggleButton> buttons
private JComponent contents
private boolean catOpen
private KeyListener listener
private List<String> categories
private McIDASVViewPanel.ViewManagers myType
public VMInfo(ViewManager vm, McIDASVViewPanel.ViewManagers type)
public boolean getCatOpen()
public void setCatOpen(boolean v)
public void showPopupMenu()
public boolean holds(ViewManager vm)
vm
- The ViewManager you wish to test.true
if this VMInfo contains vm
,
false
otherwise.public void removeControlInfo(McIDASVViewPanel.ControlInfo info)
public void changeControlInfo(McIDASVViewPanel.ControlInfo info)
public void paintButton(Graphics g, McIDASVViewPanel.ControlInfo info)
public void addControlInfo(McIDASVViewPanel.ControlInfo info)
private void buttonsChanged()
public void viewManagerDestroyed()
public void viewManagerChanged()
public String getLabel()
public boolean imageUpdate(Image img, int flags, int x, int y, int width, int height)
imageUpdate
in interface ImageObserver