public class SelectionCount extends Object implements LayerListener, Observer
| Constructor and Description |
|---|
SelectionCount(IControl control)
Listens the map control to show the count through the control in the status bar
|
| Modifier and Type | Method and Description |
|---|---|
void |
activationChanged(LayerEvent e)
Called when the activation of a layer has changed.
|
void |
clean()
Cleans the text shown in the control
|
void |
doAtomicEvent(MapContext mapContext,
AtomicEvent e) |
void |
drawValueChanged(LayerEvent e)
Called when a draw value of a layer has changed.
|
void |
editionChanged(LayerEvent e)
Called when the edition of a layer has changed.
|
void |
nameChanged(LayerEvent e)
Called when the name of a layer has changed.
|
void |
showFeatureCount()
Gets the features from the selected layers and shows them through the control
|
void |
update(Observable observable,
Object notification)
Called whenever a
Observable object is changed and this
Observer has registered on it to receive notifications. |
void |
visibilityChanged(LayerEvent e)
Called when the visibility of a layer has changed.
|
public SelectionCount(IControl control)
mapControl - control - public void doAtomicEvent(MapContext mapContext, AtomicEvent e)
public void visibilityChanged(LayerEvent e)
LayerListenerCalled when the visibility of a layer has changed.
visibilityChanged in interface LayerListenere - a visibility changed layer event objectpublic void activationChanged(LayerEvent e)
LayerListenerCalled when the activation of a layer has changed.
activationChanged in interface LayerListenere - an activation changed layer event objectpublic void nameChanged(LayerEvent e)
LayerListenerCalled when the name of a layer has changed.
nameChanged in interface LayerListenere - a name changed layer event objectpublic void editionChanged(LayerEvent e)
LayerListenerCalled when the edition of a layer has changed.
editionChanged in interface LayerListenere - an edition changed layer event objectpublic void drawValueChanged(LayerEvent e)
LayerListenerCalled when a draw value of a layer has changed.
drawValueChanged in interface LayerListenere - an edition changed layer event objectpublic void update(Observable observable, Object notification)
ObserverObservable object is changed and this
Observer has registered on it to receive notifications.
Implementations of this method will be called for each simple notification or, if a complex notification is created, for each of the child notifications.
In the latter case, don't assume any ordering in the notification between
this Observer and other Observers listening to the same
Observable.
In a complex notification scenario, if you want to receive only the
complex notification and not each of the child notifications, just
implement the ComplexObserver and prepare this method
implementation to handle receiving DefaultComplexNotification instances
as well as direct notification objects.
public void showFeatureCount()
mapControl - public void clean()