Class AbstractParentPanel

java.lang.Object
org.gvsig.app.project.documents.view.legend.gui.AbstractParentPanel
All Implemented Interfaces:
ILegendPanel
Direct Known Subclasses:
Categories, Features

public abstract class AbstractParentPanel extends Object implements ILegendPanel
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final ImageIcon
    Returns the icon which should graphically describe what this panel's legend does.
    final org.gvsig.fmap.mapcontext.rendering.legend.ILegend
    Returns an instance of Legend
    Returns the class of the legend produced by this ILegendPanel.
    final JPanel
    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 void
    setData(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, wait

    Methods 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: ILegendPanel
      Initializes 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:
      setData in interface ILegendPanel
      Parameters:
      lyr - , target layer
      legend - , the legend currently applied to lyr
    • getLegend

      public final org.gvsig.fmap.mapcontext.rendering.legend.ILegend getLegend()
      Description copied from interface: ILegendPanel
      Returns an instance of Legend
      Specified by:
      getLegend in interface ILegendPanel
      Returns:
      Legend, the legend result of the settings
    • getIcon

      public final ImageIcon getIcon()
      Description copied from interface: ILegendPanel
      Returns the icon which should graphically describe what this panel's legend does.
      Specified by:
      getIcon in interface ILegendPanel
      Returns:
      ImageIcon with the icon to be displayed
    • getParentClass

      public Class getParentClass()
      Description copied from interface: ILegendPanel
      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. Otherwise, if it is a first-level node, then it will return null.
      Specified by:
      getParentClass in interface ILegendPanel
      Returns:
      String containing the parent's title.
    • getPanel

      public final JPanel getPanel()
      Description copied from interface: 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.

      Specified by:
      getPanel in interface ILegendPanel
    • getLegendClass

      public Class getLegendClass()
      Description copied from interface: ILegendPanel
      Returns the class of the legend produced by this ILegendPanel.
      Specified by:
      getLegendClass in interface ILegendPanel