Module wxmpl :: Class PlotPanelDirector
[show private | hide private]
[frames | no frames]

Class PlotPanelDirector

DestructableViewMixin --+
                        |
                       PlotPanelDirector


Encapsulates all of the user-interaction logic required by the PlotPanel, following the Humble Dialog Box pattern proposed by Michael Feathers: http://www.objectmentor.com/resources/articles/TheHumbleDialogBox.pdf
Method Summary
  __init__(self, view, zoom, selection, rightClickUnzoom)
Create a new director for the PlotPanel view.
  axesMouseMotion(self, evt, x, y, axes, xdata, ydata)
Handles wxPython mouse motion events that occur over an axes.
  canDraw(self)
Returns a boolean indicating whether or not the plot may be redrawn.
  canvasMouseMotion(self, evt, x, y)
Handles wxPython mouse motion events that occur over the canvas.
  keyDown(self, evt)
Handles wxPython key-press events.
  keyUp(self, evt)
Handles wxPython key-release events.
  leftButtonDown(self, evt, x, y)
Handles wxPython left-click events.
  leftButtonUp(self, evt, x, y)
Handles wxPython left-click-release events.
  mouseMotion(self, evt, x, y)
Handles wxPython mouse motion events, dispatching them based on whether or not a selection is in process and what the cursor is over.
  polarAxesMouseMotion(self, evt, x, y, axes, xdata, ydata)
Handles wxPython mouse motion events that occur over a polar axes.
  rightButtonDown(self, evt, x, y)
Handles wxPython right-click events.
  rightButtonUp(self, evt, x, y)
Handles wxPython right-click-release events.
  selectionMouseMotion(self, evt, x, y, axes, xdata, ydata)
Handles wxPython mouse motion events that occur during a left-click area selection.
  setRightClickUnzoom(self, state)
Enable or disable unzooming as a result of right-clicking.
  setSelection(self, state)
Enable or disable left-click area selection.
  setZoomEnabled(self, state)
Enable or disable zooming as a result of left-click area selection.
  zoomed(self, axes)
Returns a boolean indicating whether or not the plot has been zoomed in as a result of a left-click area selection.
    Inherited from DestructableViewMixin
  destroy(self)
Sets this object's view attribute to None.

Method Details

__init__(self, view, zoom=True, selection=True, rightClickUnzoom=True)
(Constructor)

Create a new director for the PlotPanel view. The keyword arguments zoom and selection have the same meanings as for PlotPanel.

axesMouseMotion(self, evt, x, y, axes, xdata, ydata)

Handles wxPython mouse motion events that occur over an axes.

canDraw(self)

Returns a boolean indicating whether or not the plot may be redrawn.

canvasMouseMotion(self, evt, x, y)

Handles wxPython mouse motion events that occur over the canvas.

keyDown(self, evt)

Handles wxPython key-press events. These events are currently skipped.

keyUp(self, evt)

Handles wxPython key-release events. These events are currently skipped.

leftButtonDown(self, evt, x, y)

Handles wxPython left-click events.

leftButtonUp(self, evt, x, y)

Handles wxPython left-click-release events.

mouseMotion(self, evt, x, y)

Handles wxPython mouse motion events, dispatching them based on whether or not a selection is in process and what the cursor is over.

polarAxesMouseMotion(self, evt, x, y, axes, xdata, ydata)

Handles wxPython mouse motion events that occur over a polar axes.

rightButtonDown(self, evt, x, y)

Handles wxPython right-click events. These events are currently skipped.

rightButtonUp(self, evt, x, y)

Handles wxPython right-click-release events.

selectionMouseMotion(self, evt, x, y, axes, xdata, ydata)

Handles wxPython mouse motion events that occur during a left-click area selection.

setRightClickUnzoom(self, state)

Enable or disable unzooming as a result of right-clicking.

setSelection(self, state)

Enable or disable left-click area selection.

setZoomEnabled(self, state)

Enable or disable zooming as a result of left-click area selection.

zoomed(self, axes)

Returns a boolean indicating whether or not the plot has been zoomed in as a result of a left-click area selection.

Generated by Epydoc 2.1 on Mon Aug 28 13:47:49 2006 http://epydoc.sf.net