Package arcmap :: Module undo :: Class ShapeAdjustAction
[hide private]
[frames] | no frames]

Class ShapeAdjustAction

source code

object --+    
         |    
UndoAction --+
             |
            ShapeAdjustAction

UndoAction for adjusting the geometry of a shape

Instance Methods [hide private]
 
__init__(self, controller, shape, index, oldX, oldY, newX, newY)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
undo(self)
Undo the action
source code
 
redo(self)
Redo the action
source code

Inherited from UndoAction: getController, getRedoString, getUndoString, setDescription

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, controller, shape, index, oldX, oldY, newX, newY)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • controller (mapcontroller.MapController) - the map controller
  • index (int) - the index of the shape's handle being adjusted
  • oldX (int) - old x-coordinate of the handle
  • oldY (int) - old y-coordinate of the handle
  • newX (int) - new x-coordinate of the handle
  • newY (int) - new y-coordinate of the handle
Overrides: object.__init__

undo(self)

source code 

Undo the action

Overrides: UndoAction.undo
(inherited documentation)

redo(self)

source code 

Redo the action

Overrides: UndoAction.redo
(inherited documentation)