资源简介
血压的曲线表,横轴是时间,纵轴是整形。用来展现血压和时间的关系。
代码片段和文件信息
/**
* Copyright (C) 2009 - 2012 SC 4ViewSoft SRL
*
* Licensed under the Apache License Version 2.0 (the “License“);
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.achartengine;
import org.achartengine.chart.BarChart;
import org.achartengine.chart.BarChart.Type;
import org.achartengine.chart.BubbleChart;
import org.achartengine.chart.CombinedXYChart;
import org.achartengine.chart.CubicLineChart;
import org.achartengine.chart.DialChart;
import org.achartengine.chart.DoughnutChart;
import org.achartengine.chart.LineChart;
import org.achartengine.chart.PieChart;
import org.achartengine.chart.RangeBarChart;
import org.achartengine.chart.ScatterChart;
import org.achartengine.chart.TimeChart;
import org.achartengine.chart.XYChart;
import org.achartengine.model.CategorySeries;
import org.achartengine.model.MultipleCategorySeries;
import org.achartengine.model.XYMultipleSeriesDataset;
import org.achartengine.renderer.DefaultRenderer;
import org.achartengine.renderer.DialRenderer;
import org.achartengine.renderer.XYMultipleSeriesRenderer;
import android.content.Context;
import android.content.Intent;
/**
* Utility methods for creating chart views or intents.
*/
public class ChartFactory {
/** The key for the chart data. */
public static final String CHART = “chart“;
/** The key for the chart graphical activity title. */
public static final String title = “title“;
private ChartFactory() {
// empty for now
}
/**
* Creates a 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 getLineChartView(Context context
XYMultipleSeriesDataset dataset XYMultipleSeriesRenderer renderer) {
checkParameters(dataset renderer);
XYChart chart = new LineChart(dataset renderer);
return new GraphicalView(context chart);
}
/**
* 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 IllegalArgume
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2013-01-21 17:28 MyGraph\
文件 415 2013-01-21 17:28 MyGraph\.classpath
文件 843 2013-01-21 17:26 MyGraph\.project
文件 867 2013-01-21 17:28 MyGraph\AndroidManifest.xm
目录 0 2013-01-21 17:28 MyGraph\achartengine\
目录 0 2013-01-21 17:28 MyGraph\achartengine\org\
目录 0 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\
目录 0 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\
文件 1044 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\all-wcprops
文件 1447 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\entries
目录 0 2013-01-21 17:29 MyGraph\achartengine\org\achartengine\.svn\prop-ba
目录 0 2013-01-21 17:29 MyGraph\achartengine\org\achartengine\.svn\props\
目录 0 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\text-ba
文件 30767 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\text-ba
文件 1587 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\text-ba
文件 10109 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\text-ba
文件 1626 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\text-ba
文件 6412 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\text-ba
文件 3952 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\text-ba
文件 145 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\text-ba
目录 0 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\.svn\tmp\
目录 0 2013-01-21 17:29 MyGraph\achartengine\org\achartengine\.svn\tmp\prop-ba
目录 0 2013-01-21 17:29 MyGraph\achartengine\org\achartengine\.svn\tmp\props\
目录 0 2013-01-21 17:29 MyGraph\achartengine\org\achartengine\.svn\tmp\text-ba
文件 30582 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\ChartFactory.java
文件 1587 2012-07-16 10:32 MyGraph\achartengine\org\achartengine\GraphicalActivity.java
文件 4406 2013-01-21 09:42 MyGraph\achartengine\org\achartengine\GraphicalView.java
文件 1626 2012-07-16 10:32 MyGraph\achartengine\org\achartengine\ITouchHandler.java
目录 0 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\chart\
目录 0 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\chart\.svn\
文件 2862 2013-01-21 17:28 MyGraph\achartengine\org\achartengine\chart\.svn\all-wcprops
............此处省略377个文件信息
评论
共有 条评论