XuniChartAnnotation Class Reference
Inherits from | NSObject |
---|---|
Declared in | ChartAnnotation.h |
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
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
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 |
|
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
– 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