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

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

public class ModifyAddedCommand
extends EditingCommand


Constructor Summary
ModifyAddedCommand(int index, IGeometry g)
           
 
Method Summary
 void execute()
          Invoca el método modifyGeometry del EditionFile y obtiene la geometry anterior y la guarda en oldGeometry
 void executeUndo()
          Invoca modifyGeometry en el editionFile pasándo como parámetro oldGeometry
 
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

ModifyAddedCommand

public ModifyAddedCommand(int index,
                          IGeometry g)
Method Detail

execute

public void execute()
Invoca el método modifyGeometry del EditionFile y obtiene la geometry anterior y la guarda en oldGeometry

Specified by:
execute in class EditingCommand

executeUndo

public void executeUndo()
Invoca modifyGeometry en el editionFile pasándo como parámetro oldGeometry

Specified by:
executeUndo in class EditingCommand