本文整理汇总了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;未经允许,请勿转载。 |
请发表评论