|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.achartengine.ChartFactory
public class ChartFactory
Utility methods for creating chart views or intents.
Field Summary | |
---|---|
static java.lang.String |
CHART
The key for the chart data. |
static java.lang.String |
TITLE
The key for the chart graphical activity title. |
Method Summary | |
---|---|
static android.content.Intent |
getBarChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
BarChart.Type type)
Creates a bar chart intent that can be used to start the graphical view activity. |
static android.content.Intent |
getBarChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
BarChart.Type type,
java.lang.String activityTitle)
Creates a bar chart intent that can be used to start the graphical view activity. |
static GraphicalView |
getBarChartView(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
BarChart.Type type)
Creates a bar chart view. |
static android.content.Intent |
getBubbleChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer)
Creates a bubble chart intent that can be used to start the graphical view activity. |
static android.content.Intent |
getBubbleChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
java.lang.String activityTitle)
Creates a bubble chart intent that can be used to start the graphical view activity. |
static GraphicalView |
getBubbleChartView(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer)
Creates a bubble chart view. |
static android.content.Intent |
getCombinedXYChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
java.lang.String[] types,
java.lang.String activityTitle)
Creates a combined XY chart intent that can be used to start the graphical view activity. |
static GraphicalView |
getCombinedXYChartView(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
java.lang.String[] types)
Creates a combined XY chart view. |
static GraphicalView |
getCubeLineChartView(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
float smoothness)
Creates a cubic line chart view. |
static android.content.Intent |
getCubicLineChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
float smoothness)
Creates a cubic line chart intent that can be used to start the graphical view activity. |
static android.content.Intent |
getCubicLineChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
float smoothness,
java.lang.String activityTitle)
Creates a line chart intent that can be used to start the graphical view activity. |
static android.content.Intent |
getDialChartIntent(android.content.Context context,
CategorySeries dataset,
DialRenderer renderer,
java.lang.String activityTitle)
Creates a dial chart intent that can be used to start the graphical view activity. |
static GraphicalView |
getDialChartView(android.content.Context context,
CategorySeries dataset,
DialRenderer renderer)
Creates a dial chart intent that can be used to start the graphical view activity. |
static android.content.Intent |
getDoughnutChartIntent(android.content.Context context,
MultipleCategorySeries dataset,
DefaultRenderer renderer,
java.lang.String activityTitle)
Creates a doughnut chart intent that can be used to start the graphical view activity. |
static GraphicalView |
getDoughnutChartView(android.content.Context context,
MultipleCategorySeries dataset,
DefaultRenderer renderer)
Creates a doughnut chart intent that can be used to start the graphical view activity. |
static android.content.Intent |
getLineChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer)
Creates a line chart intent that can be used to start the graphical view activity. |
static android.content.Intent |
getLineChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
java.lang.String activityTitle)
Creates a line chart intent that can be used to start the graphical view activity. |
static GraphicalView |
getLineChartView(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer)
Creates a line chart view. |
static android.content.Intent |
getPieChartIntent(android.content.Context context,
CategorySeries dataset,
DefaultRenderer renderer,
java.lang.String activityTitle)
Creates a pie chart intent that can be used to start the graphical view activity. |
static GraphicalView |
getPieChartView(android.content.Context context,
CategorySeries dataset,
DefaultRenderer renderer)
Creates a pie chart intent that can be used to start the graphical view activity. |
static android.content.Intent |
getRangeBarChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
BarChart.Type type,
java.lang.String activityTitle)
Creates a range bar chart intent that can be used to start the graphical view activity. |
static GraphicalView |
getRangeBarChartView(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
BarChart.Type type)
Creates a range bar chart view. |
static android.content.Intent |
getScatterChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer)
Creates a scatter chart intent that can be used to start the graphical view activity. |
static android.content.Intent |
getScatterChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
java.lang.String activityTitle)
Creates a scatter chart intent that can be used to start the graphical view activity. |
static GraphicalView |
getScatterChartView(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer)
Creates a scatter chart view. |
static android.content.Intent |
getTimeChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
java.lang.String format)
Creates a time chart intent that can be used to start the graphical view activity. |
static android.content.Intent |
getTimeChartIntent(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
java.lang.String format,
java.lang.String activityTitle)
Creates a time chart intent that can be used to start the graphical view activity. |
static GraphicalView |
getTimeChartView(android.content.Context context,
XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer,
java.lang.String format)
Creates a time chart view. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CHART
public static final java.lang.String TITLE
Method Detail |
---|
public static final GraphicalView getLineChartView(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final GraphicalView getCubeLineChartView(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, float smoothness)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final GraphicalView getScatterChartView(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final GraphicalView getBubbleChartView(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final GraphicalView getTimeChartView(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, java.lang.String format)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)format
- the date format pattern to be used for displaying the X axis
date labels. If null, a default appropriate format will be used.
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final GraphicalView getBarChartView(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, BarChart.Type type)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)type
- the bar chart type
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final GraphicalView getRangeBarChartView(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, BarChart.Type type)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)type
- the range bar chart type
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final GraphicalView getCombinedXYChartView(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, java.lang.String[] types)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)types
- the chart types (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if a dataset number of items is different than the number of
series renderers or number of chart typespublic static final GraphicalView getPieChartView(android.content.Context context, CategorySeries dataset, DefaultRenderer renderer)
context
- the contextdataset
- the category series dataset (cannot be null)renderer
- the series renderer (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset number of items is different than the number of
series rendererspublic static final GraphicalView getDialChartView(android.content.Context context, CategorySeries dataset, DialRenderer renderer)
context
- the contextdataset
- the category series dataset (cannot be null)renderer
- the dial renderer (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset number of items is different than the number of
series rendererspublic static final GraphicalView getDoughnutChartView(android.content.Context context, MultipleCategorySeries dataset, DefaultRenderer renderer)
context
- the contextdataset
- the multiple category series dataset (cannot be null)renderer
- the series renderer (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset number of items is different than the number of
series rendererspublic static final android.content.Intent getLineChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getCubicLineChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, float smoothness)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getScatterChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getBubbleChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getTimeChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, java.lang.String format)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)format
- the date format pattern to be used for displaying the X axis
date labels. If null, a default appropriate format will be used.
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getBarChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, BarChart.Type type)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)type
- the bar chart type
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getLineChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, java.lang.String activityTitle)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)activityTitle
- the graphical chart activity title. If this is null,
then the title bar will be hidden. If a blank title is passed in,
then the title bar will be the default. Pass in any other string
to set a custom title.
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getCubicLineChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, float smoothness, java.lang.String activityTitle)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)activityTitle
- the graphical chart activity title. If this is null,
then the title bar will be hidden. If a blank title is passed in,
then the title bar will be the default. Pass in any other string
to set a custom title.
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getScatterChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, java.lang.String activityTitle)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)activityTitle
- the graphical chart activity title
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getBubbleChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, java.lang.String activityTitle)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)activityTitle
- the graphical chart activity title
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getTimeChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, java.lang.String format, java.lang.String activityTitle)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)format
- the date format pattern to be used for displaying the X axis
date labels. If null, a default appropriate format will be usedactivityTitle
- the graphical chart activity title
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getBarChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, BarChart.Type type, java.lang.String activityTitle)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)type
- the bar chart typeactivityTitle
- the graphical chart activity title
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getRangeBarChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, BarChart.Type type, java.lang.String activityTitle)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)type
- the range bar chart typeactivityTitle
- the graphical chart activity title
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset and the renderer don't include the same number of
seriespublic static final android.content.Intent getCombinedXYChartIntent(android.content.Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, java.lang.String[] types, java.lang.String activityTitle)
context
- the contextdataset
- the multiple series dataset (cannot be null)renderer
- the multiple series renderer (cannot be null)types
- the chart types (cannot be null)activityTitle
- the graphical chart activity title
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if a dataset number of items is different than the number of
series renderers or number of chart typespublic static final android.content.Intent getPieChartIntent(android.content.Context context, CategorySeries dataset, DefaultRenderer renderer, java.lang.String activityTitle)
context
- the contextdataset
- the category series dataset (cannot be null)renderer
- the series renderer (cannot be null)activityTitle
- the graphical chart activity title
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset number of items is different than the number of
series rendererspublic static final android.content.Intent getDoughnutChartIntent(android.content.Context context, MultipleCategorySeries dataset, DefaultRenderer renderer, java.lang.String activityTitle)
context
- the contextdataset
- the multiple category series dataset (cannot be null)renderer
- the series renderer (cannot be null)activityTitle
- the graphical chart activity title
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset number of items is different than the number of
series rendererspublic static final android.content.Intent getDialChartIntent(android.content.Context context, CategorySeries dataset, DialRenderer renderer, java.lang.String activityTitle)
context
- the contextdataset
- the category series dataset (cannot be null)renderer
- the dial renderer (cannot be null)activityTitle
- the graphical chart activity title
java.lang.IllegalArgumentException
- if dataset is null or renderer is null or
if the dataset number of items is different than the number of
series renderers
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |