iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x
ISCIPointMarker
@protocol ISCIPointMarker <ISCIInvalidatableElement, ISCIAttachable,
ISCIRenderSurfaceChangedListener>
Specifies protocol for rendering point markers. A point marker is something which is displayed at data points.
-
Gets the
ISCIRenderableSeries
, which thisISCIPointMarker
instance is associated with.Declaration
Objective-C
@property (nonatomic, weak, nullable) id<ISCIRenderableSeries> renderableSeries;
Swift
weak var renderableSeries: ISCIRenderableSeries? { get set }
Return Value
Currently attached
ISCIRenderableSeries
instance. -
Defines the stroke style (outline) of the PointMarker.
Declaration
Objective-C
@property (nonatomic, strong) SCIPenStyle *_Nonnull strokeStyle;
Swift
var strokeStyle: SCIPenStyle { get set }
-
Defines the fill style (fill) of the PointMarker.
Declaration
Objective-C
@property (nonatomic, strong) SCIBrushStyle *_Nonnull fillStyle;
Swift
var fillStyle: SCIBrushStyle { get set }
-
Defines the PointMarker drawing size in points on screen.
Declaration
Objective-C
@property (nonatomic) CGSize size;
Swift
var size: CGSize { get set }
-
Renders the PointMarker at specified points with fill and stroke. Each point is a coordinate in the centre of the
ISCIPointMarker
.Declaration
Objective-C
- (void)onDrawWithContext:(nonnull id<ISCIRenderContext2D>)renderContext assetManager:(nonnull id<ISCIAssetManager2D>)assetManager strokeStyle:(nonnull SCIPenStyle *)strokeStyle fillStyle:(nonnull SCIBrushStyle *)fillStyle opacity:(float)opacity points:(nonnull float *)points startIndex:(int)startIndex count:(int)count;
Swift
func onDraw(with renderContext: ISCIRenderContext2D, assetManager: ISCIAssetManager2D, stroke strokeStyle: SCIPenStyle, fill fillStyle: SCIBrushStyle, opacity: Float, points: UnsafeMutablePointer<Float>, start startIndex: Int32, count: Int32)
Parameters
renderContext
The
ISCIRenderContext2D
instance to draw to.assetManager
The
ISCIAssetManager2D
instance which allows to create assets for drawing on render context.strokeStyle
Stroke
SCIPenStyle
instance.fillStyle
Fill
SCIBrushStyle
instance.opacity
The opacity of point marker.
points
Array of points to draw
[x0, y0, x1, y1, x2, y2 ...]
.startIndex
Start index of values in the array which need to be drawn.
count
The number of values in the array to process.