public class EditionManager extends Object implements LayerListener, LayerCollectionListener, IEditionManager
ACCEPT_EDITING, CANCEL_EDITING, CONTINUE_EDITING| Constructor and Description |
|---|
EditionManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activationChanged(LayerCollectionEvent e) |
void |
activationChanged(LayerEvent e)
Called when the activation of a layer has changed.
|
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 |
editLayer(FLyrVect lv,
DefaultViewPanel vista) |
ILayerEdited |
getActiveLayerEdited() |
ILayerEdited |
getLayerEdited(FLayer lyr) |
MapControl |
getMapControl() |
Feature |
insertAndSelectGeometry(String toolName,
Geometry geometry) |
Feature |
insertFeature(Feature feature) |
Feature |
insertGeometry(Geometry geometry) |
Feature |
insertGeometry(Geometry geometry,
Feature feature) |
void |
layerAdded(LayerCollectionEvent e)
Called when a layer has been added or replaced in the internal list of layers.
|
void |
layerAdding(LayerCollectionEvent e)
Called when a layer is just going to be added or replaced in the internal list of layers.
|
void |
layerMoved(LayerPositionEvent e)
Called when a layer has been moved in the internal list of layers.
|
void |
layerMoving(LayerPositionEvent e)
Called when a layer is just going to be moved in the internal list of layers.
|
void |
layerRemoved(LayerCollectionEvent e)
Called when a layer has been removed from the internal list of layers.
|
void |
layerRemoving(LayerCollectionEvent e)
Called when a layer is just going to be removed from the internal list of layers.
|
void |
nameChanged(LayerEvent e)
Called when the name of a layer has changed.
|
void |
removeFeature(FeatureStore store,
Feature feature) |
void |
setMapControl(MapControl mapCtrl) |
void |
stopEditLayer(DefaultViewPanel view,
FLyrVect lv,
int mode) |
EditableFeature |
updateFeature(FeatureStore store,
Feature feature) |
EditableFeature |
updateGeometry(FeatureStore store,
Feature feature,
Geometry geometry) |
void |
visibilityChanged(LayerCollectionEvent e)
Called when the visibility of the collection of layers has changed.
|
void |
visibilityChanged(LayerEvent e)
Called when the visibility of a layer has changed.
|
public ILayerEdited getLayerEdited(FLayer lyr)
getLayerEdited in interface IEditionManagerpublic void editLayer(FLyrVect lv, DefaultViewPanel vista) throws DataException
editLayer in interface IEditionManagerDataExceptionpublic 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 ILayerEdited getActiveLayerEdited()
getActiveLayerEdited in interface IEditionManagerpublic MapControl getMapControl()
getMapControl in interface IEditionManagerpublic void setMapControl(MapControl mapCtrl)
setMapControl in interface IEditionManagermapCtrl - The mapCtrl to set.public void layerAdded(LayerCollectionEvent e)
LayerCollectionListenerCalled when a layer has been added or replaced in the internal list of layers.
layerAdded in interface LayerCollectionListenere - a layer collection event objectpublic void layerMoved(LayerPositionEvent e)
LayerCollectionListenerCalled when a layer has been moved in the internal list of layers.
layerMoved in interface LayerCollectionListenere - a layer collection event objectpublic void layerRemoved(LayerCollectionEvent e)
LayerCollectionListenerCalled when a layer has been removed from the internal list of layers.
layerRemoved in interface LayerCollectionListenere - a layer collection event objectpublic void layerAdding(LayerCollectionEvent e) throws CancelationException
LayerCollectionListenerCalled when a layer is just going to be added or replaced in the internal list of layers.
layerAdding in interface LayerCollectionListenere - a layer collection event objectCancelationException - if cancels the adding operation, this exception will have the message
that user will see.public void layerMoving(LayerPositionEvent e) throws CancelationException
LayerCollectionListenerCalled when a layer is just going to be moved in the internal list of layers.
layerMoving in interface LayerCollectionListenere - a layer collection event objectCancelationException - if cancels the moving operation, this exception will have the message
that user will see.public void layerRemoving(LayerCollectionEvent e) throws CancelationException
LayerCollectionListenerCalled when a layer is just going to be removed from the internal list of layers.
layerRemoving in interface LayerCollectionListenere - a layer collection event objectCancelationException - if cancels the removing operation, this exception will have the message
that user will see.public void activationChanged(LayerCollectionEvent e) throws CancelationException
CancelationExceptionpublic void visibilityChanged(LayerCollectionEvent e) throws CancelationException
LayerCollectionListenerCalled when the visibility of the collection of layers has changed.
visibilityChanged in interface LayerCollectionListenere - a layer collection event objectCancelationException - if cancels the operation of change visibility, this exception will have the
message that user will see.public void drawValueChanged(LayerEvent e)
LayerListenerCalled when a draw value of a layer has changed.
drawValueChanged in interface LayerListenere - an edition changed layer event objectpublic Feature insertGeometry(Geometry geometry)
insertGeometry in interface IEditionManagerpublic Feature insertGeometry(Geometry geometry, Feature feature)
insertGeometry in interface IEditionManagerpublic Feature insertFeature(Feature feature)
insertFeature in interface IEditionManagerpublic Feature insertAndSelectGeometry(String toolName, Geometry geometry)
insertAndSelectGeometry in interface IEditionManagerpublic EditableFeature updateGeometry(FeatureStore store, Feature feature, Geometry geometry)
updateGeometry in interface IEditionManagerpublic EditableFeature updateFeature(FeatureStore store, Feature feature)
updateFeature in interface IEditionManagerpublic void removeFeature(FeatureStore store, Feature feature)
removeFeature in interface IEditionManagerpublic void stopEditLayer(DefaultViewPanel view, FLyrVect lv, int mode) throws CancelEditingLayerException, ReadException
stopEditLayer in interface IEditionManagerCancelEditingLayerExceptionReadException