本文整理匯總了Java中org.achartengine.model.XYMultipleSeriesDataset.getSeriesCount方法的典型用法代碼示例。如果您正苦於以下問題:Java XYMultipleSeriesDataset.getSeriesCount方法的具體用法?Java XYMultipleSeriesDataset.getSeriesCount怎麽用?Java XYMultipleSeriesDataset.getSeriesCount使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.achartengine.model.XYMultipleSeriesDataset
的用法示例。
在下文中一共展示了XYMultipleSeriesDataset.getSeriesCount方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getCombinedXYChartIntent
import org.achartengine.model.XYMultipleSeriesDataset; //導入方法依賴的package包/類
/**
* Creates a combined XY 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 types the chart types (cannot be null)
* @param activityTitle the graphical chart activity title
* @return a combined XY chart intent
* @throws IllegalArgumentException if dataset is null or renderer is null or
* if a dataset number of items is different than the number of
* series renderers or number of chart types
*/
public static final Intent getCombinedXYChartIntent(Context context,
XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, String[] types,
String activityTitle) {
if (dataset == null || renderer == null || types == null
|| dataset.getSeriesCount() != types.length) {
throw new IllegalArgumentException(
"Datasets, renderers and types should be not null and the datasets series count should be equal to the types length");
}
checkParameters(dataset, renderer);
Intent intent = new Intent(context, GraphicalActivity.class);
CombinedXYChart chart = new CombinedXYChart(dataset, renderer, types);
intent.putExtra(CHART, chart);
intent.putExtra(TITLE, activityTitle);
return intent;
}
示例2: fillInDiscontinuity
import org.achartengine.model.XYMultipleSeriesDataset; //導入方法依賴的package包/類
/**
* Creates a discontinuity of the satellites that has been seen but not reported in this batch
* of measurements
*/
private void fillInDiscontinuity(int tab, double referenceTimeSeconds) {
for (XYMultipleSeriesDataset dataSet : mDataSetList[tab]) {
for (int i = 0; i < dataSet.getSeriesCount(); i++) {
if (dataSet.getSeriesAt(i).getMaxX() < referenceTimeSeconds) {
dataSet.getSeriesAt(i).add(referenceTimeSeconds, MathHelper.NULL_VALUE);
}
}
}
}
示例3: a
import org.achartengine.model.XYMultipleSeriesDataset; //導入方法依賴的package包/類
private static void a(XYMultipleSeriesDataset xymultipleseriesdataset, XYMultipleSeriesRenderer xymultipleseriesrenderer)
{
if (xymultipleseriesdataset == null || xymultipleseriesrenderer == null || xymultipleseriesdataset.getSeriesCount() != xymultipleseriesrenderer.getSeriesRendererCount())
{
throw new IllegalArgumentException("Dataset and renderer should be not null and should have the same number of series");
} else
{
return;
}
}
示例4: getCombinedXYChartIntent
import org.achartengine.model.XYMultipleSeriesDataset; //導入方法依賴的package包/類
public static final Intent getCombinedXYChartIntent(Context context, XYMultipleSeriesDataset xymultipleseriesdataset, XYMultipleSeriesRenderer xymultipleseriesrenderer, String as[], String s)
{
if (xymultipleseriesdataset == null || xymultipleseriesrenderer == null || as == null || xymultipleseriesdataset.getSeriesCount() != as.length)
{
throw new IllegalArgumentException("Datasets, renderers and types should be not null and the datasets series count should be equal to the types length");
} else
{
a(xymultipleseriesdataset, xymultipleseriesrenderer);
Intent intent = new Intent(context, org/achartengine/GraphicalActivity);
intent.putExtra("chart", new CombinedXYChart(xymultipleseriesdataset, xymultipleseriesrenderer, as));
intent.putExtra("title", s);
return intent;
}
}
示例5: getCombinedXYChartView
import org.achartengine.model.XYMultipleSeriesDataset; //導入方法依賴的package包/類
public static final GraphicalView getCombinedXYChartView(Context context, XYMultipleSeriesDataset xymultipleseriesdataset, XYMultipleSeriesRenderer xymultipleseriesrenderer, String as[])
{
if (xymultipleseriesdataset == null || xymultipleseriesrenderer == null || as == null || xymultipleseriesdataset.getSeriesCount() != as.length)
{
throw new IllegalArgumentException("Dataset, renderer and types should be not null and the datasets series count should be equal to the types length");
} else
{
a(xymultipleseriesdataset, xymultipleseriesrenderer);
return new GraphicalView(context, new CombinedXYChart(xymultipleseriesdataset, xymultipleseriesrenderer, as));
}
}
示例6: getCombinedXYChartView
import org.achartengine.model.XYMultipleSeriesDataset; //導入方法依賴的package包/類
/**
* Creates a combined XY chart view.
*
* @param context the context
* @param dataset the multiple series dataset (cannot be null)
* @param renderer the multiple series renderer (cannot be null)
* @param types the chart types (cannot be null)
* @return a combined XY chart graphical view
* @throws IllegalArgumentException if dataset is null or renderer is null or
* if a dataset number of items is different than the number of
* series renderers or number of chart types
*/
public static final GraphicalView getCombinedXYChartView(Context context,
XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer, String[] types) {
if (dataset == null || renderer == null || types == null
|| dataset.getSeriesCount() != types.length) {
throw new IllegalArgumentException(
"Dataset, renderer and types should be not null and the datasets series count should be equal to the types length");
}
checkParameters(dataset, renderer);
CombinedXYChart chart = new CombinedXYChart(dataset, renderer, types);
return new GraphicalView(context, chart);
}
示例7: checkParameters
import org.achartengine.model.XYMultipleSeriesDataset; //導入方法依賴的package包/類
/**
* Checks the validity of the dataset and renderer parameters.
*
* @param dataset the multiple series dataset (cannot be null)
* @param renderer the multiple series renderer (cannot be null)
* @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
*/
private static void checkParameters(XYMultipleSeriesDataset dataset,
XYMultipleSeriesRenderer renderer) {
if (dataset == null || renderer == null
|| dataset.getSeriesCount() != renderer.getSeriesRendererCount()) {
throw new IllegalArgumentException(
"Dataset and renderer should be not null and should have the same number of series");
}
}