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
ConstructorsConstructorDescriptionSelectionCount(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 TypeMethodDescriptionvoidactivationChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e) voidclean()Cleans the text shown in the controlvoiddoAtomicEvent(org.gvsig.fmap.mapcontext.MapContext mapContext, org.gvsig.fmap.mapcontext.events.AtomicEvent e) voiddrawValueChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e) voideditionChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e) voidnameChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e) voidGets the features from the selected layers and shows them through the controlvoidvoidvisibilityChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e)
-
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:
visibilityChangedin interfaceorg.gvsig.fmap.mapcontext.layers.LayerListener
-
activationChanged
public void activationChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e) - Specified by:
activationChangedin interfaceorg.gvsig.fmap.mapcontext.layers.LayerListener
-
nameChanged
public void nameChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e) - Specified by:
nameChangedin interfaceorg.gvsig.fmap.mapcontext.layers.LayerListener
-
editionChanged
public void editionChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e) - Specified by:
editionChangedin interfaceorg.gvsig.fmap.mapcontext.layers.LayerListener
-
drawValueChanged
public void drawValueChanged(org.gvsig.fmap.mapcontext.layers.LayerEvent e) - Specified by:
drawValueChangedin interfaceorg.gvsig.fmap.mapcontext.layers.LayerListener
-
update
- Specified by:
updatein interfaceorg.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
-