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

ISCIAdornerProvider

@protocol ISCIAdornerProvider <NSObject>

Defines interface to the Adorner Provider which draws adorners for the ISCIAnnotation instance.

  • Checks whether one of the current adorner provider resizing grip is hit at passed in point.

    Declaration

    Objective-C

    - (BOOL)isHitAt:(CGPoint)point;

    Swift

    func isHit(at point: Any!) -> Bool

    Return Value

    Returns YES if one of the resizing grips is hit, otherwise - NO.

  • Updates the adorner provider with latest values.

    Declaration

    Objective-C

    - (void)updateAdorner;

    Swift

    func updateAdorner()
  • Draws the adorner within the passed-in rectangle. Called when the SCIAdornerLayer -[SCIAdornerLayer drawRect:] method is called.

    Declaration

    Objective-C

    - (void)onDrawAdornerInRect:(CGRect)rect;

    Swift

    func onDrawAdorner(inRect rect: Any!)

    Parameters

    rect

    The portion of the view’s bounds that needs to be updated.

  • Called when drag operation starts on ISCIAdornerLayer.

    Declaration

    Objective-C

    - (BOOL)onDragStartedAt:(CGPoint)startPoint
                 relativeTo:(id<ISCIAdornerLayer>)adornerLayer;

    Parameters

    startPoint

    The x-y coordinate in pixels relative to parent ISCIAdornerLayer.

    adornerLayer

    The ISCIAdornerLayer instance.

    Return Value

    True if drag operation was handled and this adorner provider needs to receive notifications about future drag operations

  • Called when this adorner provider is dragged.

    Declaration

    Objective-C

    - (BOOL)onDragByXDelta:(CGFloat)xDelta yDelta:(CGFloat)yDelta;

    Swift

    func onDrag(byXDelta xDelta: Any!, yDelta: Any!) -> Bool

    Parameters

    xDelta

    The horizontal offset in pixels.

    yDelta

    The vertical offset in pixels,

    Return Value

    YES - if drag operation was handled and this adorner provider needs to receive notifications about future drag operations.

  • Called when drag operation ends.

    Declaration

    Objective-C

    - (void)onDragEnded;

    Swift

    func onDragEnded()