ArcSegment

open class ArcSegment : ShapeSegment

Represents a shape segment in the form of arc. This class inherits ShapeSegment.

  • Draws this ArcSegment at the specified canvas.

    Declaration

    Swift

    open override func draw(_ canvas: Canvas)

    Parameters

    canvas

    The canvas to draw this ArcSegment at.

  • Adds this ArcSegment to the specified path.

    Declaration

    Swift

    open override func addToPath(_ path: GraphicsPath)

    Parameters

    path

    The path to add this ArcSegment to.

  • Loads the specifications of this ArcSegment from the specified XmlElement.

    Declaration

    Swift

    open override func loadFromXml(_ element: XmlElement?)

    Parameters

    element

    The XmlElement to load the ArcSegment from. The value can be nil.

  • Checks if this ArcSegment is full ellipse.

    Declaration

    Swift

    open func isFullEllipse() -> Bool

    Return Value

    true if theArcSegment is full ellipse; otherwise false.

  • x

    The x-coordinate of the bounding rectangle of the ellipse this ArcSegment is taken from.

    Declaration

    Swift

    open var x: Double
  • y

    The y-coordinate of the bounding rectangle of the ellipse this ArcSegment is taken from.

    Declaration

    Swift

    open var y: Double
  • w

    The width of the bounding rectangle of the ellipse this ArcSegment is taken from.

    Declaration

    Swift

    open var w: Double
  • h

    The height of the bounding rectangle of the ellipse this ArcSegment is taken from.

    Declaration

    Swift

    open var h: Double
  • a

    The start angle in the ellipse this ArcSegment is taken from.

    Declaration

    Swift

    open var a: Double
  • s

    The sweeping angle in the ellipse this ArcSegment is taken from.

    Declaration

    Swift

    open var s: Double