XuniChartAnnotation Class Reference

Inherits from NSObject
Declared in ChartAnnotation.h

Overview

The FlexChart annotation class.

XuniChartAnnotation Class.

Other Methods

  attachment

Gets or sets the attachment of the annotation.

@property (nonatomic) XuniChartAnnotationAttachment attachment

Discussion

Gets or sets the attachment of the annotation.

Declared In

ChartAnnotation.h

  width

Gets or sets the width of the annotation.

@property (nonatomic) double width

Discussion

Gets or sets the width of the annotation.

Declared In

ChartAnnotation.h

  height

Gets or sets the height of the annotation.

@property (nonatomic) double height

Discussion

Gets or sets the height of the annotation.

Declared In

ChartAnnotation.h

  isVisible

Gets or sets whether annotation is visible.

@property (nonatomic) BOOL isVisible

Discussion

Gets or sets whether annotation is visible.

Declared In

ChartAnnotation.h

  offset

Gets or sets the offset of the annotation from the point.

@property (nonatomic) XuniPoint *offset

Discussion

Gets or sets the offset of the annotation from the point.

Declared In

ChartAnnotation.h

  position

Gets or sets the position of the annotation relative to the point.

@property (nonatomic) XuniChartAnnotationPosition position

Discussion

Gets or sets the position of the annotation relative to the point.

Declared In

ChartAnnotation.h

  point

Gets or sets the point of the annotation. The point coordinates depend on the Attachment property.

@property (nonatomic) XuniPoint *point

Discussion

Gets or sets the point of the annotation. The point coordinates depend on the Attachment property.

Declared In

ChartAnnotation.h

  pointIndex

Gets or sets the point index of the annotation. Applies only when the Attachment property is PointIndex.

@property (nonatomic) int pointIndex

Discussion

Gets or sets the point index of the annotation. Applies only when the Attachment property is PointIndex.

Declared In

ChartAnnotation.h

  seriesIndex

Gets or sets the series index of the annotation. Applies only when the Attachment property is DataIndex.

@property (nonatomic) int seriesIndex

Discussion

Gets or sets the series index of the annotation. Applies only when the Attachment property is DataIndex.

Declared In

ChartAnnotation.h

  tooltipText

Gets or sets the tooltip tex of the annotation.

@property (nonatomic) NSString *tooltipText

Discussion

Gets or sets the tooltip tex of the annotation.

Declared In

ChartAnnotation.h

– initWithChart:

Initialize an instance of class XuniChartAnnotation.

- (instancetype)initWithChart:(FlexChart *)chart

Parameters

chart

the FlexChart to init with.

Return Value

an instance of class XuniChartAnnotation.

Discussion

Initialize an instance of class XuniChartAnnotation.

Declared In

ChartAnnotation.h

Extension Methods

  path

Gets or sets the path.

@property struct CGPath *path

Discussion

Gets or sets the path.

Declared In

ChartAnnotationPrivate.h

  annoTransform

Gets or sets the transform.

@property CGAffineTransform annoTransform

Discussion

Gets or sets the transform.

Declared In

ChartAnnotationPrivate.h

– isNeedRender:

Judge if need to render the annotation.

- (BOOL)isNeedRender:(XuniRenderEngine *)engine

Parameters

engine

the render engine.

Return Value

return whether need to render.

Discussion

Judge if need to render the annotation.

Declared In

ChartAnnotationPrivate.h

– render:

Render the annotation.

- (BOOL)render:(XuniRenderEngine *)engine

Parameters

engine

the render engine.

Return Value

return the render result.

Discussion

Render the annotation.

Declared In

ChartAnnotationPrivate.h

– getAbsolutePoint:position:attachment:engine:

Get the absolute point of the annotation.

- (XuniPoint *)getAbsolutePoint:(XuniPoint *)point position:(XuniChartAnnotationPosition)position attachment:(XuniChartAnnotationAttachment)attachment engine:(XuniRenderEngine *)engine

Parameters

point

the point of the annotation.

position

the position of the annotation relative to the point.

attachment

the attachment of the annotation.

engine

the render engine.

Return Value

return the absolute point.

Discussion

Get the absolute point of the annotation.

Declared In

ChartAnnotationPrivate.h

– isContains:

Judge if annotation contain the point.

- (BOOL)isContains:(XuniPoint *)point

Parameters

point

the point.

Return Value

return a boolean value.

Discussion

Judge if annotation contain the point.

Declared In

ChartAnnotationPrivate.h

– isNeedClipRect

Judge if need to set clipped rect.

- (BOOL)isNeedClipRect

Return Value

return a boolean value.

Discussion

Judge if need to set clipped rect.

Declared In

ChartAnnotationPrivate.h