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

Class Line

       DrawObject --+
                    |
    LineOnlyMixin --+
                    |
PointsObjectMixin --+
                    |
                   Line


The Line class takes a list of 2-tuples, or a NX2 NumPy Float array of point coordinates.

It will draw a straight line if there are two points, and a polyline if there are more than two.


Method Summary
  __init__(self, Points, LineColor, LineStyle, LineWidth, InForeground)
    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 PointsObjectMixin
  CalcBoundingBox(self)
  SetPoints(self, Points, copy)
Sets the coordinates of the points of the object to Points (NX2 array).
    Inherited from LineOnlyMixin
  SetLineColor(self, LineColor)
  SetLineStyle(self, LineStyle)
  SetLineWidth(self, LineWidth)

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...

Generated by Epydoc 2.1.20050511.rpd on Sat Jun 16 17:06:03 2007 http://epydoc.sf.net