org.achartengine.renderer
Class XYMultipleSeriesRenderer

java.lang.Object
  extended by org.achartengine.renderer.DefaultRenderer
      extended by org.achartengine.renderer.XYMultipleSeriesRenderer
All Implemented Interfaces:
java.io.Serializable

public class XYMultipleSeriesRenderer
extends DefaultRenderer

Multiple XY series renderer.

See Also:
Serialized Form

Nested Class Summary
static class XYMultipleSeriesRenderer.Orientation
          An enum for the XY chart orientation of the X axis.
 
Field Summary
 
Fields inherited from class org.achartengine.renderer.DefaultRenderer
BACKGROUND_COLOR, NO_COLOR, TEXT_COLOR
 
Constructor Summary
XYMultipleSeriesRenderer()
           
XYMultipleSeriesRenderer(int scaleNumber)
           
 
Method Summary
 void addTextLabel(double x, java.lang.String text)
          Deprecated. use addXTextLabel instead
 void addXTextLabel(double x, java.lang.String text)
          Adds a new text label for the specified X axis value.
 void addYTextLabel(double y, java.lang.String text)
          Adds a new text label for the specified Y axis value.
 void addYTextLabel(double y, java.lang.String text, int scale)
          Adds a new text label for the specified Y axis value.
 void clearTextLabels()
          Deprecated. use clearXTextLabels instead
 void clearXTextLabels()
          Clears the existing text labels on the X axis.
 void clearYTextLabels()
          Clears the existing text labels on the Y axis.
 void clearYTextLabels(int scale)
          Clears the existing text labels on the Y axis.
 float getAxisTitleTextSize()
          Returns the axis title text size.
 double getBarSpacing()
          Returns the spacing between bars, in bar charts.
 double getBarsSpacing()
          Deprecated. use getBarSpacing instead
 float getBarWidth()
          Returns the constant bar chart item width in pixels.
 int getGridColor()
          Returns the grid color.
 double[] getInitialRange()
          Returns the initial range.
 double[] getInitialRange(int scale)
          Returns the initial range.
 java.text.NumberFormat getLabelFormat()
          Returns the number format for displaying labels.
 int getMarginsColor()
          Returns the margins color.
 XYMultipleSeriesRenderer.Orientation getOrientation()
          Returns the current orientation of the chart X axis.
 double[] getPanLimits()
          Returns the pan limits.
 float getPointSize()
          Returns the size of the points, for charts displaying points.
 int getScalesCount()
           
 double getXAxisMax()
          Returns the end value of the X axis range.
 double getXAxisMax(int scale)
          Returns the end value of the X axis range.
 double getXAxisMin()
          Returns the start value of the X axis range.
 double getXAxisMin(int scale)
          Returns the start value of the X axis range.
 int getXLabels()
          Returns the approximate number of labels for the X axis.
 android.graphics.Paint.Align getXLabelsAlign()
          Returns the X axis labels alignment.
 float getXLabelsAngle()
          Returns the rotation angle of labels for the X axis.
 int getXLabelsColor()
          Returns the X axis labels color.
 float getXLabelsPadding()
          Returns the X labels padding.
 java.lang.String getXTextLabel(java.lang.Double x)
          Returns the X axis text label at the specified X axis value.
 java.lang.Double[] getXTextLabelLocations()
          Returns the X text label locations.
 java.lang.String getXTitle()
          Returns the title for the X axis.
 android.graphics.Paint.Align getYAxisAlign(int scale)
           
 double getYAxisMax()
          Returns the end value of the Y axis range.
 double getYAxisMax(int scale)
          Returns the end value of the Y axis range.
 double getYAxisMin()
          Returns the start value of the Y axis range.
 double getYAxisMin(int scale)
          Returns the start value of the Y axis range.
 int getYLabels()
          Returns the approximate number of labels for the Y axis.
 android.graphics.Paint.Align getYLabelsAlign(int scale)
          Returns the Y axis labels alignment.
 float getYLabelsAngle()
          Returns the rotation angle of labels for the Y axis.
 int getYLabelsColor(int scale)
          Returns the Y axis labels color.
 float getYLabelsPadding()
          Returns the Y labels padding.
 float getYLabelsVerticalPadding()
          Returns the Y labels vertical padding.
 java.lang.String getYTextLabel(java.lang.Double y)
          Returns the Y axis text label at the specified Y axis value.
 java.lang.String getYTextLabel(java.lang.Double y, int scale)
          Returns the Y axis text label at the specified Y axis value.
 java.lang.Double[] getYTextLabelLocations()
          Returns the Y text label locations.
 java.lang.Double[] getYTextLabelLocations(int scale)
          Returns the Y text label locations.
 java.lang.String getYTitle()
          Returns the title for the Y axis.
 java.lang.String getYTitle(int scale)
          Returns the title for the Y axis.
 double getZoomInLimitX()
          Returns the zoom in limit permitted in the axis X.
 double getZoomInLimitY()
          Returns the zoom in limit permitted in the axis Y.
 double[] getZoomLimits()
          Returns the zoom limits.
 void initAxesRange(int scales)
           
 void initAxesRangeForScale(int i)
           
 boolean isInitialRangeSet()
           
 boolean isInitialRangeSet(int scale)
          Returns if the initial range is set.
 boolean isMaxXSet()
          Returns if the maximum X value was set.
 boolean isMaxXSet(int scale)
          Returns if the maximum X value was set.
 boolean isMaxYSet()
          Returns if the maximum Y value was set.
 boolean isMaxYSet(int scale)
          Returns if the maximum Y value was set.
 boolean isMinXSet()
          Returns if the minimum X value was set.
 boolean isMinXSet(int scale)
          Returns if the minimum X value was set.
 boolean isMinYSet()
          Returns if the minimum Y value was set.
 boolean isMinYSet(int scale)
          Returns if the minimum Y value was set.
 boolean isPanEnabled()
          Returns the enabled state of the pan on at least one axis.
 boolean isPanXEnabled()
          Returns the enabled state of the pan on X axis.
 boolean isPanYEnabled()
          Returns the enabled state of the pan on Y axis.
 boolean isXRoundedLabels()
          If X axis labels should be rounded.
 boolean isZoomEnabled()
          Returns the enabled state of the zoom on at least one axis.
 boolean isZoomXEnabled()
          Returns the enabled state of the zoom on X axis.
 boolean isZoomYEnabled()
          Returns the enabled state of the zoom on Y axis.
 void removeXTextLabel(double x)
          Removes text label for the specified X axis value.
 void removeYTextLabel(double y)
          Removes text label for the specified Y axis value.
 void removeYTextLabel(double y, int scale)
          Removes text label for the specified Y axis value.
 void setAxisTitleTextSize(float textSize)
          Sets the axis title text size.
 void setBarSpacing(double spacing)
          Sets the spacing between bars, in bar charts.
 void setBarWidth(float width)
          Sets the bar chart item constant width in pixels.
 void setChartValuesTextSize(float textSize)
          Deprecated. use SimpleSeriesRenderer.setChartValuesTextSize() instead
 void setDisplayChartValues(boolean display)
          Deprecated. use SimpleSeriesRenderer.setDisplayChartValues() instead
 void setGridColor(int color)
          Sets the color of the grid.
 void setInitialRange(double[] range)
          Sets the axes initial range values.
 void setInitialRange(double[] range, int scale)
          Sets the axes initial range values.
 void setLabelFormat(java.text.NumberFormat format)
          Sets the number format for displaying labels.
 void setMarginsColor(int color)
          Sets the color of the margins.
 void setOrientation(XYMultipleSeriesRenderer.Orientation orientation)
          Sets the current orientation of the chart X axis.
 void setPanEnabled(boolean enabled)
          Override DefaultRenderer.setPanEnabled(boolean) so it can be delegated to setPanEnabled(boolean, boolean).
 void setPanEnabled(boolean enabledX, boolean enabledY)
          Sets the enabled state of the pan.
 void setPanLimits(double[] panLimits)
          Sets the pan limits as an array of 4 values.
 void setPointSize(float size)
          Sets the size of the points, for charts displaying points.
 void setRange(double[] range)
           
 void setRange(double[] range, int scale)
          Sets the axes range values.
 void setXAxisMax(double max)
          Sets the end value of the X axis range.
 void setXAxisMax(double max, int scale)
          Sets the end value of the X axis range.
 void setXAxisMin(double min)
          Sets the start value of the X axis range.
 void setXAxisMin(double min, int scale)
          Sets the start value of the X axis range.
 void setXLabels(int xLabels)
          Sets the approximate number of labels for the X axis.
 void setXLabelsAlign(android.graphics.Paint.Align align)
          Sets the X axis labels alignment.
 void setXLabelsAngle(float angle)
          Sets the rotation angle (in degrees) of labels for the X axis.
 void setXLabelsColor(int color)
          Sets the X axis labels color.
 void setXLabelsPadding(float padding)
          Sets the X labels padding
 void setXRoundedLabels(boolean rounded)
          Sets if X axis rounded time values to be used.
 void setXTitle(java.lang.String title)
          Sets the title for the X axis.
 void setYAxisAlign(android.graphics.Paint.Align align, int scale)
           
 void setYAxisMax(double max)
          Sets the end value of the Y axis range.
 void setYAxisMax(double max, int scale)
          Sets the end value of the Y axis range.
 void setYAxisMin(double min)
          Sets the start value of the Y axis range.
 void setYAxisMin(double min, int scale)
          Sets the start value of the Y axis range.
 void setYLabels(int yLabels)
          Sets the approximate number of labels for the Y axis.
 void setYLabelsAlign(android.graphics.Paint.Align align)
           
 void setYLabelsAlign(android.graphics.Paint.Align align, int scale)
          Sets the Y axis labels alignment.
 void setYLabelsAngle(float angle)
          Sets the rotation angle (in degrees) of labels for the Y axis.
 void setYLabelsColor(int scale, int color)
          Sets the Y axis labels color.
 void setYLabelsPadding(float padding)
          Sets the Y labels padding
 void setYLabelsVerticalPadding(float padding)
          Sets the Y labels vertical padding
 void setYTitle(java.lang.String title)
          Sets the title for the Y axis.
 void setYTitle(java.lang.String title, int scale)
          Sets the title for the Y axis.
 void setZoomEnabled(boolean enabledX, boolean enabledY)
          Sets the enabled state of the zoom.
 void setZoomInLimitX(double zoomInLimitX)
          Sets the zoom in limit permitted in the axis X.
 void setZoomInLimitY(double zoomInLimitY)
          Sets zoom in limit permitted in the axis Y.
 void setZoomLimits(double[] zoomLimits)
          Sets the zoom limits as an array of 4 values.
 
