Class QuantityByCategoryPanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.gvsig.symbology.gui.layerproperties.QuantityByCategoryPanel
All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, org.gvsig.app.project.documents.view.legend.gui.ILegendPanel

public class QuantityByCategoryPanel extends JPanel implements org.gvsig.app.project.documents.view.legend.gui.ILegendPanel, ActionListener
Implements the panel of a legend where the user can compare two different characteristics of a region in the map. These two "fields" will be compared, on one side, using a color for the region and , on the other side, using a graduated symbol. Both methods will change (the color or the size of the symbol) depending on the value of the fields.
Author:
jaume dominguez faus - jaume.dominguez@iver.es
See Also:
  • Constructor Details

    • QuantityByCategoryPanel

      public QuantityByCategoryPanel()
      Constructor method
  • Method Details

    • setData

      public void setData(org.gvsig.fmap.mapcontext.layers.FLayer lyr, org.gvsig.fmap.mapcontext.rendering.legend.ILegend legend)
      Specified by:
      setData in interface org.gvsig.app.project.documents.view.legend.gui.ILegendPanel
    • getLegend

      public org.gvsig.fmap.mapcontext.rendering.legend.ILegend getLegend()
      Specified by:
      getLegend in interface org.gvsig.app.project.documents.view.legend.gui.ILegendPanel
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface org.gvsig.app.project.documents.view.legend.gui.ILegendPanel
    • getIcon

      public ImageIcon getIcon()
      Specified by:
      getIcon in interface org.gvsig.app.project.documents.view.legend.gui.ILegendPanel
    • getParentClass

      public Class getParentClass()
      Specified by:
      getParentClass in interface org.gvsig.app.project.documents.view.legend.gui.ILegendPanel
    • getTitle

      public String getTitle()
      Specified by:
      getTitle in interface org.gvsig.app.project.documents.view.legend.gui.ILegendPanel
    • getPanel

      public JPanel getPanel()
      Specified by:
      getPanel in interface org.gvsig.app.project.documents.view.legend.gui.ILegendPanel
    • getLegendClass

      public Class getLegendClass()
      Specified by:
      getLegendClass in interface org.gvsig.app.project.documents.view.legend.gui.ILegendPanel
    • actionPerformed

      public void actionPerformed(ActionEvent e)
      Specified by:
      actionPerformed in interface ActionListener
    • fillFieldNames

      protected void fillFieldNames()
      Fills the comboboxes that are placed in the panel with the classifying field names of the layer
    • isSuitableFor

      public boolean isSuitableFor(org.gvsig.fmap.mapcontext.layers.FLayer layer)
      Specified by:
      isSuitableFor in interface org.gvsig.app.project.documents.view.legend.gui.ILegendPanel