Search in sources :

Example 1 with BubbleChart

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

the class ChartFactory method getBubbleChartIntent.

/**
   * Creates a bubble 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
   * @return a scatter 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 getBubbleChartIntent(Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, String activityTitle) {
    checkParameters(dataset, renderer);
    Intent intent = new Intent(context, GraphicalActivity.class);
    XYChart chart = new BubbleChart(dataset, renderer);
    intent.putExtra(CHART, chart);
    intent.putExtra(TITLE, activityTitle);
    return intent;
}
Also used : BubbleChart(org.achartengine.chart.BubbleChart) XYChart(org.achartengine.chart.XYChart) CombinedXYChart(org.achartengine.chart.CombinedXYChart) Intent(android.content.Intent)

Example 2 with BubbleChart

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

the class ChartFactory method getBubbleChartView.

/**
   * Creates a bubble 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 scatter 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 getBubbleChartView(Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer) {
    checkParameters(dataset, renderer);
    XYChart chart = new BubbleChart(dataset, renderer);
    return new GraphicalView(context, chart);
}
Also used : BubbleChart(org.achartengine.chart.BubbleChart) XYChart(org.achartengine.chart.XYChart) CombinedXYChart(org.achartengine.chart.CombinedXYChart)

Example 3 with BubbleChart

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

the class ChartFactory method getBubbleChartIntent.

/**
   * Creates a bubble 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
   * @return a scatter 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 getBubbleChartIntent(Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, String activityTitle) {
    checkParameters(dataset, renderer);
    Intent intent = new Intent(context, GraphicalActivity.class);
    XYChart chart = new BubbleChart(dataset, renderer);
    intent.putExtra(CHART, chart);
    intent.putExtra(TITLE, activityTitle);
    return intent;
}
Also used : BubbleChart(org.achartengine.chart.BubbleChart) XYChart(org.achartengine.chart.XYChart) CombinedXYChart(org.achartengine.chart.CombinedXYChart) Intent(android.content.Intent)

Example 4 with BubbleChart

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

the class ChartFactory method getBubbleChartView.

/**
   * Creates a bubble 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 scatter 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 getBubbleChartView(Context context, XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer) {
    checkParameters(dataset, renderer);
    XYChart chart = new BubbleChart(dataset, renderer);
    return new GraphicalView(context, chart);
}
Also used : BubbleChart(org.achartengine.chart.BubbleChart) XYChart(org.achartengine.chart.XYChart) CombinedXYChart(org.achartengine.chart.CombinedXYChart)

Aggregations

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