public abstract class

ChartAnnotationPosition

extends Object
java.lang.Object
   ↳ com.artfulbits.aiCharts.Annotations.ChartAnnotationPosition

Class Overview

Represents annotation position class that determines annotation's location on chart. Instance of this class is considered to be passed to setPosition(ChartAnnotationPosition).

Summary

Public Constructors
ChartAnnotationPosition()
Sole constructor.
Public Methods
static ChartAnnotationPosition absolute(PointF point)
Uses absolute annotation positioning relatively to chart.
static ChartAnnotationPosition absoluteByArea(PointF point, String areaName)
Uses absolute annotation positioning relatively to area.
static ChartAnnotationPosition absoluteByLegend(PointF point, String legendName)
Uses annotation positioning relatively to legend.
static ChartAnnotationPosition relativeToArea(String areaName, double x, double y)
Uses annotation positioning relatively series point.
static ChartAnnotationPosition relativeToSeries(String seriesName, int pointIndex)
Uses annotation positioning relatively series point.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ChartAnnotationPosition ()

Sole constructor. (For invocation by subclass constructors, typically implicit.)

Public Methods

public static ChartAnnotationPosition absolute (PointF point)

Uses absolute annotation positioning relatively to chart.

Parameters
point target point that will be used to determine final annotation's position.
Returns

public static ChartAnnotationPosition absoluteByArea (PointF point, String areaName)

Uses absolute annotation positioning relatively to area.

Parameters
point target point that will be used to determine final annotation's position on area.
areaName name of area that will be hosting annotation.
Returns

public static ChartAnnotationPosition absoluteByLegend (PointF point, String legendName)

Uses annotation positioning relatively to legend.

Parameters
point target point that will be used to determine final annotation's position on area.
legendName name of legend that will be hosting annotation.
Returns

public static ChartAnnotationPosition relativeToArea (String areaName, double x, double y)

Uses annotation positioning relatively series point.

Parameters
areaName name of area that contain corresponding point.
x X coordinate
y X coordinate
Returns

public static ChartAnnotationPosition relativeToSeries (String seriesName, int pointIndex)

Uses annotation positioning relatively series point.

Parameters
seriesName name of series that contain corresponding point.
pointIndex index of target point that should be annotated.
Returns