|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.project.command.EditCommandFactory
net.refractions.udig.project.command.factory.EditCommandFactory
public class EditCommandFactory
Creates Edit commands which must be used to modify editable feature data. API internal classes are in the returned API
Constructor Summary | |
---|---|
protected |
EditCommandFactory()
|
Method Summary | |
---|---|
UndoableMapCommand |
createAddFeatureCommand(Feature feature,
ILayer layer)
|
MapCommand |
createCommitCommand()
Create a Commit command |
UndoableMapCommand |
createCopyFeaturesCommand(ILayer sourceLayer,
Filter filter,
ILayer destinationLayer)
|
UndoableMapCommand |
createCreateLayerCommand(java.net.URL resourceId)
Create a CreateLayerCommand |
UndoableMapCommand |
createDeleteFeature(Feature feature,
ILayer layer)
Create a Delete Feature command |
MapCommand |
createDeleteFeatures(ILayer selectedLayer,
Filter filter)
|
UndoableMapCommand |
createDeleteLayer(ILayer layer)
Deprecated. use optimized createDeleteLayers(ILayer[]) method. |
UndoableMapCommand |
createDeleteLayers(ILayer[] layers)
Create a delete multiple layers command |
UndoableMapCommand |
createFeature(Coordinate[] coordinates)
|
UndoableMapCommand |
createNullEditFeatureCommand()
Creates a SetEditFeatureCommandobject that sets the current editable Feature to null. |
UndoableMapCommand |
createResetEditFeatureCommand()
Create a ResetEditFeatureCommand command |
MapCommand |
createRollbackCommand()
Create a Commit command |
UndoableMapCommand |
createSetAttributeCommand(Feature feature,
ILayer layer,
java.lang.String xpath,
java.lang.Object value)
Creates a SetAttributeCommandobject. |
UndoableMapCommand |
createSetAttributeCommand(java.lang.String xpath,
java.lang.Object value)
Creates a SetAttributeCommandobject. |
UndoableMapCommand |
createSetEditFeatureCommand(Feature feature)
Creates a SetEditFeatureCommandobject that sets the current editable Feature. |
UndoableMapCommand |
createSetEditFeatureCommand(Feature feature,
ILayer layer)
Creates a SetEditFeatureCommandobject that sets the current editVictim victim. |
UndoableMapCommand |
createSetGeometryCommand(Geometry geom)
Creates a SetGeometryCommandobject that sets the default geometry. |
UndoableMapCommand |
createSetGeometryCommand(java.lang.String xpath,
Geometry geom)
Creates a SetGeometryCommandobject. |
UndoableMapCommand |
createSetGeomteryCommand(Feature feature,
ILayer layer,
Geometry geom)
Creates a SetGeometryCommandobject that sets the default geometry. |
UndoableMapCommand |
createSetGeomteryCommand(Feature feature,
ILayer layer,
java.lang.String xpath,
Geometry geom)
Creates a SetGeometryCommandobject. |
UndoableMapCommand |
createWriteEditFeatureCommand()
Create a WriteEditFeatureCommand command |
static EditCommandFactory |
getInstance()
Creates a new EditCommandFactory object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected EditCommandFactory()
Method Detail |
---|
public static EditCommandFactory getInstance()
public UndoableMapCommand createSetAttributeCommand(java.lang.String xpath, java.lang.Object value)
createSetAttributeCommand
in class EditCommandFactory
xpath
- xpath that identifies an attribute in the current editable Featurevalue
- the value that the attribute will be set to.
EditCommand
public UndoableMapCommand createSetGeometryCommand(java.lang.String xpath, Geometry geom)
createSetGeometryCommand
in class EditCommandFactory
xpath
- xpath that identifies an attribute in the current editable Featuregeom
- the geom (in layer CRS) that the geometry will be set to.
EditCommand
,
Geometry
public UndoableMapCommand createSetGeometryCommand(Geometry geom)
createSetGeometryCommand
in class EditCommandFactory
geom
- the geom (in layer CRS) that the geometry will be set to.
EditCommand
,
Geometry
public UndoableMapCommand createSetAttributeCommand(Feature feature, ILayer layer, java.lang.String xpath, java.lang.Object value)
xpath
- xpath that identifies an attribute in the current editable Featurevalue
- the value that the attribute will be set to.
EditCommand
public UndoableMapCommand createSetGeomteryCommand(Feature feature, ILayer layer, java.lang.String xpath, Geometry geom)
xpath
- xpath that identifies an attribute in the current editable Featuregeom
- the geom (in layer CRS) that the geometry will be set to.
EditCommand
,
Geometry
public UndoableMapCommand createSetGeomteryCommand(Feature feature, ILayer layer, Geometry geom)
feature
- a feature that has a default feature type that will accept the geometry type.layer
- the layer containing the feature.geom
- the geom (in layer CRS) that the geometry will be set to.
EditCommand
,
Geometry
public UndoableMapCommand createSetEditFeatureCommand(Feature feature, ILayer layer)
createSetEditFeatureCommand
in class EditCommandFactory
feature
- the feature that will be the new editable Feature.layer
- A victim Store that contains the editable Feature.
Feature
,
Layer
,
UndoableMapCommand
public MapCommand createCommitCommand()
createCommitCommand
in class EditCommandFactory
CommitCommand
public MapCommand createRollbackCommand()
createRollbackCommand
in class EditCommandFactory
RollbackCommand
public UndoableMapCommand createSetEditFeatureCommand(Feature feature)
createSetEditFeatureCommand
in class EditCommandFactory
feature
- the feature that will be the new editable Feature.
UndoableMapCommand
,
Feature
public UndoableMapCommand createNullEditFeatureCommand()
createNullEditFeatureCommand
in class EditCommandFactory
UndoableMapCommand
public UndoableMapCommand createFeature(Coordinate[] coordinates)
createFeature
in class EditCommandFactory
coordinates
- the coordinates of the new feature in Map CRS.
CreateFeatureCommand
public UndoableMapCommand createDeleteLayers(ILayer[] layers)
map
- the map containing the layerevaluationObject
- the layer to delete
DeleteLayerCommand
public UndoableMapCommand createDeleteLayer(ILayer layer)
createDeleteLayer
in class EditCommandFactory
map
- the map containing the layerlayer
- the layer to delete
DeleteLayerCommand
public UndoableMapCommand createDeleteFeature(Feature feature, ILayer layer)
createDeleteFeature
in class EditCommandFactory
layer
- the layer containing the featurefeature
- the feature to delete
DeleteFeatureCommand
public UndoableMapCommand createWriteEditFeatureCommand()
createWriteEditFeatureCommand
in class EditCommandFactory
WriteEditFeatureCommand
public UndoableMapCommand createCreateLayerCommand(java.net.URL resourceId)
createCreateLayerCommand
in class EditCommandFactory
CreateLayerCommand
public UndoableMapCommand createResetEditFeatureCommand()
createResetEditFeatureCommand
in class EditCommandFactory
ResetEditFeatureCommand
public MapCommand createDeleteFeatures(ILayer selectedLayer, Filter filter)
public UndoableMapCommand createCopyFeaturesCommand(ILayer sourceLayer, Filter filter, ILayer destinationLayer)
public UndoableMapCommand createAddFeatureCommand(Feature feature, ILayer layer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |