com.iver.cit.gvsig.fmap.write
Class AddCommand

java.lang.Object
  extended bycom.iver.cit.gvsig.fmap.write.EditingCommand
      extended bycom.iver.cit.gvsig.fmap.write.AddCommand

public class AddCommand
extends EditingCommand


Constructor Summary
AddCommand(int index, IGeometry g)
           
 
Method Summary
 void execute()
          Invoca el método addGeometry del extensionFile pasándole la geometry como parámetro.
 void executeUndo()
          Invoca el método deleteGeometry del extensionFile pasandole como parámetro el índice de la feature que se añadió
 
Methods inherited from class com.iver.cit.gvsig.fmap.write.EditingCommand
getEditionSourceAdapter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddCommand

public AddCommand(int index,
                  IGeometry g)
Method Detail

execute

public void execute()
Invoca el método addGeometry del extensionFile pasándole la geometry como parámetro.

Specified by:
execute in class EditingCommand

executeUndo

public void executeUndo()
Invoca el método deleteGeometry del extensionFile pasandole como parámetro el índice de la feature que se añadió

Specified by:
executeUndo in class EditingCommand