ShapeSegment

open class ShapeSegment

Represents a shape segment.

  • Draws this ShapeSegment at the specified canvas.

    Declaration

    Swift

    open func draw(_ canvas: Canvas)

    Parameters

    canvas

    The canvas onto which the ShapeSegment is drawn.

  • Adds this ShapeSegment to the specified path.

    Declaration

    Swift

    open func addToPath(_ path: GraphicsPath)

    Parameters

    path

    The GraphicsPath to add the segment to.

  • Loads this ShapeSegment from the specified XML element.

    Declaration

    Swift

    open func loadFromXml(_ element: XmlElement?)

    Parameters

    element

    The XmlElement, which contains this diagram node.