|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.refractions.udig.project.command.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()
Deprecated. |
Method Summary | |
---|---|
MapCommand |
createCommitCommand()
Deprecated. Create a Commit command |
UndoableMapCommand |
createCreateLayerCommand(java.net.URL resourceId)
Deprecated. Create a CreateLayerCommand |
UndoableMapCommand |
createDeleteFeature(Feature feature,
ILayer layer)
Deprecated. Create a Delete Feature command |
UndoableMapCommand |
createDeleteLayer(Layer layer)
Deprecated. Create a delete layer command |
UndoableMapCommand |
createFeature(Coordinate[] coordinates)
Deprecated. |
UndoableMapCommand |
createNullEditFeatureCommand()
Deprecated. Creates a SetEditFeatureCommandobject that sets the current editable Feature to null. |
UndoableMapCommand |
createResetEditFeatureCommand()
Deprecated. Create a ResetEditFeatureCommand command |
MapCommand |
createRollbackCommand()
Deprecated. Create a Commit command |
UndoableMapCommand |
createSetAttributeCommand(java.lang.String xpath,
java.lang.Object value)
Deprecated. Creates a SetAttributeCommandobject. |
UndoableMapCommand |
createSetEditFeatureCommand(Feature feature)
Deprecated. Creates a SetEditFeatureCommandobject that sets the current editable Feature. |
UndoableMapCommand |
createSetEditFeatureCommand(Feature feature,
ILayer layer)
Deprecated. Creates a SetEditFeatureCommandobject that sets the current editVictim victim. |
UndoableMapCommand |
createSetGeometryCommand(Geometry geom)
Deprecated. Creates a SetGeometryCommandobject that sets the default geometry. |
UndoableMapCommand |
createSetGeometryCommand(java.lang.String xpath,
Geometry geom)
Deprecated. Creates a SetGeometryCommandobject. |
UndoableMapCommand |
createWriteEditFeatureCommand()
Deprecated. Create a WriteEditFeatureCommand command |
static EditCommandFactory |
getInstance()
Deprecated. 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)
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)
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)
geom
- the geom (in layer CRS) that the geometry will be set to.
EditCommand
,
Geometry
public UndoableMapCommand createSetEditFeatureCommand(Feature feature, ILayer layer)
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()
CommitCommand
public MapCommand createRollbackCommand()
RollbackCommand
public UndoableMapCommand createSetEditFeatureCommand(Feature feature)
feature
- the feature that will be the new editable Feature.
UndoableMapCommand
,
Feature
public UndoableMapCommand createNullEditFeatureCommand()
UndoableMapCommand
public UndoableMapCommand createFeature(Coordinate[] coordinates)
coordinates
- the coordinates of the new feature in Map CRS.
CreateFeatureCommand
public UndoableMapCommand createDeleteLayer(Layer layer)
map
- the map containing the layerlayer
- the layer to delete
DeleteLayerCommand
public UndoableMapCommand createDeleteFeature(Feature feature, ILayer layer)
layer
- the layer containing the featurefeature
- the feature to delete
DeleteFeatureCommand
public UndoableMapCommand createWriteEditFeatureCommand()
WriteEditFeatureCommand
public UndoableMapCommand createCreateLayerCommand(java.net.URL resourceId)
CreateLayerCommand
public UndoableMapCommand createResetEditFeatureCommand()
ResetEditFeatureCommand
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |