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

SCIAnnotationCoordinates

@interface SCIAnnotationCoordinates : NSObject <ISCICleanable>

Used internally by the Annotation API. Class to hold transformed coordinates for placement of an annotation on the chart.

  • pt1

    Defines the coordinates for X1, Y1 values.

    Declaration

    Objective-C

    @property (nonatomic) CGPoint pt1;

    Swift

    var pt1: CGPoint { get set }
  • pt2

    Defines the coordinates for X2, Y2 values.

    Declaration

    Objective-C

    @property (nonatomic) CGPoint pt2;

    Swift

    var pt2: CGPoint { get set }
  • Offsets provided by ISCICoordinateCalculator for X-Axis and Y-Axis.

    Declaration

    Objective-C

    @property (nonatomic) CGPoint offset;

    Swift

    var offset: CGPoint { get set }
  • Rect with bounds for parent annotation surface.

    Declaration

    Objective-C

    @property (nonatomic) CGRect annotationsSurfaceBounds;

    Swift

    var annotationsSurfaceBounds: CGRect { get set }
  • Checks if the point is within the bound of the current SCIAnnotationCoordinates

    Declaration

    Objective-C

    - (BOOL)containsPoint:(CGPoint)point;

    Swift

    func contains(_ point: CGPoint) -> Bool

    Parameters

    point

    The point to test.

    Return Value

    YES - if the point is within bounds.