Phoenix Logo

phoenix_title wx.lib.floatcanvas.FCObjects.Circle

Draws a circle


class_hierarchy Class Hierarchy

Inheritance diagram for class Circle:


method_summary Methods Summary

__init__ Default class constructor.
CalcBoundingBox Calculate the bounding box of the object.
SetDiameter Set the diameter of the object

api Class API



class Circle(XYObjectMixin, LineAndFillMixin, DrawObject)

Draws a circle


Methods



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

Default class constructor.

Parameters:
  • XY – the (x, y) coordinate of the center of the circle, or a 2-tuple, or a (2,) NumPy array
  • Diameter (integer) – the diameter for the object
  • LineColor – see SetColor
  • LineStyle – see SetLineStyle
  • LineWidth – see SetLineWidth
  • FillColor – see SetColor
  • FillStyle – see SetFillStyle
  • InForeground (boolean) – should object be in foreground


CalcBoundingBox(self)

Calculate the bounding box of the object.



SetDiameter(self, Diameter)

Set the diameter of the object

Parameters:Diameter (integer) – the diameter for the object