Package wx :: Package lib :: Package floatcanvas :: Module FloatCanvas :: Class ScaledBitmap
[frames | no frames]

Class ScaledBitmap

       DrawObject --+
                    |
XYObjectMixin --+   |
                |   |
  TextObjectMixin --+
                    |
                   ScaledBitmap


This class creates a bitmap object, placed at the coordinates, XY, of Height, H, in World coorsinates. The width is calculated from the aspect ratio of the bitmap.

the "Position" argument is a two charactor string, indicating where in relation to the coordinates the bitmap should be oriented.

The first letter is: t, c, or b, for top, center and bottom The second letter is: l, c, or r, for left, center and right The position refers to the position relative to the text itself. It defaults to "tl" (top left).

The size scales with the drawing


Method Summary
  __init__(self, Bitmap, XY, Height, Position, InForeground)
  CalcBoundingBox(self)
    Inherited from DrawObject
  Bind(self, Event, CallBackFun)
  Hide(self)
  PutInBackground(self)
  PutInForeground(self)
  SetBrush(self, FillColor, FillStyle)
  SetHitBrush(self, HitColor)
  SetHitPen(self, HitColor, LineWidth)
  SetPen(self, LineColor, LineStyle, LineWidth)
  Show(self)
  UnBindAll(self)
    Inherited from TextObjectMixin
  LayoutText(self)
A dummy method to re-do the layout of the text.
  SetBackgroundColor(self, BackgroundColor)
  SetColor(self, Color)
  SetFont(self, Size, Family, Style, Weight, Underline, FaceName)
  SetText(self, String)
Re-sets the text displayed by the object
    Inherited from XYObjectMixin
  Move(self, Delta)
Move(Delta): moves the object by delta, where delta is a (dx,dy) pair.
  SetPoint(self, xy)

Class Variable Summary
    Inherited from DrawObject
dict BrushList = {('MediumGrey', 'Solid'): wxPython wrapper f...
dict FillStyleList = {'CrossHatch': 114, 'FDiagonal_Hatch': 1...
dict LineStyleList = {'Solid': 100, 'ShortDash': 103, 'Dot': ...
dict PenList = {('LightGrey', 'Solid', 1): wxPython wrapper f...
    Inherited from TextObjectMixin
dict FontList = {}
int LayoutFontSize = 12                                                                    
dict ShiftFunDict = {'cl': <function <lambda> at 0xb78c210c>,...

Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 16:44:42 2007 http://epydoc.sf.net