com.supermap.mapping
Interface LayersStateListener
-
public interface LayersStateListener
This class is used for a event listener that receives adding layer, modifying layer name, changing edit status, modifying visibility of layer sets.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
layerAdded(Layer layerAdded)
Adds a new layer.void
layerCaptionChanged(Layer changedLayer, java.lang.String oldCaption, java.lang.String newCaption)
Changes the layer alias.void
layerEditableChanged(Layer editableLayer, boolean editable)
The editable changed event.void
layerRemoved(Layer layerRemoved)
Removes a layer.void
layerVisiableChanged(Layer visiableLayer, boolean isVisiable)
The layer visible changed event.
-
-
-
Method Detail
-
layerAdded
void layerAdded(Layer layerAdded)
Adds a new layer.- Parameters:
layerAdded
- Newly added layers.
-
layerRemoved
void layerRemoved(Layer layerRemoved)
Removes a layer.Note: here is to inform which layer is removed, do not release the Layer, because the internal will be released.
- Parameters:
layerRemoved
- removed layers.
-
layerEditableChanged
void layerEditableChanged(Layer editableLayer, boolean editable)
The editable changed event.- Parameters:
editableLayer
- changes the edit state of the layer.editable
- editable state.
-
layerCaptionChanged
void layerCaptionChanged(Layer changedLayer, java.lang.String oldCaption, java.lang.String newCaption)
Changes the layer alias.- Parameters:
changedLayer
- changes the layer.oldCaption
- original alias information.newCaption
- new alias information.
-
layerVisiableChanged
void layerVisiableChanged(Layer visiableLayer, boolean isVisiable)
The layer visible changed event.- Parameters:
visiableLayer
- changes the layer.isVisiable
- Visibility, true is visible, false is not visible.
-
-