Methods inherited from class org.achartengine.renderer.DefaultRenderer
addSeriesRenderer, addSeriesRenderer, getAxesColor, getBackgroundColor, getChartTitle, getChartTitleTextSize, getLabelsColor, getLabelsTextSize, getLegendHeight, getLegendTextSize, getMargins, getOriginalScale, getScale, getSelectableBuffer, getSeriesRendererAt, getSeriesRendererCount, getSeriesRenderers, getStartAngle, getTextTypeface, getTextTypefaceName, getTextTypefaceStyle, getZoomRate, isAntialiasing, isApplyBackgroundColor, isClickEnabled, isDisplayValues, isExternalZoomEnabled, isFitLegend, isInScroll, isShowAxes, isShowCustomTextGrid, isShowGridX, isShowGridY, isShowLabels, isShowLegend, isZoomButtonsVisible, removeAllRenderers, removeSeriesRenderer, setAntialiasing, setApplyBackgroundColor, setAxesColor, setBackgroundColor, setChartTitle, setChartTitleTextSize, setClickEnabled, setDisplayValues, setExternalZoomEnabled, setFitLegend, setInScroll, setLabelsColor, setLabelsTextSize, setLegendHeight, setLegendTextSize, setMargins, setScale, setSelectableBuffer, setShowAxes, setShowCustomTextGrid, setShowGrid, setShowGridX, setShowGridY, setShowLabels, setShowLegend, setStartAngle, setTextTypeface, setTextTypeface, setZoomButtonsVisible, setZoomEnabled, setZoomRate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XYMultipleSeriesRenderer

