Package arcmap :: Module editortools :: Class PolygonDrawTool
[hide private]
[frames] | no frames]

Class PolygonDrawTool

source code

mapcontroller.MapListener --+        
                            |        
                   EditorTool --+    
                                |    
                        ShapeTool --+
                                    |
                                   PolygonDrawTool

Instance Methods [hide private]
 
__init__(self, controller) source code
bool
mouseButtonPress(self, button, time)
Returns: True if this event causes a redraw to be necessary.
source code
bool
mouseButtonRelease(self, button, time)
Returns: True if this event causes a redraw to be necessary.
source code
bool
mouseMotion(self, x, y)
Returns: True if this event causes a redraw to be necessary.
source code
 
draw(self, context) source code

Inherited from EditorTool: getID, getInstructions, getPointer, keyPress, mouseEnter, mouseLeave, setInstructions, undo, x, y

Inherited from mapcontroller.MapListener: getController, listenAddLayer, listenAddShape, listenAddTile, listenAddTileSet, listenFileClosed, listenFileOpened, listenModified, listenRemoveLayer, listenRemoveShape, listenRemoveTile, listenResize, listenSelectLayer, listenSetSelection, listenSetVisibilty, listenSwapLayers, listenUndoRedo

Method Details [hide private]

__init__(self, controller)
(Constructor)

source code 
Parameters:
  • controller - The controller that this will listen to
Overrides: mapcontroller.MapListener.__init__
(inherited documentation)

mouseButtonPress(self, button, time)

source code 
Parameters:
  • button - button that was pressed
  • time - the time that the button press happened. Necessary for popping up menus
Returns: bool
True if this event causes a redraw to be necessary.
Overrides: EditorTool.mouseButtonPress
(inherited documentation)

mouseButtonRelease(self, button, time)

source code 
Parameters:
  • button - button that was pressed
  • time - the time that the button press happened. Necessary for popping up menus
Returns: bool
True if this event causes a redraw to be necessary.
Overrides: EditorTool.mouseButtonRelease
(inherited documentation)

mouseMotion(self, x, y)

source code 
Returns: bool
True if this event causes a redraw to be necessary.
Overrides: EditorTool.mouseMotion
(inherited documentation)

draw(self, context)

source code 
Overrides: EditorTool.draw