public class SelectionCount extends java.lang.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,
java.lang.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)
LayerListener
Called when the visibility of a layer has changed.
visibilityChanged
in interface LayerListener
e
- a visibility changed layer event objectpublic void activationChanged(LayerEvent e)
LayerListener
Called when the activation of a layer has changed.
activationChanged
in interface LayerListener
e
- an activation changed layer event objectpublic void nameChanged(LayerEvent e)
LayerListener
Called when the name of a layer has changed.
nameChanged
in interface LayerListener
e
- a name changed layer event objectpublic void editionChanged(LayerEvent e)
LayerListener
Called when the edition of a layer has changed.
editionChanged
in interface LayerListener
e
- an edition changed layer event objectpublic void drawValueChanged(LayerEvent e)
LayerListener
Called when a draw value of a layer has changed.
drawValueChanged
in interface LayerListener
e
- an edition changed layer event objectpublic void update(Observable observable, java.lang.Object notification)
Observer
Observable
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 Observer
s 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()