public XYMultipleSeriesRenderer()

XYMultipleSeriesRenderer

public XYMultipleSeriesRenderer(int scaleNumber)
Method Detail

initAxesRange

public void initAxesRange(int scales)

initAxesRangeForScale

public void initAxesRangeForScale(int i)

getOrientation

public XYMultipleSeriesRenderer.Orientation getOrientation()
Returns the current orientation of the chart X axis.

Returns:
the chart orientation

setOrientation

public void setOrientation(XYMultipleSeriesRenderer.Orientation orientation)
Sets the current orientation of the chart X axis.

Parameters:
orientation - the chart orientation

getXTitle

public java.lang.String getXTitle()
Returns the title for the X axis.

Returns:
the X axis title

setXTitle

public void setXTitle(java.lang.String title)
Sets the title for the X axis.

Parameters:
title - the X axis title

getYTitle

public java.lang.String getYTitle()
Returns the title for the Y axis.

Returns:
the Y axis title

getYTitle

public java.lang.String getYTitle(int scale)
Returns the title for the Y axis.

Parameters:
scale - the renderer scale
Returns:
the Y axis title

setYTitle

public void setYTitle(java.lang.String title)
Sets the title for the Y axis.

Parameters:
title - the Y axis title

setYTitle

public void setYTitle(java.lang.String title,
                      int scale)
