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

ISCIAxisTitleRenderer

@protocol ISCIAxisTitleRenderer <ISCIDrawable, ISCIAxisRendererCore,
                                 ISCIAxisLayoutChangeListener>

Specifies interface for renderer which is responsible for drawing of axis title.

  • Gets desired size for currently attached axis.

    Declaration

    Objective-C

    @property (nonatomic, readonly) CGSize desiredSize;

    Swift

    var desiredSize: CGSize { get }
  • Measure required size for currently attached axis.

    Declaration

    Objective-C

    - (void)measure;

    Swift

    func measure()
  • Performs layout of axis renderer in specified bounds.

    Declaration

    Objective-C

    - (void)onLayout:(nonnull id<ISCIAssetManager2D>)assetManager
              bounds:(CGRect)bounds;

    Swift

    func onLayout(_ assetManager: ISCIAssetManager2D, bounds: CGRect)

    Parameters

    assetManager

    ISCIAssetManager2D instance which manages assets for current ISCIRenderSurface instance.

    bounds

    Bounds in pixels where axis should be drawn.