public abstract class AbstractParentPanel extends java.lang.Object implements ILegendPanel
| Constructor and Description |
|---|
AbstractParentPanel() |
| Modifier and Type | Method and Description |
|---|---|
javax.swing.ImageIcon |
getIcon()
Returns the icon which should graphically describe what this panel's legend does.
|
ILegend |
getLegend()
Returns an instance of Legend
|
java.lang.Class |
getLegendClass()
Returns the class of the legend produced by this ILegendPanel.
|
javax.swing.JPanel |
getPanel()
If this is a complete panel (it is a child node in the legend tree) to set up a legend
this method will return a JPanel containing the necessary components.
|
java.lang.Class |
getParentClass()
If this panel should appear as a subnode of the legends tree, in other words it is not
a first-level node, then this method would return its parent's class.
|
void |
setData(FLayer lyr,
ILegend legend)
Initializes the data required for this legend panel.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDescription, getTitle, isSuitableForpublic final void setData(FLayer lyr, ILegend legend)
ILegendPanelsetData in interface ILegendPanelpublic final ILegend getLegend()
ILegendPanelgetLegend in interface ILegendPanelpublic final javax.swing.ImageIcon getIcon()
ILegendPanelgetIcon in interface ILegendPanelpublic java.lang.Class getParentClass()
ILegendPanelgetParentClass in interface ILegendPanelpublic final javax.swing.JPanel getPanel()
ILegendPanelIf this is a complete panel (it is a child node in the legend tree) to set up a legend
this method will return a JPanel containing the necessary components. Otherwise, if
it is just a classification node (it has children) in the legend tree it will return
just null.
If null is returned, the ILegendPanel that will be shown and selected each time it is selected is the very first child of this parent node.
getPanel in interface ILegendPanelpublic java.lang.Class getLegendClass()
ILegendPanelgetLegendClass in interface ILegendPanel