|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.achartengine.renderer.DefaultRenderer
org.achartengine.renderer.XYMultipleSeriesRenderer
public class XYMultipleSeriesRenderer
Multiple XY series renderer.
| 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. |
float |
getAxisTitleTextSize()
Returns the axis title text size. |
double |
getBarSpacing()
Returns the spacing between bars, in bar charts. |
double |
getBarsSpacing()
Deprecated. use getBarSpacing instead |
int |
getGridColor()
Returns the grid color. |
double[] |
getInitialRange()
Returns the initial range. |
double[] |
getInitialRange(int scale)
Returns the initial range. |
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. |
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. |
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[] |
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 |
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 |
setAxisTitleTextSize(float textSize)
Sets the axis title text size. |
void |
setBarSpacing(double spacing)
Sets the spacing between bars, in bar charts. |
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 |
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 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 |
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 |
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 |
setZoomLimits(double[] zoomLimits)
Sets the zoom limits as an array of 4 values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XYMultipleSeriesRenderer()
public XYMultipleSeriesRenderer(int scaleNumber)
| Method Detail |
|---|
public void initAxesRange(int scales)
public void initAxesRangeForScale(int i)
public XYMultipleSeriesRenderer.Orientation getOrientation()
public void setOrientation(XYMultipleSeriesRenderer.Orientation orientation)
orientation - the chart orientationpublic java.lang.String getXTitle()
public void setXTitle(java.lang.String title)
title - the X axis titlepublic java.lang.String getYTitle()
public java.lang.String getYTitle(int scale)
scale - the renderer scale
public void setYTitle(java.lang.String title)
title - the Y axis title
public void setYTitle(java.lang.String title,
int scale)
title - the Y axis titlescale - the renderer scalepublic float getAxisTitleTextSize()
public void setAxisTitleTextSize(float textSize)
textSize - the chart axis text sizepublic double getXAxisMin()
public void setXAxisMin(double min)
min - the X axis range start valuepublic boolean isMinXSet()
public double getXAxisMax()
public void setXAxisMax(double max)
max - the X axis range end valuepublic boolean isMaxXSet()
public double getYAxisMin()
public void setYAxisMin(double min)
min - the Y axis range start valuepublic boolean isMinYSet()
public double getYAxisMax()
public void setYAxisMax(double max)
max - the Y axis range end valuepublic boolean isMaxYSet()
public double getXAxisMin(int scale)
scale - the renderer scale
public void setXAxisMin(double min,
int scale)
min - the X axis range start valuescale - the renderer scalepublic boolean isMinXSet(int scale)
scale - the renderer scale
public double getXAxisMax(int scale)
scale - the renderer scale
public void setXAxisMax(double max,
int scale)
max - the X axis range end valuescale - the renderer scalepublic boolean isMaxXSet(int scale)
scale - the renderer scale
public double getYAxisMin(int scale)
scale - the renderer scale
public void setYAxisMin(double min,
int scale)
min - the Y axis range start valuescale - the renderer scalepublic boolean isMinYSet(int scale)
scale - the renderer scale
public double getYAxisMax(int scale)
scale - the renderer scale
public void setYAxisMax(double max,
int scale)
max - the Y axis range end valuescale - the renderer scalepublic boolean isMaxYSet(int scale)
scale - the renderer scale
public int getXLabels()
public void setXLabels(int xLabels)
xLabels - the approximate number of labels for the X axis
public void addTextLabel(double x,
java.lang.String text)
x - the X axis valuetext - the text label
public void addXTextLabel(double x,
java.lang.String text)
x - the X axis valuetext - the text labelpublic java.lang.String getXTextLabel(java.lang.Double x)
x - the X axis value
public java.lang.Double[] getXTextLabelLocations()
public void clearTextLabels()
public void clearXTextLabels()
public void addYTextLabel(double y,
java.lang.String text)
y - the Y axis valuetext - the text label
public void addYTextLabel(double y,
java.lang.String text,
int scale)
y - the Y axis valuetext - the text labelscale - the renderer scalepublic java.lang.String getYTextLabel(java.lang.Double y)
y - the Y axis value
public java.lang.String getYTextLabel(java.lang.Double y,
int scale)
y - the Y axis valuescale - the renderer scale
public java.lang.Double[] getYTextLabelLocations()
public java.lang.Double[] getYTextLabelLocations(int scale)
scale - the renderer scale
public void clearYTextLabels()
public int getYLabels()
public void setYLabels(int yLabels)
yLabels - the approximate number of labels for the Y axispublic void setDisplayChartValues(boolean display)
display - if the chart point values should be displayed as textpublic void setChartValuesTextSize(float textSize)
textSize - the chart values text sizepublic boolean isPanEnabled()
isPanEnabled in class DefaultRendererpublic boolean isPanXEnabled()
public boolean isPanYEnabled()
public void setPanEnabled(boolean enabledX,
boolean enabledY)
enabledX - pan enabled on X axisenabledY - pan enabled on Y axispublic boolean isZoomEnabled()
isZoomEnabled in class DefaultRendererpublic boolean isZoomXEnabled()
public boolean isZoomYEnabled()
public void setZoomEnabled(boolean enabledX,
boolean enabledY)
enabledX - zoom enabled on X axisenabledY - zoom enabled on Y axispublic double getBarsSpacing()
public double getBarSpacing()
public void setBarSpacing(double spacing)
spacing - the spacing between bars coefficientpublic int getMarginsColor()
public void setMarginsColor(int color)
color - the margins colorpublic int getGridColor()
public void setGridColor(int color)
color - the grid colorpublic double[] getPanLimits()
public void setPanLimits(double[] panLimits)
panLimits - the pan limitspublic double[] getZoomLimits()
public void setZoomLimits(double[] zoomLimits)
zoomLimits - the zoom limitspublic float getXLabelsAngle()
public void setXLabelsAngle(float angle)
angle - the rotation angle of labels for the X axispublic float getYLabelsAngle()
public void setYLabelsAngle(float angle)
angle - the rotation angle of labels for the Y axispublic float getPointSize()
public void setPointSize(float size)
size - the point sizepublic void setRange(double[] range)
public void setRange(double[] range,
int scale)
range - an array having the values in this order: minX, maxX, minY,
maxYscale - the renderer scalepublic boolean isInitialRangeSet()
public boolean isInitialRangeSet(int scale)
scale - the renderer scale
public double[] getInitialRange()
public double[] getInitialRange(int scale)
scale - the renderer scale
public void setInitialRange(double[] range)
range - an array having the values in this order: minX, maxX, minY,
maxY
public void setInitialRange(double[] range,
int scale)
range - an array having the values in this order: minX, maxX, minY,
maxYscale - the renderer scalepublic android.graphics.Paint.Align getXLabelsAlign()
public void setXLabelsAlign(android.graphics.Paint.Align align)
align - the X labels alignmentpublic android.graphics.Paint.Align getYLabelsAlign(int scale)
scale - the renderer scale
public void setYLabelsAlign(android.graphics.Paint.Align align)
public android.graphics.Paint.Align getYAxisAlign(int scale)
public void setYAxisAlign(android.graphics.Paint.Align align,
int scale)
public void setYLabelsAlign(android.graphics.Paint.Align align,
int scale)
align - the Y labels alignmentpublic int getScalesCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||