public class LegendPanel
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JPanel |
contents
The overall contents
|
protected javax.swing.JComponent |
extraRight
If non-null shown at the top to the right of the topLabel
|
Constructor and Description |
---|
LegendPanel()
Create me with no top components.
|
LegendPanel(javax.swing.JComponent topLabel,
boolean makeBorder,
javax.swing.JComponent extraLeft,
javax.swing.JComponent extraRight)
Create me with the given top components
|
LegendPanel(javax.swing.JComponent topLabel,
javax.swing.JComponent extraLeft,
javax.swing.JComponent extraRight)
Create me with the given top components
|
Modifier and Type | Method and Description |
---|---|
void |
add(javax.swing.JComponent c)
Add the component into the innerPanel.
|
void |
add(javax.swing.JComponent c,
boolean doBorder)
Add the component into the innerPanel.
|
void |
clear()
Clear the inner panel
|
void |
doDrop(java.lang.Object object)
_more_
|
protected void |
doMakeContents()
Create the GUI.
|
boolean |
dropOk(java.lang.Object object)
_more_
|
javax.swing.JComponent |
getContents()
Create, if needed, and return the overall GUI contents.
|
javax.swing.JComponent |
getExtraRight()
_more_
|
boolean |
getInnerVisible()
Get the InnerVisible property.
|
boolean |
makeDropPanel()
_more_
|
void |
reInitialize()
Clear all components in the innerPanel
|
protected void |
setComponents(javax.swing.JComponent topLabel,
javax.swing.JComponent extraLeft,
javax.swing.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(javax.swing.JComponent comp,
java.lang.String tab)
For debugging
|
protected javax.swing.JPanel contents
protected javax.swing.JComponent extraRight
public LegendPanel()
setComponents(JComponent, JComponent, JComponent)
public LegendPanel(javax.swing.JComponent topLabel, javax.swing.JComponent extraLeft, javax.swing.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 LegendPanel(javax.swing.JComponent topLabel, boolean makeBorder, javax.swing.JComponent extraLeft, javax.swing.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 topLabelpublic javax.swing.JComponent getExtraRight()
protected void setComponents(javax.swing.JComponent topLabel, javax.swing.JComponent extraLeft, javax.swing.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 javax.swing.JComponent getContents()
public void reInitialize()
public void clear()
public static void walkMe(javax.swing.JComponent comp, java.lang.String tab)
comp
- comptab
- tab _protected void doMakeContents()
public boolean makeDropPanel()
public boolean dropOk(java.lang.Object object)
object
- _more_public void doDrop(java.lang.Object object)
object
- _more_public void add(javax.swing.JComponent c)
c
- The component to addpublic void add(javax.swing.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()