Summ:  Constr. Methods    Details:  Constr. Methods      Class:  Prev Next
com.artfulbits.aiCharts.Annotations
Class ChartAnnotationPosition

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

Declaration: public abstract class ChartAnnotationPosition extends Object

 

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

 

Since: 1.0

 

 

Constructors Summary
ChartAnnotationPosition()
    
Sole constructor.

 

 

Methods Summary
static ChartAnnotationPosition absolute(android.graphics.PointF point)
    
Uses absolute annotation positioning relatively to chart.
static ChartAnnotationPosition absoluteByArea(android.graphics.PointF point, java.lang.String areaName)
    
Uses absolute annotation positioning relatively to area.
static ChartAnnotationPosition absoluteByLegend(android.graphics.PointF point, java.lang.String legendName)
    
Uses annotation positioning relatively to legend.
static ChartAnnotationPosition relativeToSeries(java.lang.String seriesName, int pointIndex)
    
Uses annotation positioning relatively series point.

 

Methods inherited from class: java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

 

 

 

ChartAnnotationPosition

 

public ChartAnnotationPosition( )

 

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

 

Since: 1.0

 

 

 

 

absolute

 

public static ChartAnnotationPosition absolute( android.graphics.PointF point)

 

Uses absolute annotation positioning relatively to chart.

 

Parameters:
point-
target point that will be used to determine final annotation's position.
Returns:
instance of ChartAnnotationPosition class that should be passed to annotation's ChartAnnotation.setPosition(ChartAnnotationPosition) .

 

Since: 1.0

 

 

 

absoluteByArea

 

public static ChartAnnotationPosition absoluteByArea( android.graphics.PointF point,
java.lang.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:
instance of ChartAnnotationPosition class that should be passed to annotation's ChartAnnotation.setPosition(ChartAnnotationPosition).

 

Since: 1.0

 

 

 

absoluteByLegend

 

public static ChartAnnotationPosition absoluteByLegend( android.graphics.PointF point,
java.lang.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:
instance of ChartAnnotationPosition class that should be passed to annotation's ChartAnnotation.setPosition(ChartAnnotationPosition).

 

Since: 1.0

 

 

 

relativeToSeries

 

public static ChartAnnotationPosition relativeToSeries( java.lang.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:
instance of ChartAnnotationPosition class that should be passed to annotation's ChartAnnotation.setPosition(ChartAnnotationPosition).

 

Since: 1.0

 

 

© 2005 - 2010 ArtfulBits. All rights reserved.