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

Java CubicLineChart类代码示例

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

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



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

示例1: getCubicLineChartIntent

import org.achartengine.chart.CubicLineChart; //导入依赖的package包/类
public static final Intent getCubicLineChartIntent(Context context, XYMultipleSeriesDataset xymultipleseriesdataset, XYMultipleSeriesRenderer xymultipleseriesrenderer, float f, String s)
{
    a(xymultipleseriesdataset, xymultipleseriesrenderer);
    Intent intent = new Intent(context, org/achartengine/GraphicalActivity);
    intent.putExtra("chart", new CubicLineChart(xymultipleseriesdataset, xymultipleseriesrenderer, f));
    intent.putExtra("title", s);
    return intent;
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:9,代码来源:ChartFactory.java


示例2: getCubeLineChartView

import org.achartengine.chart.CubicLineChart; //导入依赖的package包/类
public static final GraphicalView getCubeLineChartView(Context context, XYMultipleSeriesDataset xymultipleseriesdataset, XYMultipleSeriesRenderer xymultipleseriesrenderer, float f)
{
    a(xymultipleseriesdataset, xymultipleseriesrenderer);
    return new GraphicalView(context, new CubicLineChart(xymultipleseriesdataset, xymultipleseriesrenderer, f));
}
 
开发者ID:vishnudevk,项目名称:MiBandDecompiled,代码行数:6,代码来源:ChartFactory.java


示例3: initCubicLineChart

import org.achartengine.chart.CubicLineChart; //导入依赖的package包/类
private CubicLineChart initCubicLineChart() {
    XYMultipleSeriesDataset dataSet = new XYMultipleSeriesDataset();
    temperature = new XYSeries("Temperature");
    humidity = new XYSeries("Humidity");
    dataSet.addSeries(temperature);
    dataSet.addSeries(humidity);

    XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer(2);
    renderer.setAxisTitleTextSize(16);
    renderer.setChartTitleTextSize(20);
    renderer.setLabelsTextSize(15);
    renderer.setLegendTextSize(15);
    renderer.setPointSize(5f);
    renderer.setMargins(new int[]{20, 30, 15, 20});

    renderer.setChartTitle("Environment Condition");
    renderer.setXTitle("Time Elapsed (in seconds)");
    renderer.setYTitle("°C / %rh", 0);

    renderer.setAxesColor(Color.LTGRAY);
    renderer.setXLabels(12);
    renderer.setYLabels(10);
    renderer.setShowGrid(true);
    renderer.setXLabelsAlign(Align.RIGHT);
    renderer.setYLabelsAlign(Align.RIGHT);
    renderer.setZoomButtonsVisible(true);
    renderer.setPanLimits(new double[]{-10, 20, -10, 40});
    renderer.setZoomLimits(new double[]{-10, 20, -10, 40});
    renderer.setZoomRate(1.05f);
    renderer.setLabelsColor(Color.WHITE);
    renderer.setXLabelsColor(Color.GREEN);
    renderer.setYLabelsColor(0, Color.BLUE);
    renderer.setYLabelsColor(1, Color.YELLOW);

    renderer.setYAxisAlign(Align.RIGHT, 1);
    renderer.setYLabelsAlign(Align.LEFT, 1);

    renderer.addSeriesRenderer(getTemperatureSeriesRenderer());
    renderer.addSeriesRenderer(getHumiditySeriesRenderer());

    return new CubicLineChart(dataSet, renderer, 0.3f);
}
 
开发者ID:hanqin,项目名称:Ardroid,代码行数:43,代码来源:MainActivity.java


示例4: getCubeLineChartView

import org.achartengine.chart.CubicLineChart; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:sdrausty,项目名称:buildAPKsApps,代码行数:18,代码来源:ChartFactory.java


示例5: getCubicLineChartIntent

import org.achartengine.chart.CubicLineChart; //导入依赖的package包/类
/**
 * 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;
}
 
开发者ID:sdrausty,项目名称:buildAPKsApps,代码行数:27,代码来源:ChartFactory.java



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
Java SyntheticResource类代码示例发布时间:2022-05-23
下一篇:
Java HsqlTimer类代码示例发布时间: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