Class AbstractParentPanel
java.lang.Object
org.gvsig.app.project.documents.view.legend.gui.AbstractParentPanel
- All Implemented Interfaces:
ILegendPanel
- Direct Known Subclasses:
Categories,Features
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ImageIcongetIcon()Returns the icon which should graphically describe what this panel's legend does.final org.gvsig.fmap.mapcontext.rendering.legend.ILegendReturns an instance of LegendReturns the class of the legend produced by this ILegendPanel.final JPanelgetPanel()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.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.final voidsetData(org.gvsig.fmap.mapcontext.layers.FLayer lyr, org.gvsig.fmap.mapcontext.rendering.legend.ILegend legend) Initializes the data required for this legend panel.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gvsig.app.project.documents.view.legend.gui.ILegendPanel
getDescription, getTitle, isSuitableFor
-
Constructor Details
-
AbstractParentPanel
public AbstractParentPanel()
-
-
Method Details
-
setData
public final void setData(org.gvsig.fmap.mapcontext.layers.FLayer lyr, org.gvsig.fmap.mapcontext.rendering.legend.ILegend legend) Description copied from interface:ILegendPanelInitializes the data required for this legend panel. That is, the layer that will adopt the changes and the current legend that this layer has. If the legend is not the type of legend that this panel manages then it initializes the panel with the default values. In case it is, then the panel should refresh its components with the current values of the Legend.- Specified by:
setDatain interfaceILegendPanel- Parameters:
lyr- , target layerlegend- , the legend currently applied to lyr
-
getLegend
public final org.gvsig.fmap.mapcontext.rendering.legend.ILegend getLegend()Description copied from interface:ILegendPanelReturns an instance of Legend- Specified by:
getLegendin interfaceILegendPanel- Returns:
- Legend, the legend result of the settings
-
getIcon
Description copied from interface:ILegendPanelReturns the icon which should graphically describe what this panel's legend does.- Specified by:
getIconin interfaceILegendPanel- Returns:
- ImageIcon with the icon to be displayed
-
getParentClass
Description copied from interface:ILegendPanelIf 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. Otherwise, if it is a first-level node, then it will return null.- Specified by:
getParentClassin interfaceILegendPanel- Returns:
- String containing the parent's title.
-
getPanel
Description copied from interface: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.
- Specified by:
getPanelin interfaceILegendPanel
-
getLegendClass
Description copied from interface:ILegendPanelReturns the class of the legend produced by this ILegendPanel.- Specified by:
getLegendClassin interfaceILegendPanel
-