net.refractions.udig.tools.edit.commands
Class AddGeomCommand
java.lang.Object
AbstractCommand
net.refractions.udig.tools.edit.commands.AddGeomCommand
public class AddGeomCommand
- extends AbstractCommand
Adds a geometry to the edit blackboard.
- Since:
- 1.1.0
- Author:
- jones
Method Summary |
java.lang.String |
getName()
|
void |
rollback(IProgressMonitor monitor)
|
void |
run(IProgressMonitor monitor)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddGeomCommand
public AddGeomCommand(EditToolHandler handler,
Feature feature,
Point mouseLocation)
- new instance
- Parameters:
handler
- used to obtain the blackboard for the currently selected layer.feature
- the feature to add.mouseLocation
- If not null it will set the current shape to be the Geom that intersects the mouseLocation
AddGeomCommand
public AddGeomCommand(EditBlackboard blackboard2,
Feature feature2)
- New Instance
- Parameters:
blackboard
- blackboard to add features to.feature2
- the feature to add
run
public void run(IProgressMonitor monitor)
throws java.lang.Exception
- Throws:
java.lang.Exception
getName
public java.lang.String getName()
rollback
public void rollback(IProgressMonitor monitor)
throws java.lang.Exception
- Throws:
java.lang.Exception