net.refractions.udig.tools.edit.commands
Class AddGeomCommand

java.lang.Object
  extended by AbstractCommand
      extended by 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

Constructor Summary
AddGeomCommand(EditBlackboard blackboard2, Feature feature2)
          New Instance
AddGeomCommand(EditToolHandler handler, Feature feature, Point mouseLocation)
          new instance
 
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
 

Constructor Detail

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
Method Detail

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