iOS & macOS Charting Documentation - SciChart iOS & macOS Charts SDK v4.x

ISCITradingAnnotation

@protocol ISCITradingAnnotation <NSObject>

@required

/// Sets the listener for annotation creation events.
- (void)setAnnotationCreatedListener:(id<ISCIAnnotationCreatedListener>)listener;

/// Returns YES if the annotation has been fully created.
- (BOOL)isCreated;

/// Appends a new base point (x, y).
- (void)setBasePointWithX:(id<ISCIComparable>)x y:(id<ISCIComparable>)y;

/// Updates the base point at the given index to a new (x, y).
- (void)updateBasePointAtIndex:(NSInteger)index x:(id<ISCIComparable>)x y:(id<ISCIComparable>)y;

/// Returns base-point positions in data-space.
- (NSArray<SCIComparablePoint *> *)getBaseDataValues;

/**
 * Returns pixel-space base points.
 * Respects horizontal vs. vertical axis orientation.
 */
- (NSArray<SCIComparablePoint *> *)getBasePoints;

/// Re-applies cached base points after a timeframe change.
- (void)setCachedBasePoints;

@end

Undocumented