Search in sources :

Example 1 with CubicLineChart

use of org.achartengine.chart.CubicLineChart in project Anki-Android by Ramblurr.

the class ChartFactory method getCubeLineChartView.

/**
   * Creates a cubic line chart view.
   * 
   * @param context the context
   * @param dataset the multiple series dataset (cannot be null)
   * @param renderer the multiple series renderer (cannot be null)
   * @return a line chart graphical view
   * @throws IllegalArgumentException if dataset is null or renderer is null or
   *           if the dataset and the renderer don't include the same number of
   *           series
   */
public static final GraphicalView getCubeLineChartView(Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, float smoothness) {
    checkParameters(dataset, renderer);
    XYChart chart = new CubicLineChart(dataset, renderer, smoothness);
    return new GraphicalView(context, chart);
}
Also used : CubicLineChart(org.achartengine.chart.CubicLineChart) XYChart(org.achartengine.chart.XYChart) CombinedXYChart(org.achartengine.chart.CombinedXYChart)

Example 2 with CubicLineChart

use of org.achartengine.chart.CubicLineChart in project sensorreadout by onyxbits.

the class ChartFactory method getCubicLineChartIntent.

/**
   * Creates a line chart intent that can be used to start the graphical view
   * activity.
   * 
   * @param context the context
   * @param dataset the multiple series dataset (cannot be null)
   * @param renderer the multiple series renderer (cannot be null)
   * @param 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.
   * @return a line chart intent
   * @throws IllegalArgumentException if dataset is null or renderer is null or
   *           if the dataset and the renderer don't include the same number of
   *           series
   */
public static final Intent getCubicLineChartIntent(Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, float smoothness, String activityTitle) {
    checkParameters(dataset, renderer);
    Intent intent = new Intent(context, GraphicalActivity.class);
    XYChart chart = new CubicLineChart(dataset, renderer, smoothness);
    intent.putExtra(CHART, chart);
    intent.putExtra(TITLE, activityTitle);
    return intent;
}
Also used : CubicLineChart(org.achartengine.chart.CubicLineChart) XYChart(org.achartengine.chart.XYChart) CombinedXYChart(org.achartengine.chart.CombinedXYChart) Intent(android.content.Intent)

Example 3 with CubicLineChart

use of org.achartengine.chart.CubicLineChart in project sensorreadout by onyxbits.

the class ChartFactory method getCubeLineChartView.

/**
   * Creates a cubic line chart view.
   * 
   * @param context the context
   * @param dataset the multiple series dataset (cannot be null)
   * @param renderer the multiple series renderer (cannot be null)
   * @return a line chart graphical view
   * @throws IllegalArgumentException if dataset is null or renderer is null or
   *           if the dataset and the renderer don't include the same number of
   *           series
   */
public static final GraphicalView getCubeLineChartView(Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, float smoothness) {
    checkParameters(dataset, renderer);
    XYChart chart = new CubicLineChart(dataset, renderer, smoothness);
    return new GraphicalView(context, chart);
}
Also used : CubicLineChart(org.achartengine.chart.CubicLineChart) XYChart(org.achartengine.chart.XYChart) CombinedXYChart(org.achartengine.chart.CombinedXYChart)

Example 4 with CubicLineChart

use of org.achartengine.chart.CubicLineChart in project Anki-Android by Ramblurr.

the class ChartFactory method getCubicLineChartIntent.

/**
   * Creates a line chart intent that can be used to start the graphical view
   * activity.
   * 
   * @param context the context
   * @param dataset the multiple series dataset (cannot be null)
   * @param renderer the multiple series renderer (cannot be null)
   * @param 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.
   * @return a line chart intent
   * @throws IllegalArgumentException if dataset is null or renderer is null or
   *           if the dataset and the renderer don't include the same number of
   *           series
   */
public static final Intent getCubicLineChartIntent(Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, float smoothness, String activityTitle) {
    checkParameters(dataset, renderer);
    Intent intent = new Intent(context, GraphicalActivity.class);
    XYChart chart = new CubicLineChart(dataset, renderer, smoothness);
    intent.putExtra(CHART, chart);
    intent.putExtra(TITLE, activityTitle);
    return intent;
}
Also used : CubicLineChart(org.achartengine.chart.CubicLineChart) XYChart(org.achartengine.chart.XYChart) CombinedXYChart(org.achartengine.chart.CombinedXYChart) Intent(android.content.Intent)

Aggregations

CombinedXYChart (org.achartengine.chart.CombinedXYChart)4 CubicLineChart (org.achartengine.chart.CubicLineChart)4 XYChart (org.achartengine.chart.XYChart)4 Intent (android.content.Intent)2