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 IEditionManager
public void editLayer(FLyrVect lv, DefaultViewPanel vista) throws DataException
editLayer
in interface IEditionManager
DataException
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 ILayerEdited getActiveLayerEdited()
getActiveLayerEdited
in interface IEditionManager
public MapControl getMapControl()
getMapControl
in interface IEditionManager
public void setMapControl(MapControl mapCtrl)
setMapControl
in interface IEditionManager
mapCtrl
- The mapCtrl to set.public void layerAdded(LayerCollectionEvent e)
LayerCollectionListener
Called when a layer has been added or replaced in the internal list of layers.
layerAdded
in interface LayerCollectionListener
e
- a layer collection event objectpublic void layerMoved(LayerPositionEvent e)
LayerCollectionListener
Called when a layer has been moved in the internal list of layers.
layerMoved
in interface LayerCollectionListener
e
- a layer collection event objectpublic void layerRemoved(LayerCollectionEvent e)
LayerCollectionListener
Called when a layer has been removed from the internal list of layers.
layerRemoved
in interface LayerCollectionListener
e
- a layer collection event objectpublic void layerAdding(LayerCollectionEvent e) throws CancelationException
LayerCollectionListener
Called when a layer is just going to be added or replaced in the internal list of layers.
layerAdding
in interface LayerCollectionListener
e
- 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
LayerCollectionListener
Called when a layer is just going to be moved in the internal list of layers.
layerMoving
in interface LayerCollectionListener
e
- 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
LayerCollectionListener
Called when a layer is just going to be removed from the internal list of layers.
layerRemoving
in interface LayerCollectionListener
e
- 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
CancelationException
public void visibilityChanged(LayerCollectionEvent e) throws CancelationException
LayerCollectionListener
Called when the visibility of the collection of layers has changed.
visibilityChanged
in interface LayerCollectionListener
e
- 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)
LayerListener
Called when a draw value of a layer has changed.
drawValueChanged
in interface LayerListener
e
- an edition changed layer event objectpublic Feature insertGeometry(Geometry geometry)
insertGeometry
in interface IEditionManager
public Feature insertGeometry(Geometry geometry, Feature feature)
insertGeometry
in interface IEditionManager
public Feature insertFeature(Feature feature)
insertFeature
in interface IEditionManager
public Feature insertAndSelectGeometry(String toolName, Geometry geometry)
insertAndSelectGeometry
in interface IEditionManager
public EditableFeature updateGeometry(FeatureStore store, Feature feature, Geometry geometry)
updateGeometry
in interface IEditionManager
public EditableFeature updateFeature(FeatureStore store, Feature feature)
updateFeature
in interface IEditionManager
public void removeFeature(FeatureStore store, Feature feature)
removeFeature
in interface IEditionManager
public void stopEditLayer(DefaultViewPanel view, FLyrVect lv, int mode) throws CancelEditingLayerException, ReadException
stopEditLayer
in interface IEditionManager
CancelEditingLayerException
ReadException