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

java.lang.Object
  extended by AbstractCommand
      extended by net.refractions.udig.tools.edit.commands.CreateEditGeomCommand

public class CreateEditGeomCommand
extends AbstractCommand

Calls newGeom on the EditBlackboard.

Since:
1.1.0
Author:
jones

Constructor Summary
CreateEditGeomCommand(EditBlackboard blackboard, java.lang.String fid)
          New Instance
CreateEditGeomCommand(EditBlackboard blackboard, java.lang.String fid, ShapeType shapeType)
          New Instance
 
Method Summary
 EditGeom get(IProgressMonitor monitor)
           
  getEditGeomProvider()
           
 java.lang.String getName()
           
  getShapeProvider()
           
 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

CreateEditGeomCommand

public CreateEditGeomCommand(EditBlackboard blackboard,
                             java.lang.String fid)
New Instance

Parameters:
blackboard - the blackboard to creat the new geom on.
fid - the string to use as the feature id of the new Geom

CreateEditGeomCommand

public CreateEditGeomCommand(EditBlackboard blackboard,
                             java.lang.String fid,
                             ShapeType shapeType)
New Instance

Parameters:
blackboard - the blackboard to creat the new geom on.
fid - the string to use as the feature id of the new Geom
shapeType - the type of shape to create.
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

get

public EditGeom get(IProgressMonitor monitor)

getEditGeomProvider

public  getEditGeomProvider()

getShapeProvider

public  getShapeProvider()