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

Java XYValueSeries类代码示例

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

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



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

示例1: execute

import org.achartengine.model.XYValueSeries; //导入依赖的package包/类
/**
 * Executes the chart demo.
 * 
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  XYMultipleSeriesDataset series = new XYMultipleSeriesDataset();
  XYValueSeries newTicketSeries = new XYValueSeries("New Tickets");
  newTicketSeries.add(1f, 2, 14);
  newTicketSeries.add(2f, 2, 12);
  newTicketSeries.add(3f, 2, 18);
  newTicketSeries.add(4f, 2, 5);
  newTicketSeries.add(5f, 2, 1);
  series.addSeries(newTicketSeries);
  XYValueSeries fixedTicketSeries = new XYValueSeries("Fixed Tickets");
  fixedTicketSeries.add(1f, 1, 7);
  fixedTicketSeries.add(2f, 1, 4);
  fixedTicketSeries.add(3f, 1, 18);
  fixedTicketSeries.add(4f, 1, 3);
  fixedTicketSeries.add(5f, 1, 1);
  series.addSeries(fixedTicketSeries);

  XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
  renderer.setAxisTitleTextSize(16);
  renderer.setChartTitleTextSize(20);
  renderer.setLabelsTextSize(15);
  renderer.setLegendTextSize(15);
  renderer.setMargins(new int[] { 20, 30, 15, 0 });
  XYSeriesRenderer newTicketRenderer = new XYSeriesRenderer();
  newTicketRenderer.setColor(Color.BLUE);
  renderer.addSeriesRenderer(newTicketRenderer);
  XYSeriesRenderer fixedTicketRenderer = new XYSeriesRenderer();
  fixedTicketRenderer.setColor(Color.GREEN);
  renderer.addSeriesRenderer(fixedTicketRenderer);

  setChartSettings(renderer, "Project work status", "Priority", "", 0.5, 5.5, 0, 5, Color.GRAY,
      Color.LTGRAY);
  renderer.setXLabels(7);
  renderer.setYLabels(0);
  renderer.setShowGrid(false);
  return ChartFactory.getBubbleChartIntent(context, series, renderer, "Project tickets");
}
 
开发者ID:ddanny,项目名称:achartengine,代码行数:44,代码来源:ProjectStatusBubbleChart.java


示例2: clickableAreasForPoints

import org.achartengine.model.XYValueSeries; //导入依赖的package包/类
protected ClickableArea[] clickableAreasForPoints(List list, List list1, float f, int i, int j)
{
    int k = list.size();
    XYValueSeries xyvalueseries = (XYValueSeries)mDataset.getSeriesAt(i);
    double d = 20D / xyvalueseries.getMaxValue();
    ClickableArea aclickablearea[] = new ClickableArea[k / 2];
    for (int l = 0; l < k; l += 2)
    {
        double d1 = 2D + d * xyvalueseries.getValue(j + l / 2);
        aclickablearea[l / 2] = new ClickableArea(new RectF(((Float)list.get(l)).floatValue() - (float)d1, ((Float)list.get(l + 1)).floatValue() - (float)d1, ((Float)list.get(l)).floatValue() + (float)d1, ((Float)list.get(l + 1)).floatValue() + (float)d1), ((Double)list1.get(l)).doubleValue(), ((Double)list1.get(l + 1)).doubleValue());
    }

    return aclickablearea;
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:15,代码来源:BubbleChart.java


示例3: drawSeries

import org.achartengine.model.XYValueSeries; //导入依赖的package包/类
public void drawSeries(Canvas canvas, Paint paint, List list, SimpleSeriesRenderer simpleseriesrenderer, float f, int i, int j)
{
    paint.setColor(((XYSeriesRenderer)simpleseriesrenderer).getColor());
    paint.setStyle(android.graphics.Paint.Style.FILL);
    int k = list.size();
    XYValueSeries xyvalueseries = (XYValueSeries)mDataset.getSeriesAt(i);
    double d = 20D / xyvalueseries.getMaxValue();
    for (int l = 0; l < k; l += 2)
    {
        double d1 = 2D + d * xyvalueseries.getValue(j + l / 2);
        a(canvas, paint, ((Float)list.get(l)).floatValue(), ((Float)list.get(l + 1)).floatValue(), (float)d1);
    }

}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:15,代码来源:BubbleChart.java


示例4: execute

import org.achartengine.model.XYValueSeries; //导入依赖的package包/类
/**
 * Executes the chart demo.
 * 
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  XYMultipleSeriesDataset series = new XYMultipleSeriesDataset();
  XYValueSeries newTicketSeries = new XYValueSeries("New Tickets");
  newTicketSeries.add(1, 2, 14);
  newTicketSeries.add(2, 2, 12);
  newTicketSeries.add(3, 2, 18);
  newTicketSeries.add(4, 2, 5);
  newTicketSeries.add(5, 2, 1);
  series.addSeries(newTicketSeries);
  XYValueSeries fixedTicketSeries = new XYValueSeries("Fixed Tickets");
  fixedTicketSeries.add(1, 1, 7);
  fixedTicketSeries.add(2, 1, 4);
  fixedTicketSeries.add(3, 1, 18);
  fixedTicketSeries.add(4, 1, 3);
  fixedTicketSeries.add(5, 1, 1);
  series.addSeries(fixedTicketSeries);

  XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
  renderer.setAxisTitleTextSize(16);
  renderer.setChartTitleTextSize(20);
  renderer.setLabelsTextSize(15);
  renderer.setLegendTextSize(15);
  renderer.setMargins(new int[] { 20, 30, 15, 0 });
  XYSeriesRenderer newTicketRenderer = new XYSeriesRenderer();
  newTicketRenderer.setColor(Color.BLUE);
  renderer.addSeriesRenderer(newTicketRenderer);
  XYSeriesRenderer fixedTicketRenderer = new XYSeriesRenderer();
  fixedTicketRenderer.setColor(Color.GREEN);
  renderer.addSeriesRenderer(fixedTicketRenderer);

  setChartSettings(renderer, "Project work status", "Priority", "", 0.5, 5.5, 0, 5, Color.GRAY,
      Color.LTGRAY);
  renderer.setXLabels(7);
  renderer.setYLabels(0);
  renderer.setShowGrid(false);
  return ChartFactory.getBubbleChartIntent(context, series, renderer, "Project tickets");
}
 
开发者ID:InQBarna,项目名称:AChartEngine,代码行数:44,代码来源:ProjectStatusBubbleChart.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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