|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.idv.ui.LegendPanel
public class LegendPanel
Class LegendPanel provides a generic panel that displays some GUI content and can be closed/opened.
| Field Summary | |
|---|---|
protected JPanel |
contents
The overall contents |
protected JComponent |
extraRight
If non-null shown at the top to the right of the topLabel |
| Constructor Summary | |
|---|---|
LegendPanel()
Create me with no top components. |
|
LegendPanel(JComponent topLabel,
boolean makeBorder,
JComponent extraLeft,
JComponent extraRight)
Create me with the given top components |
|
LegendPanel(JComponent topLabel,
JComponent extraLeft,
JComponent extraRight)
Create me with the given top components |
|
| Method Summary | |
|---|---|
void |
add(JComponent c)
Add the component into the innerPanel. |
void |
add(JComponent c,
boolean doBorder)
Add the component into the innerPanel. |
void |
clear()
Clear the inner panel |
void |
doDrop(Object object)
|
protected void |
doMakeContents()
Create the GUI. |
boolean |
dropOk(Object object)
|
JComponent |
getContents()
Create, if needed, and return the overall GUI contents. |
boolean |
getInnerVisible()
Get the InnerVisible property. |
boolean |
makeDropPanel()
|
void |
reInitialize()
Clear all components in the innerPanel |
protected void |
setComponents(JComponent topLabel,
JComponent extraLeft,
JComponent extraRight)
Set the top components |
protected void |
setInnerVisible(boolean b)
Show or hide the inner panel. |
protected void |
toggleInnerVisible()
Show or hide the inner panel. |
static void |
walkMe(JComponent comp,
String tab)
For debugging |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected JPanel contents
protected JComponent extraRight
| Constructor Detail |
|---|
public LegendPanel()
setComponents(JComponent, JComponent, JComponent)
public LegendPanel(JComponent topLabel,
JComponent extraLeft,
JComponent extraRight)
topLabel - Label shown at the topextraLeft - If non-null shown at the top to the left of the topLabelextraRight - If non-null shown at the top to the right of the topLabel
public LegendPanel(JComponent topLabel,
boolean makeBorder,
JComponent extraLeft,
JComponent extraRight)
topLabel - Label shown at the topmakeBorder - If true then we also create a borderextraLeft - If non-null shown at the top to the left of the topLabelextraRight - If non-null shown at the top to the right of the topLabel| Method Detail |
|---|
protected void setComponents(JComponent topLabel,
JComponent extraLeft,
JComponent extraRight)
topLabel - Label shown at the topextraLeft - If non-null shown at the top to the left of the topLabelextraRight - If non-null shown at the top to the right of the topLabelpublic JComponent getContents()
public void reInitialize()
public void clear()
public static void walkMe(JComponent comp,
String tab)
comp - comptab - tab _protected void doMakeContents()
public boolean makeDropPanel()
public boolean dropOk(Object object)
public void doDrop(Object object)
public void add(JComponent c)
c - The component to add
public void add(JComponent c,
boolean doBorder)
c - The component to adddoBorder - Should a border get created around the component.protected void setInnerVisible(boolean b)
b - Is it visiblepublic boolean getInnerVisible()
protected void toggleInnerVisible()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||