• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java MultipleCategorySeries类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.achartengine.model.MultipleCategorySeries的典型用法代码示例。如果您正苦于以下问题:Java MultipleCategorySeries类的具体用法?Java MultipleCategorySeries怎么用?Java MultipleCategorySeries使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MultipleCategorySeries类属于org.achartengine.model包,在下文中一共展示了MultipleCategorySeries类的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: getDonutMultiipleCategorySeries

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
private MultipleCategorySeries getDonutMultiipleCategorySeries(double[] a) {

		MultipleCategorySeries series = new MultipleCategorySeries("");
		List<double[]> values = new ArrayList<double[]>();

		values.add(a);
		values.add(new double[] { 0, 0 });

		List<String[]> titles = new ArrayList<String[]>();
		titles.clear();
		titles.add(new String[] { "P1", "p" });
		titles.add(new String[] { "P2", "p" });

		series.clear();
		int k = 0;
		for (double[] value : values) {
			series.add(titles.get(k), value);
			k++;
		}

		return series;

	}
 
开发者ID:asimiqbalmalik,项目名称:DemoDoughnutChartWithTextInside,代码行数:24,代码来源:MainActivity.java


示例2: a

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
private static boolean a(MultipleCategorySeries multiplecategoryseries, int i)
{
    int j = multiplecategoryseries.getCategoriesCount();
    int k = 0;
    boolean flag = true;
    while (k < j && flag) 
    {
        if (multiplecategoryseries.getValues(k).length == multiplecategoryseries.getTitles(k).length)
        {
            flag = true;
        } else
        {
            flag = false;
        }
        k++;
    }
    return flag;
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:19,代码来源:ChartFactory.java


示例3: checkMultipleSeriesItems

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
private static boolean checkMultipleSeriesItems(MultipleCategorySeries dataset, int value) {
  int count = dataset.getCategoriesCount();
  boolean equal = true;
  for (int k = 0; k < count && equal; k++) {
    equal = dataset.getValues(k).length == dataset.getTitles(k).length;
  }
  return equal;
}
 
开发者ID:sdrausty,项目名称:buildAPKsApps,代码行数:9,代码来源:ChartFactory.java


示例4: buildMultipleCategoryDataset

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
/**
 * Builds a multiple category series using the provided values.
 * 
 * @param titles the series titles
 * @param values the values
 * @return the category series
 */
protected MultipleCategorySeries buildMultipleCategoryDataset(String title,
    List<String[]> titles, List<double[]> values) {
  MultipleCategorySeries series = new MultipleCategorySeries(title);
  int k = 0;
  for (double[] value : values) {
    series.add(2007 + k + "", titles.get(k), value);
    k++;
  }
  return series;
}
 
开发者ID:ddanny,项目名称:achartengine,代码行数:18,代码来源:AbstractDemoChart.java


示例5: buildMultipleCategoryDataset

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
/**
 * Builds a multiple category series using the provided values.
 * 
 * @param titles
 *            the series titles
 * @param values
 *            the values
 * @return the category series
 */
protected MultipleCategorySeries buildMultipleCategoryDataset(String title,
		List<String[]> titles, List<double[]> values) {
	MultipleCategorySeries series = new MultipleCategorySeries(title);
	int k = 0;
	for (double[] value : values) {
		series.add(2007 + k + "", titles.get(k), value);
		k++;
	}
	return series;
}
 
开发者ID:jhmgbl,项目名称:learnforandroidfragAS,代码行数:20,代码来源:AbstractDemoChart.java


示例6: getDoughnutChartIntent

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
public static final Intent getDoughnutChartIntent(Context context, MultipleCategorySeries multiplecategoryseries, DefaultRenderer defaultrenderer, String s)
{
    a(multiplecategoryseries, defaultrenderer);
    Intent intent = new Intent(context, org/achartengine/GraphicalActivity);
    intent.putExtra("chart", new DoughnutChart(multiplecategoryseries, defaultrenderer));
    intent.putExtra("title", s);
    return intent;
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:9,代码来源:ChartFactory.java


示例7: getDoughnutChartView

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
public static final GraphicalView getDoughnutChartView(Context context, MultipleCategorySeries multiplecategoryseries, DefaultRenderer defaultrenderer)
{
    a(multiplecategoryseries, defaultrenderer);
    return new GraphicalView(context, new DoughnutChart(multiplecategoryseries, defaultrenderer));
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:6,代码来源:ChartFactory.java


示例8: DoughnutChart

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
public DoughnutChart(MultipleCategorySeries multiplecategoryseries, DefaultRenderer defaultrenderer)
{
    super(null, defaultrenderer);
    a = multiplecategoryseries;
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:6,代码来源:DoughnutChart.java


示例9: getDoughnutChartView

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
/**
 * Creates a doughnut chart view that can be used to start the graphical
 * view activity.
 * 
 * @param context the context
 * @param dataset the multiple category series dataset (cannot be null)
 * @param renderer the series 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 getDoughnutChartView(Context context,
    MultipleCategorySeries dataset, DefaultRenderer renderer) {
  checkParameters(dataset, renderer);
  DoughnutChart chart = new DoughnutChart(dataset, renderer);
  return new GraphicalView(context, chart);
}
 
开发者ID:sdrausty,项目名称:buildAPKsApps,代码行数:19,代码来源:ChartFactory.java


示例10: getDoughnutChartIntent

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
/**
 * Creates a doughnut chart intent that can be used to start the graphical
 * view activity.
 * 
 * @param context the context
 * @param dataset the multiple category series dataset (cannot be null)
 * @param renderer the series renderer (cannot be null)
 * @param activityTitle the graphical chart activity title
 * @return a pie 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 getDoughnutChartIntent(Context context,
    MultipleCategorySeries dataset, DefaultRenderer renderer, String activityTitle) {
  checkParameters(dataset, renderer);
  Intent intent = new Intent(context, GraphicalActivity.class);
  DoughnutChart chart = new DoughnutChart(dataset, renderer);
  intent.putExtra(CHART, chart);
  intent.putExtra(TITLE, activityTitle);
  return intent;
}
 
开发者ID:sdrausty,项目名称:buildAPKsApps,代码行数:23,代码来源:ChartFactory.java


示例11: checkParameters

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
/**
 * Checks the validity of the dataset and renderer parameters.
 * 
 * @param dataset the category series dataset (cannot be null)
 * @param renderer the series renderer (cannot be null)
 * @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
 */
private static void checkParameters(MultipleCategorySeries dataset, DefaultRenderer renderer) {
  if (dataset == null || renderer == null
      || !checkMultipleSeriesItems(dataset, renderer.getSeriesRendererCount())) {
    throw new IllegalArgumentException(
        "Titles and values should be not null and the dataset number of items should be equal to the number of series renderers");
  }
}
 
开发者ID:sdrausty,项目名称:buildAPKsApps,代码行数:17,代码来源:ChartFactory.java


示例12: getDoughnutChartView

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
/**
 * Creates a doughnut chart view that can be used to start the graphical view
 * activity.
 * 
 * @param context the context
 * @param dataset the multiple category series dataset (cannot be null)
 * @param renderer the series 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 getDoughnutChartView(Context context,
    MultipleCategorySeries dataset, DefaultRenderer renderer) {
  checkParameters(dataset, renderer);
  DoughnutChart chart = new DoughnutChart(dataset, renderer);
  return new GraphicalView(context, chart);
}
 
开发者ID:ddanny,项目名称:achartengine,代码行数:19,代码来源:ChartFactory.java


示例13: DoughnutChart

import org.achartengine.model.MultipleCategorySeries; //导入依赖的package包/类
/**
 * Builds a new doughnut chart instance.
 * 
 * @param dataset the series dataset
 * @param renderer the series renderer
 */
public DoughnutChart(MultipleCategorySeries dataset, DefaultRenderer renderer) {
  super(null, renderer);
  mDataset = dataset;
}
 
开发者ID:sdrausty,项目名称:buildAPKsApps,代码行数:11,代码来源:DoughnutChart.java



注:本文中的org.achartengine.model.MultipleCategorySeries类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java WorkerContext类代码示例发布时间:2022-05-22
下一篇:
Java LineChartOnValueSelectListener类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap