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

Class LocationPainter

DestructableViewMixin --+    
                        |    
                  Painter --+
                            |
                           LocationPainter


Draws a text message containing the current position of the mouse in the lower left corner of the plot.
Method Summary
  clearValue(self, dc, value)
Clears the string value from the lower left corner of the plot by painting a white rectangle over it.
  drawValue(self, dc, value)
Draws the string value in the lower left corner of the plot.
  formatValue(self, value)
Extracts a string from the 1-tuple value.
  get_XYWH(self, dc, value)
Returns the upper-left coordinates (X, Y) for the string value its width and height (W, H).
    Inherited from Painter
  __init__(self, view, enabled)
Create a new painter attached to the wxPython window view.
  _paint(self, value, dc)
Draws a previously processed value on this painter's window.
  clear(self, dc)
Clear the painter's current value from the screen and the painter itself.
  redraw(self, dc)
Redraw this painter's current value.
  set(self, *value)
Update this painter's value and then draw it.
  setEnabled(self, state)
Enable or disable this painter.
    Inherited from DestructableViewMixin
  destroy(self)
Sets this object's view attribute to None.

Class Variable Summary
wxBrushPtr BRUSH: wx.Brush to use (defaults to wx.TRANSPARENT_BRUSH)
int PADDING = 2                                                                     
wxPenPtr PEN: wx.Pen to use (defaults to wx.BLACK_PEN)
    Inherited from Painter
wxFontPtr FONT: wx.Font to use (defaults to wx.NORMAL_FONT)
int FUNCTION: Logical function to use (defaults to wx.COPY)
wxColourPtr TEXT_BACKGROUND: wx.Colour to use (defaults to wx.WHITE)
wxColourPtr TEXT_FOREGROUND: wx.Colour to use (defaults to wx.BLACK)

Method Details

clearValue(self, dc, value)

Clears the string value from the lower left corner of the plot by painting a white rectangle over it.
Overrides:
wxmpl.Painter.clearValue

drawValue(self, dc, value)

Draws the string value in the lower left corner of the plot.
Overrides:
wxmpl.Painter.drawValue

formatValue(self, value)

Extracts a string from the 1-tuple value.
Overrides:
wxmpl.Painter.formatValue

get_XYWH(self, dc, value)

Returns the upper-left coordinates (X, Y) for the string value its width and height (W, H).

Class Variable Details

BRUSH

wx.Brush to use (defaults to wx.TRANSPARENT_BRUSH)
Type:
wxBrushPtr
Value:
<wxPython.gdi.wxBrushPtr instance; proxy of C++ wxBrush instance at _8\
1e9ed0_wxBrush_p>                                                      

PADDING

Type:
int
Value:
2                                                                     

PEN

wx.Pen to use (defaults to wx.BLACK_PEN)
Type:
wxPenPtr
Value:
<wxPython.gdi.wxPenPtr instance; proxy of C++ wxPen instance at _81e9c\
d8_wxPen_p>                                                            

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