Sets the title for the Y axis.

Parameters:
title - the Y axis title
scale - the renderer scale

getAxisTitleTextSize

public float getAxisTitleTextSize()
Returns the axis title text size.

Returns:
the axis title text size

setAxisTitleTextSize

public void setAxisTitleTextSize(float textSize)
Sets the axis title text size.

Parameters:
textSize - the chart axis text size

getXAxisMin

public double getXAxisMin()
Returns the start value of the X axis range.

Returns:
the X axis range start value

setXAxisMin

public void setXAxisMin(double min)
Sets the start value of the X axis range.

Parameters:
min - the X axis range start value

isMinXSet

public boolean isMinXSet()
Returns if the minimum X value was set.

Returns:
the minX was set or not

getXAxisMax

public double getXAxisMax()
Returns the end value of the X axis range.

Returns:
the X axis range end value

setXAxisMax

public void setXAxisMax(double max)
Sets the end value of the X axis range.

Parameters:
max - the X axis range end value

isMaxXSet

public boolean isMaxXSet()
Returns if the maximum X value was set.

Returns:
the maxX was set or not

getYAxisMin

public double getYAxisMin()
Returns the start value of the Y axis range.

Returns:
the Y axis range end value

setYAxisMin

public void setYAxisMin(double min)
Sets the start value of the Y axis range.

Parameters:
min - the Y axis range start value

isMinYSet

public boolean isMinYSet()
Returns if the minimum Y value was set.

Returns:
the minY was set or not

getYAxisMax

public double getYAxisMax()
Returns the end value of the Y axis range.

Returns:
the Y axis range end value

setYAxisMax

public void setYAxisMax(double max)
Sets the end value of the Y axis range.

Parameters:
max - the Y axis range end value

isMaxYSet

public boolean isMaxYSet()
Returns if the maximum Y value was set.

Returns:
the maxY was set or not

getXAxisMin

public double getXAxisMin(int scale)
Returns the start value of the X axis range.

Parameters:
scale - the renderer scale
Returns:
the X axis range start value

setXAxisMin

public void setXAxisMin(double min,
                        int scale)
