Class SelectionCount

java.lang.Object
org.gvsig.app.extension.selectioncount.SelectionCount
All Implemented Interfaces:
org.gvsig.fmap.mapcontext.layers.LayerListener, org.gvsig.tools.observer.Observer

public class SelectionCount extends Object implements org.gvsig.fmap.mapcontext.layers.LayerListener, org.gvsig.tools.observer.Observer
Counts total and selected features and shows them in the status bar
Author:
Daniel Martinez
  • Constructor Summary

    Constructors
    Constructor
    Description
    SelectionCount(org.gvsig.gui.beans.controls.IControl control)
    Listens the map control to show the count through the control in the status bar
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    activationChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e)
     
    void
    Cleans the text shown in the control
    void
    doAtomicEvent(org.gvsig.fmap.mapcontext.MapContext mapContext, org.gvsig.fmap.mapcontext.events.AtomicEvent e)
     
    void
    drawValueChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e)
     
    void
    editionChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e)
     
    void
    nameChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e)
     
    void
    Gets the features from the selected layers and shows them through the control
    void
    update(org.gvsig.tools.observer.Observable observable, Object notification)
     
    void
    visibilityChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SelectionCount

      public SelectionCount(org.gvsig.gui.beans.controls.IControl control)
      Listens the map control to show the count through the control in the status bar
      Parameters:
      control -
      mapControl -
  • Method Details

    • doAtomicEvent

      public void doAtomicEvent(org.gvsig.fmap.mapcontext.MapContext mapContext, org.gvsig.fmap.mapcontext.events.AtomicEvent e)
    • visibilityChanged

      public void visibilityChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e)
      Specified by:
      visibilityChanged in interface org.gvsig.fmap.mapcontext.layers.LayerListener
    • activationChanged

      public void activationChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e)
      Specified by:
      activationChanged in interface org.gvsig.fmap.mapcontext.layers.LayerListener
    • nameChanged

      public void nameChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e)
      Specified by:
      nameChanged in interface org.gvsig.fmap.mapcontext.layers.LayerListener
    • editionChanged

      public void editionChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e)
      Specified by:
      editionChanged in interface org.gvsig.fmap.mapcontext.layers.LayerListener
    • drawValueChanged

      public void drawValueChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e)
      Specified by:
      drawValueChanged in interface org.gvsig.fmap.mapcontext.layers.LayerListener
    • update

      public void update(org.gvsig.tools.observer.Observable observable, Object notification)
      Specified by:
      update in interface org.gvsig.tools.observer.Observer
    • showFeatureCount

      public void showFeatureCount()
      Gets the features from the selected layers and shows them through the control
      Parameters:
      mapControl -
    • clean

      public void clean()
      Cleans the text shown in the control