.. include:: headings.inc .. currentmodule:: lib.floatcanvas.FloatCanvas .. highlight:: python .. _lib.floatcanvas.FloatCanvas.Arc: ========================================================================================================================================== |phoenix_title| **Arc** ========================================================================================================================================== | |class_hierarchy| Inheritance Diagram ===================================== Inheritance diagram for class **Arc** .. raw:: html

Inheritance diagram of Arc

| |super_classes| Known Superclasses ================================== :class:`lib.floatcanvas.FloatCanvas.DrawObject`, :class:`lib.floatcanvas.FloatCanvas.LineAndFillMixin`, :class:`lib.floatcanvas.FloatCanvas.XYObjectMixin` | |method_summary| Methods Summary ================================ ================================================================================ ================================================================================ :meth:`~lib.floatcanvas.FloatCanvas.Arc.__init__` Draws an arc of a circle, centered on point CenterXY, from :meth:`~lib.floatcanvas.FloatCanvas.Arc.CalcBoundingBox` :meth:`~lib.floatcanvas.FloatCanvas.Arc.Move` Move(Delta): moves the object by delta, where delta is a ================================================================================ ================================================================================ | |api| Class API =============== .. class:: Arc(XYObjectMixin, LineAndFillMixin, DrawObject) .. method:: __init__(self, StartXY, EndXY, CenterXY, LineColor = "Black", LineStyle = "Solid", LineWidth = 1, FillColor = None, FillStyle = "Solid", InForeground = False) Draws an arc of a circle, centered on point CenterXY, from the first point (StartXY) to the second (EndXY). The arc is drawn in an anticlockwise direction from the start point to the end point. Parameters: StartXY : start point EndXY : end point CenterXY: center point LineColor = "Black", LineStyle = "Solid", LineWidth = 1, FillColor = None, FillStyle = "Solid", InForeground = False): .. method:: CalcBoundingBox(self) .. method:: Move(self, Delta ) Move(Delta): moves the object by delta, where delta is a (dx,dy) pair. Ideally a Numpy array of shape (2,)