|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.ui.IdvLegend
public abstract class IdvLegend
An abstract base class used to represents display control legends for view managers.
| Field Summary | |
|---|---|
static ImageIcon |
ICON_DOCKED
|
static ImageIcon |
ICON_FLOAT
|
protected static ImageIcon |
ICON_PROPERTIES
The icon used to bring up the display properties window |
static ImageIcon |
ICON_REMOVE
Icon used to remove displays |
static String |
STATE_DOCKED
|
static String |
STATE_FLOAT
|
static String |
STATE_HIDDEN
|
protected ViewManager |
viewManager
The ViewManager this legend is part of |
| Constructor Summary | |
|---|---|
IdvLegend()
Parameterless constructor for xml persistence |
|
IdvLegend(ViewManager viewManager)
Create the legend with the given ViewManager |
|
| Method Summary | |
|---|---|
void |
doClose()
The ViewManager in which thie legend is a part of has been closed. |
protected abstract JComponent |
doMakeContents()
To be overrode by derived classes to return the actual GUI contents. |
void |
fillLegend()
This is called when there is a change to the list of DisplayControls shown in this legend. |
protected abstract void |
fillLegendSafely()
To be overrode by derived classes to fill the legend. |
void |
floatLegend()
Float the legend in its own window. |
JComponent |
getContainer()
Get the Container property. |
JComponent |
getContents()
Create, if needed, and return the GUI contents. |
protected JButton |
getFloatButton()
Create, if needed, and return the floatButton. |
protected String |
getTitle()
Get the window title to use. |
protected JButton |
makePropertiesButton(DisplayControl control)
Create an icon button for showing the window for the given display control. |
void |
setColors(Color foreground,
Color background)
No-op. |
void |
setTheContainer(JComponent value)
Set the Container property. |
void |
setViewManager(ViewManager viewManager)
Set the view manager that this legend is part of |
void |
showLegend()
This will float the legend. |
void |
unFloatLegend()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String STATE_HIDDEN
public static final String STATE_DOCKED
public static final String STATE_FLOAT
public static final ImageIcon ICON_FLOAT
public static final ImageIcon ICON_DOCKED
protected static ImageIcon ICON_PROPERTIES
public static ImageIcon ICON_REMOVE
protected ViewManager viewManager
ViewManager this legend is part of
| Constructor Detail |
|---|
public IdvLegend()
public IdvLegend(ViewManager viewManager)
ViewManager
viewManager - The view manager this legend is a part of| Method Detail |
|---|
public JComponent getContents()
public void setViewManager(ViewManager viewManager)
viewManager - The view managerpublic void setTheContainer(JComponent value)
value - The new value for Containerpublic JComponent getContainer()
public void setColors(Color foreground,
Color background)
foreground - The foreground color of the ViewManagerbackground - The background color of the ViewManagerprotected JButton getFloatButton()
public void showLegend()
protected abstract JComponent doMakeContents()
public final void fillLegend()
protected abstract void fillLegendSafely()
fillLegend() within a synchronized block.
protected JButton makePropertiesButton(DisplayControl control)
control - The display control
public void doClose()
protected String getTitle()
public void unFloatLegend()
public void floatLegend()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||