Sets the start value of the X axis range.

Parameters:
min - the X axis range start value
scale - the renderer scale

isMinXSet

public boolean isMinXSet(int scale)
Returns if the minimum X value was set.

Parameters:
scale - the renderer scale
Returns:
the minX was set or not

getXAxisMax

public double getXAxisMax(int scale)
Returns the end value of the X axis range.

Parameters:
scale - the renderer scale
Returns:
the X axis range end value

setXAxisMax

public void setXAxisMax(double max,
                        int scale)
Sets the end value of the X axis range.

Parameters:
max - the X axis range end value
scale - the renderer scale

isMaxXSet

public boolean isMaxXSet(int scale)
Returns if the maximum X value was set.

Parameters:
scale - the renderer scale
Returns:
the maxX was set or not

getYAxisMin

public double getYAxisMin(int scale)
Returns the start value of the Y axis range.

Parameters:
scale - the renderer scale
Returns:
the Y axis range end value

setYAxisMin

public void setYAxisMin(double min,
                        int scale)
Sets the start value of the Y axis range.

Parameters:
min - the Y axis range start value
scale - the renderer scale

isMinYSet

public boolean isMinYSet(int scale)
Returns if the minimum Y value was set.

Parameters:
scale - the renderer scale
Returns:
the minY was set or not

getYAxisMax

public double getYAxisMax(int scale)
Returns the end value of the Y axis range.

Parameters:
scale - the renderer scale
Returns:
the Y axis range end value

setYAxisMax

public void setYAxisMax(double max,
                        int scale)
Sets the end value of the Y axis range.

Parameters:
max - the Y axis range end value
scale - the renderer scale

isMaxYSet

public boolean isMaxYSet(int scale)
Returns if the maximum Y value was set.

Parameters:
scale - the renderer scale
Returns:
the maxY was set or not

getXLabels

public int getXLabels()
Returns the approximate number of labels for the X axis.

Returns:
the approximate number of labels for the X axis

setXLabels

public void setXLabels(int xLabels)
Sets the approximate number of labels for the X axis.

Parameters:
xLabels - the approximate number of labels for the X axis

addTextLabel

public void addTextLabel(double x,
                         java.lang.String text)
Deprecated. use addXTextLabel instead

Adds a new text label for the specified X axis value.

Parameters:
x - the X axis value
text - the text label

addXTextLabel

public void addXTextLabel(double x,
                          java.lang.String text)
Adds a new text label for the specified X axis value.

Parameters:
x - the X axis value
text - the text label

removeXTextLabel

public void removeXTextLabel(double x)
Removes text label for the specified X axis value.

Parameters:
x - the X axis value

getXTextLabel

public java.lang.String getXTextLabel(java.lang.Double x)
Returns the X axis text label at the specified X axis value.

Parameters:
x - the X axis value
Returns:
the X axis text label

getXTextLabelLocations

public java.lang.Double[] getXTextLabelLocations()
Returns the X text label locations.

Returns:
the X text label locations

clearTextLabels

public void clearTextLabels()
Deprecated. use clearXTextLabels instead

Clears the existing text labels.


clearXTextLabels

public void clearXTextLabels()
Clears the existing text labels on the X axis.


isXRoundedLabels

public boolean isXRoundedLabels()
If X axis labels should be rounded.

Returns:
if rounded time values to be used

setXRoundedLabels

public void setXRoundedLabels(boolean rounded)
Sets if X axis rounded time values to be used.

Parameters:
rounded - rounded values to be used

addYTextLabel

public void addYTextLabel(double y,
                          java.lang.String text)
Adds a new text label for the specified Y axis value.

Parameters:
y - the Y axis value
text - the text label

removeYTextLabel

public void removeYTextLabel(double y)
Removes text label for the specified Y axis value.

Parameters:
y - the Y axis value

addYTextLabel

public void addYTextLabel(double y,
                          java.lang.String text,
                          int scale)
Adds a new text label for the specified Y axis value.

