Draws a circle
wx.lib.floatcanvas.FCObjects.DrawObject
, wx.lib.floatcanvas.FCObjects.LineAndFillMixin
, wx.lib.floatcanvas.FCObjects.XYObjectMixin
Default class constructor. |
|
Calculate the bounding box of the object. |
|
Set the diameter of the object |
Circle
(XYObjectMixin, LineAndFillMixin, DrawObject)¶Draws a circle
__init__
(self, XY, Diameter, LineColor = "Black", LineStyle = "Solid", LineWidth = 1, FillColor = None, FillStyle = "Solid", InForeground = False)¶Default class constructor.
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
Diameter (integer) – the diameter for the object