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

Class DrawObject

Known Subclasses:
Arc, Arrow, ArrowLine, Bitmap, Circle, Group, Line, Point, PointSet, Polygon, RectEllipse, ScaledBitmap, ScaledBitmap2, ScaledText, ScaledTextBox, SquarePoint, Text

!

This is the base class for all the objects that can be drawn.

One must subclass from this (and an assortment of Mixins) to create a new DrawObject.

ote This class contain a series of static dictionaries:

Is this still necessary?


Method Summary
  __init__(self, InForeground, IsVisible)
! param InForeground (bool) param IsVisible (Bool)
  Bind(self, Event, CallBackFun)
  Hide(self)
! rief Make an object hidden.
  PutInBackground(self)
  PutInForeground(self)
  SetBrush(self, FillColor, FillStyle)
  SetColor(self, Color)
  SetFillColor(self, FillColor)
  SetFillStyle(self, FillStyle)
  SetHitBrush(self, HitColor)
  SetHitPen(self, HitColor, LineWidth)
  SetLineColor(self, LineColor)
  SetLineStyle(self, LineStyle)
  SetLineWidth(self, LineWidth)
  SetPen(self, LineColor, LineStyle, LineWidth)
  Show(self)
! rief Make an object visible on the canvas.
  UnBindAll(self)

Class Variable Summary
dict BrushList = {('MediumGrey', 'Solid'): <wx._gdi.Brush;  >...
dict FillStyleList = {'CrossHatch': 114, 'FDiagonal_Hatch': 1...
dict LineStyleList = {'Solid': 100, 'ShortDash': 103, 'Dot': ...
dict PenList = {('LightGrey', 'Solid', 1): <wx._gdi.Pen;  >, ...

Method Details

__init__(self, InForeground=False, IsVisible=True)
(Constructor)

! param InForeground (bool) param IsVisible (Bool)

Hide(self)

! rief Make an object hidden.

Show(self)

! rief Make an object visible on the canvas.


Class Variable Details

BrushList

Type:
dict
Value:
{(None, 'Transparent'): <wx._gdi.Brush;  >,
 ('Black', 'Solid'): <wx._gdi.Brush;  >,
 ('Blue', 'Solid'): <wx._gdi.Brush;  >,
 ('Cyan', 'Solid'): <wx._gdi.Brush;  >,
 ('Green', 'Solid'): <wx._gdi.Brush;  >,
 ('Grey', 'Solid'): <wx._gdi.Brush;  >,
 ('LightGrey', 'Solid'): <wx._gdi.Brush;  >,
 ('MediumGrey', 'Solid'): <wx._gdi.Brush;  >,
...                                                                    

FillStyleList

Type:
dict
Value:
{'BiDiagonalHatch': 111,
 'CrossDiagHatch': 112,
 'CrossHatch': 114,
 'FDiagonal_Hatch': 113,
 'HorizontalHatch': 115,
 'Solid': 100,
 'Transparent': 106,
 'VerticalHatch': 116}                                                 

LineStyleList

Type:
dict
Value:
{'Dot': 101,
 'DotDash': 104,
 'LongDash': 102,
 'ShortDash': 103,
 'Solid': 100,
 'Transparent': 106}                                                   

PenList

Type:
dict
Value:
{(None, 'Transparent', 1): <wx._gdi.Pen;  >,
 ('Black', 'Solid', 1): <wx._gdi.Pen;  >,
 ('Cyan', 'Solid', 1): <wx._gdi.Pen;  >,
 ('Green', 'Solid', 1): <wx._gdi.Pen;  >,
 ('Grey', 'Solid', 1): <wx._gdi.Pen;  >,
 ('LightGrey', 'Solid', 1): <wx._gdi.Pen;  >,
 ('MediumGrey', 'Solid', 1): <wx._gdi.Pen;  >,
 ('Red', 'Solid', 1): <wx._gdi.Pen;  >,
...                                                                    

Generated by Epydoc 2.1.20050511.rpd on Mon Feb 16 12:51:26 2009 http://epydoc.sf.net