Parameters:
y - the Y axis value
text - the text label
scale - the renderer scale

removeYTextLabel

public void removeYTextLabel(double y,
                             int scale)
Removes text label for the specified Y axis value.

Parameters:
y - the Y axis value
scale - the renderer scale

getYTextLabel

public java.lang.String getYTextLabel(java.lang.Double y)
Returns the Y axis text label at the specified Y axis value.

Parameters:
y - the Y axis value
Returns:
the Y axis text label

getYTextLabel

public java.lang.String getYTextLabel(java.lang.Double y,
                                      int scale)
Returns the Y axis text label at the specified Y axis value.

Parameters:
y - the Y axis value
scale - the renderer scale
Returns:
the Y axis text label

getYTextLabelLocations

public java.lang.Double[] getYTextLabelLocations()
Returns the Y text label locations.

Returns:
the Y text label locations

getYTextLabelLocations

public java.lang.Double[] getYTextLabelLocations(int scale)
Returns the Y text label locations.

Parameters:
scale - the renderer scale
Returns:
the Y text label locations

clearYTextLabels

public void clearYTextLabels()
Clears the existing text labels on the Y axis.


clearYTextLabels

public void clearYTextLabels(int scale)
Clears the existing text labels on the Y axis.

Parameters:
scale - the renderer scale

getYLabels

public int getYLabels()
Returns the approximate number of labels for the Y axis.

Returns:
the approximate number of labels for the Y axis

setYLabels

public void setYLabels(int yLabels)
Sets the approximate number of labels for the Y axis.

Parameters:
yLabels - the approximate number of labels for the Y axis

setDisplayChartValues

public void setDisplayChartValues(boolean display)
Deprecated. use SimpleSeriesRenderer.setDisplayChartValues() instead

Sets if the chart point values should be displayed as text.

Parameters:
display - if the chart point values should be displayed as text

setChartValuesTextSize

public void setChartValuesTextSize(float textSize)
Deprecated. use SimpleSeriesRenderer.setChartValuesTextSize() instead

Sets the chart values text size.

Parameters:
textSize - the chart values text size

getBarWidth

public float getBarWidth()
Returns the constant bar chart item width in pixels.

Returns:
the bar width

setBarWidth

public void setBarWidth(float width)
Sets the bar chart item constant width in pixels.

Parameters:
width - width in pixels

isPanEnabled

public boolean isPanEnabled()
Returns the enabled state of the pan on at least one axis.

Overrides:
isPanEnabled in class DefaultRenderer
Returns:
if pan is enabled

isPanXEnabled

public boolean isPanXEnabled()
Returns the enabled state of the pan on X axis.

Returns:
if pan is enabled on X axis

isPanYEnabled

public boolean isPanYEnabled()
Returns the enabled state of the pan on Y axis.

Returns:
if pan is enabled on Y axis

setPanEnabled

public void setPanEnabled(boolean enabledX,
                          boolean enabledY)
Sets the enabled state of the pan.

Parameters:
enabledX - pan enabled on X axis
enabledY - pan enabled on Y axis

setPanEnabled

public void setPanEnabled(boolean enabled)
Override DefaultRenderer.setPanEnabled(boolean) so it can be delegated to setPanEnabled(boolean, boolean).

Overrides:
setPanEnabled in class DefaultRenderer
Parameters:
enabled - pan enabled

isZoomEnabled

public boolean isZoomEnabled()
Returns the enabled state of the zoom on at least one axis.

Overrides:
isZoomEnabled in class DefaultRenderer
Returns:
if zoom is enabled

isZoomXEnabled

public boolean isZoomXEnabled()
Returns the enabled state of the zoom on X axis.

Returns:
if zoom is enabled on X axis

isZoomYEnabled

public boolean isZoomYEnabled()
Returns the enabled state of the zoom on Y axis.

Returns:
if zoom is enabled on Y axis

setZoomEnabled

public void setZoomEnabled(boolean enabledX,
                           boolean enabledY)
Sets the enabled state of the zoom.

