本文整理汇总了Java中org.achartengine.chart.DialChart类的典型用法代码示例。如果您正苦于以下问题:Java DialChart类的具体用法?Java DialChart怎么用?Java DialChart使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
DialChart类属于org.achartengine.chart包,在下文中一共展示了DialChart类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDialChartIntent
import org.achartengine.chart.DialChart; //导入依赖的package包/类
public static final Intent getDialChartIntent(Context context, CategorySeries categoryseries, DialRenderer dialrenderer, String s)
{
a(categoryseries, dialrenderer);
Intent intent = new Intent(context, org/achartengine/GraphicalActivity);
intent.putExtra("chart", new DialChart(categoryseries, dialrenderer));
intent.putExtra("title", s);
return intent;
}
示例2: getDialChartView
import org.achartengine.chart.DialChart; //导入依赖的package包/类
public static final GraphicalView getDialChartView(Context context, CategorySeries categoryseries, DialRenderer dialrenderer)
{
a(categoryseries, dialrenderer);
return new GraphicalView(context, new DialChart(categoryseries, dialrenderer));
}
示例3: getDialChartView
import org.achartengine.chart.DialChart; //导入依赖的package包/类
/**
* Creates a dial chart view that can be used to start the graphical view
* activity.
*
* @param context the context
* @param dataset the category series dataset (cannot be null)
* @param renderer the dial renderer (cannot be null)
* @return a pie chart view
* @throws IllegalArgumentException if dataset is null or renderer is null or
* if the dataset number of items is different than the number of
* series renderers
*/
public static final GraphicalView getDialChartView(Context context, CategorySeries dataset,
DialRenderer renderer) {
checkParameters(dataset, renderer);
DialChart chart = new DialChart(dataset, renderer);
return new GraphicalView(context, chart);
}
示例4: getDialChartIntent
import org.achartengine.chart.DialChart; //导入依赖的package包/类
/**
* Creates a dial chart intent that can be used to start the graphical view
* activity.
*
* @param context the context
* @param dataset the category series dataset (cannot be null)
* @param renderer the dial renderer (cannot be null)
* @param activityTitle the graphical chart activity title
* @return a dial chart intent
* @throws IllegalArgumentException if dataset is null or renderer is null or
* if the dataset number of items is different than the number of
* series renderers
*/
public static final Intent getDialChartIntent(Context context, CategorySeries dataset,
DialRenderer renderer, String activityTitle) {
checkParameters(dataset, renderer);
Intent intent = new Intent(context, GraphicalActivity.class);
DialChart chart = new DialChart(dataset, renderer);
intent.putExtra(CHART, chart);
intent.putExtra(TITLE, activityTitle);
return intent;
}