com.googlecode.charts4j
Class AxisLabelsFactory

java.lang.Object
  extended by com.googlecode.charts4j.AxisLabelsFactory

public final class AxisLabelsFactory
extends Object

Static factory class for AxisLabels.

Author:
Julien Chastang (julien.c.chastang at gmail dot com)

Method Summary
static AxisLabels newAxisLabels(List<? extends String> labels)
          Labels will be placed uniformly along the axis.
static AxisLabels newAxisLabels(List<? extends String> labels, List<? extends Number> positions)
          Labels are placed on the axis according to the positions argument.
static AxisLabels newAxisLabels(String... labels)
          Labels will be placed uniformly along the axis.
static AxisLabels newAxisLabels(String label, double position)
          This method is useful for placing a label along the axis at a specific location.
static AxisLabels newNumericAxisLabels(double... values)
          This method takes an arbitrary list of numbers that will be placed proportionally along the axis.
static AxisLabels newNumericAxisLabels(List<? extends Number> values)
          This method takes an arbitrary list of numbers that will be placed proportionally along the axis.
static AxisLabels newNumericRangeAxisLabels(double minRange, double maxRange)
          Define a range on the axis.
static RadialAxisLabels newRadialAxisLabels(List<? extends String> labels)
          Labels will be placed uniformly around a radar chart.
static RadialAxisLabels newRadialAxisLabels(String... labels)
          Labels will be placed uniformly around a radar chart.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newAxisLabels

public static AxisLabels newAxisLabels(List<? extends String> labels,
                                       List<? extends Number> positions)
Labels are placed on the axis according to the positions argument. Positions must be expressed between 0 and 100 consistent with the rest of this API.

Parameters:
labels - Labels that will be displayed along side the axis. Cannot be null or contain a null.
positions - Positions of labels expressed between 0 and 100.
Returns:
AxisLabels

newAxisLabels

public static AxisLabels newAxisLabels(List<? extends String> labels)
Labels will be placed uniformly along the axis.

Parameters:
labels - Labels that will be displayed along side the axis.
Returns:
AxisLabels

newAxisLabels

public static AxisLabels newAxisLabels(String... labels)
Labels will be placed uniformly along the axis.

Parameters:
labels - Labels that will be displayed along side the axis.
Returns:
AxisLabels

newRadialAxisLabels

public static RadialAxisLabels newRadialAxisLabels(List<? extends String> labels)
Labels will be placed uniformly around a radar chart.

Parameters:
labels - Labels that will be displayed around a radar chart.
Returns:
RadialAxisLabels
See Also:
RadarChart

newRadialAxisLabels

public static RadialAxisLabels newRadialAxisLabels(String... labels)
Labels will be placed uniformly around a radar chart.

Parameters:
labels - Labels that will be displayed around a radar chart.
Returns:
RadialAxisLabels
See Also:
RadarChart

newAxisLabels

public static AxisLabels newAxisLabels(String label,
                                       double position)
This method is useful for placing a label along the axis at a specific location.

Parameters:
label - Label that will be displayed along side the axis. Cannot be null.
position - Position of label. Must be between 0 and 100.
Returns:
AxisLabels

newNumericAxisLabels

public static AxisLabels newNumericAxisLabels(List<? extends Number> values)
This method takes an arbitrary list of numbers that will be placed proportionally along the axis.

Parameters:
values - Values along the start and end range. Cannot be null or contain a null.
Returns:
AxisLabels

newNumericAxisLabels

public static AxisLabels newNumericAxisLabels(double... values)
This method takes an arbitrary list of numbers that will be placed proportionally along the axis.

Parameters:
values - Values along the start and end range. Cannot be null or contain a null.
Returns:
AxisLabels

newNumericRangeAxisLabels

public static AxisLabels newNumericRangeAxisLabels(double minRange,
                                                   double maxRange)
Define a range on the axis. Values are evenly spaced between the min and max range.

Parameters:
minRange - The start of the range.
maxRange - The end of the range.
Returns:
AxisLabels