Parameters:
enabledX - zoom enabled on X axis
enabledY - zoom enabled on Y axis

getBarsSpacing

public double getBarsSpacing()
Deprecated. use getBarSpacing instead

Returns the spacing between bars, in bar charts.

Returns:
the spacing between bars

getBarSpacing

public double getBarSpacing()
Returns the spacing between bars, in bar charts.

Returns:
the spacing between bars

setBarSpacing

public void setBarSpacing(double spacing)
Sets the spacing between bars, in bar charts. Only available for bar charts. This is a coefficient of the bar width. For instance, if you want the spacing to be a half of the bar width, set this value to 0.5.

Parameters:
spacing - the spacing between bars coefficient

getMarginsColor

public int getMarginsColor()
Returns the margins color.

Returns:
the margins color

setMarginsColor

public void setMarginsColor(int color)
Sets the color of the margins.

Parameters:
color - the margins color

getGridColor

public int getGridColor()
Returns the grid color.

Returns:
the grid color

setGridColor

public void setGridColor(int color)
Sets the color of the grid.

Parameters:
color - the grid color

getPanLimits

public double[] getPanLimits()
Returns the pan limits.

Returns:
the pan limits

setPanLimits

public void setPanLimits(double[] panLimits)
Sets the pan limits as an array of 4 values. Setting it to null or a different size array will disable the panning limitation. Values: [panMinimumX, panMaximumX, panMinimumY, panMaximumY]

Parameters:
panLimits - the pan limits

getZoomLimits

public double[] getZoomLimits()
Returns the zoom limits.

Returns:
the zoom limits

setZoomLimits

public void setZoomLimits(double[] zoomLimits)
Sets the zoom limits as an array of 4 values. Setting it to null or a different size array will disable the zooming limitation. Values: [zoomMinimumX, zoomMaximumX, zoomMinimumY, zoomMaximumY]

Parameters:
zoomLimits - the zoom limits

getXLabelsAngle

public float getXLabelsAngle()
Returns the rotation angle of labels for the X axis.

Returns:
the rotation angle of labels for the X axis

setXLabelsAngle

public void setXLabelsAngle(float angle)
Sets the rotation angle (in degrees) of labels for the X axis.

Parameters:
angle - the rotation angle of labels for the X axis

getYLabelsAngle

public float getYLabelsAngle()
Returns the rotation angle of labels for the Y axis.

Returns:
the approximate number of labels for the Y axis

setYLabelsAngle

public void setYLabelsAngle(float angle)
Sets the rotation angle (in degrees) of labels for the Y axis.

Parameters:
angle - the rotation angle of labels for the Y axis

getPointSize

public float getPointSize()
Returns the size of the points, for charts displaying points.

Returns:
the point size

setPointSize

public void setPointSize(float size)
Sets the size of the points, for charts displaying points.

Parameters:
size - the point size

setRange

public void setRange(double[] range)

setRange

public void setRange(double[] range,
                     int scale)
Sets the axes range values.

Parameters:
range - an array having the values in this order: minX, maxX, minY, maxY
scale - the renderer scale

isInitialRangeSet

public boolean isInitialRangeSet()

isInitialRangeSet

public boolean isInitialRangeSet(int scale)
Returns if the initial range is set.

Parameters:
scale - the renderer scale
Returns:
the initial range was set or not

getInitialRange

public double[] getInitialRange()
Returns the initial range.

Returns:
the initial range

getInitialRange

public double[] getInitialRange(int scale)
Returns the initial range.

Parameters:
scale - the renderer scale
Returns:
the initial range

setInitialRange

public void setInitialRange(double[] range)
Sets the axes initial range values. This will be used in the zoom fit tool.

Parameters:
range - an array having the values in this order: minX, maxX, minY, maxY

setInitialRange

public void setInitialRange(double[] range,
                            int scale)
Sets the axes initial range values. This will be used in the zoom fit tool.

Parameters:
range - an array having the values in this order: minX, maxX, minY, maxY
scale - the renderer scale

