Phoenix Logo

phoenix_title wx.lib.floatcanvas.FCObjects.RectEllipse

A RectEllipse draw object.


class_hierarchy Class Hierarchy

Inheritance diagram for class RectEllipse:

method_summary Methods Summary

__init__ Default class constructor.
CalcBoundingBox Calculate the bounding box.
SetShape Set the shape of the object.

api Class API



class RectEllipse(XYObjectMixin, LineAndFillMixin, DrawObject)

A RectEllipse draw object.


Methods



__init__(self, XY, WH, LineColor = "Black", LineStyle = "Solid", LineWidth = 1, FillColor = None, FillStyle = "Solid", InForeground = False)

Default class constructor.

Parameters:
  • XY – the (x, y) coordinate of the corner of RectEllipse, or a 2-tuple, or a (2,) NumPy array
  • WH – a tuple with the Width and Height for the object
  • LineColor – see SetColor
  • LineStyle – see SetLineStyle
  • LineWidth – see SetLineWidth
  • FillColor – see SetColor
  • FillStyle – see SetFillStyle
  • InForeground – put object in foreground


CalcBoundingBox(self)

Calculate the bounding box.



SetShape(self, XY, WH)

Set the shape of the object.

Parameters:
  • XY – takes a 2-tuple, or a (2,) NumPy array of point coordinates
  • WH – a tuple with the Width and Height for the object