public abstract class AbstractParentPanel extends Object implements ILegendPanel
Constructor and Description |
---|
AbstractParentPanel() |
Modifier and Type | Method and Description |
---|---|
ImageIcon |
getIcon()
Returns the icon which should graphically describe what this panel's legend does.
|
ILegend |
getLegend()
Returns an instance of Legend
|
Class |
getLegendClass()
Returns the class of the legend produced by this ILegendPanel.
|
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.
|
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, wait
getDescription, getTitle, isSuitableFor
public final void setData(FLayer lyr, ILegend legend)
ILegendPanel
setData
in interface ILegendPanel
public final ILegend getLegend()
ILegendPanel
getLegend
in interface ILegendPanel
public final ImageIcon getIcon()
ILegendPanel
getIcon
in interface ILegendPanel
public Class getParentClass()
ILegendPanel
getParentClass
in interface ILegendPanel
public final JPanel getPanel()
ILegendPanel
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. 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 ILegendPanel
public Class getLegendClass()
ILegendPanel
getLegendClass
in interface ILegendPanel