iOS Charting Documentation - SciChart iOS Charts SDK v3.x

ISCIPathDrawingContext

@protocol ISCIPathDrawingContext <NSObject>

Defines the interface for path based rendering on ISCIRenderContext2D.

  • Starts the context at specified x, y coordinate with specified path color.

    Declaration

    Objective-C

    - (id<ISCIPathDrawingContext>)beginWithColor:(id<ISCIPathColor>)color
                                               x:(float)x
                                               y:(float)y;

    Swift

    func begin(with color: ISCIPathColor!, x: Float, y: Float) -> ISCIPathDrawingContext!

    Parameters

    color

    The pen or brush for the drawing operation.

    x

    The x-coordinate in pixels.

    y

    The y-coordinate in pixels.

    Return Value

    The ISCIPathDrawingContext instance, to allow fluent API.

  • Moves the context to the specified x, y coordinate.

    Declaration

    Objective-C

    - (id<ISCIPathDrawingContext>)moveToX:(float)x y:(float)y;

    Swift

    func moveTo(x: Float, y: Float) -> ISCIPathDrawingContext!

    Parameters

    x

    The x-coordinate in pixels.

    y

    The y-coordinate in pixels.

    Return Value

    The ISCIPathDrawingContext instance, to allow fluent API.

  • Moves the context to multiple x, y coordinates.

    Declaration

    Objective-C

    - (id<ISCIPathDrawingContext>)moveToPoints:(float *)points
                                    startIndex:(int)startIndex
                                         count:(int)count;

    Swift

    func move(toPoints points: UnsafeMutablePointer<Float>!, start startIndex: Int32, count: Int32) -> ISCIPathDrawingContext!

    Parameters

    points

    The array with x, y coordinates in pixels.

    startIndex

    The start index in points array to draw.

    count

    The amount of points to draw.

    Return Value

    The ISCIPathDrawingContext instance, to allow fluent API.

  • Ends the segment, flushing to render target.

    Declaration

    Objective-C

    - (void)end;

    Swift

    func end()