getXLabelsColor

public int getXLabelsColor()
Returns the X axis labels color.

Returns:
the X axis labels color

getYLabelsColor

public int getYLabelsColor(int scale)
Returns the Y axis labels color.

Returns:
the Y axis labels color

setXLabelsColor

public void setXLabelsColor(int color)
Sets the X axis labels color.

Parameters:
color - the X axis labels color

setYLabelsColor

public void setYLabelsColor(int scale,
                            int color)
Sets the Y axis labels color.

Parameters:
scale - the renderer scale
color - the Y axis labels color

getXLabelsAlign

public android.graphics.Paint.Align getXLabelsAlign()
Returns the X axis labels alignment.

Returns:
X labels alignment

setXLabelsAlign

public void setXLabelsAlign(android.graphics.Paint.Align align)
Sets the X axis labels alignment.

Parameters:
align - the X labels alignment

getYLabelsAlign

public android.graphics.Paint.Align getYLabelsAlign(int scale)
Returns the Y axis labels alignment.

Parameters:
scale - the renderer scale
Returns:
Y labels alignment

setYLabelsAlign

public void setYLabelsAlign(android.graphics.Paint.Align align)

getYAxisAlign

public android.graphics.Paint.Align getYAxisAlign(int scale)

setYAxisAlign

public void setYAxisAlign(android.graphics.Paint.Align align,
                          int scale)

setYLabelsAlign

public void setYLabelsAlign(android.graphics.Paint.Align align,
                            int scale)
Sets the Y axis labels alignment.

Parameters:
align - the Y labels alignment

getXLabelsPadding

public float getXLabelsPadding()
Returns the X labels padding.

Returns:
X labels padding

setXLabelsPadding

public void setXLabelsPadding(float padding)
Sets the X labels padding

Parameters:
padding - the amount of padding between the axis and the label

getYLabelsPadding

public float getYLabelsPadding()
Returns the Y labels padding.

Returns:
Y labels padding

setYLabelsVerticalPadding

public void setYLabelsVerticalPadding(float padding)
Sets the Y labels vertical padding

Parameters:
padding - the amount of vertical padding

getYLabelsVerticalPadding

public float getYLabelsVerticalPadding()
Returns the Y labels vertical padding.

Returns:
Y labels vertical padding

setYLabelsPadding

public void setYLabelsPadding(float padding)
Sets the Y labels padding

Parameters:
padding - the amount of padding between the axis and the label

getLabelFormat

public java.text.NumberFormat getLabelFormat()
Returns the number format for displaying labels.

Returns:
the number format for labels

setLabelFormat

public void setLabelFormat(java.text.NumberFormat format)
Sets the number format for displaying labels.

Parameters:
format - the number format for labels

getZoomInLimitX

public double getZoomInLimitX()
Returns the zoom in limit permitted in the axis X.

Returns:
the maximum zoom in permitted in the axis X
See Also:
setZoomInLimitX(double)

setZoomInLimitX

public void setZoomInLimitX(double zoomInLimitX)
Sets the zoom in limit permitted in the axis X. This function prevent that the distance between getXAxisMin() and getXAxisMax() can't be greater or equal than getZoomInLimitX()

Parameters:
zoomInLimitX - the maximum distance permitted between getXAxisMin() and getXAxisMax().

getZoomInLimitY

public double getZoomInLimitY()
Returns the zoom in limit permitted in the axis Y.

Returns:
the maximum in zoom permitted in the axis Y
See Also:
setZoomInLimitY(double)

setZoomInLimitY

public void setZoomInLimitY(double zoomInLimitY)
Sets zoom in limit permitted in the axis Y. This function prevent that the distance between getYAxisMin() and getYAxisMax() can't be greater or equal than getZoomInLimitY()

Parameters:
zoomInLimitY - the maximum distance permitted between getYAxisMin() and getYAxisMax()

getScalesCount

public int getScalesCount()


Copyright © 2009 - 2011 4ViewSoft. All Rights Reserved.