本文整理汇总了Java中org.achartengine.renderer.XYSeriesRenderer.setFillPoints方法的典型用法代码示例。如果您正苦于以下问题:Java XYSeriesRenderer.setFillPoints方法的具体用法?Java XYSeriesRenderer.setFillPoints怎么用?Java XYSeriesRenderer.setFillPoints使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.achartengine.renderer.XYSeriesRenderer
的用法示例。
在下文中一共展示了XYSeriesRenderer.setFillPoints方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: addAlertSeries
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
private void addAlertSeries() {
TimeSeries alertSeries = new TimeSeries("Alerts");
long alertTime = _maxTime - 5000 * 60;
alertSeries.add(alertTime, Long.MAX_VALUE);
alertSeries.add(alertTime, Long.MIN_VALUE);
_dataSet.addSeries(alertSeries);
// create new renderer for the new series
XYSeriesRenderer renderer = new XYSeriesRenderer();
_multipleSeriesRenderer.addSeriesRenderer(renderer);
renderer.setPointStyle(PointStyle.POINT);
renderer.setColor(Color.RED);
renderer.setFillPoints(false);
renderer.setDisplayChartValues(false);
// renderer.setDisplayChartValuesDistance(1);
// renderer.setChartValuesTextSize(30f);
renderer.setShowLegendItem(false);
}
示例2: getDemoRenderer
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
private XYMultipleSeriesRenderer getDemoRenderer() {
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
renderer.setAxisTitleTextSize(HeartRateMonitor.CHART_AXIS_TITLE_SIZE);
renderer.setChartTitleTextSize(HeartRateMonitor.CHART_TITLE_SIZE);
renderer.setLabelsTextSize(HeartRateMonitor.CHART_LABELS_TEXT_SIZE);
renderer.setLegendTextSize(HeartRateMonitor.CHART_LEGEND_TEXT_SIZE);
renderer.setPointSize(HeartRateMonitor.CHART_POINT_SIZE);
renderer.setMarginsColor(Color.WHITE);
renderer.setMargins(new int[]{20, 20, 15, 0});
XYSeriesRenderer r = new XYSeriesRenderer();
r.setColor(Color.RED);
r.setPointStyle(PointStyle.SQUARE);
r.setFillBelowLine(true);
r.setFillBelowLineColor(Color.WHITE);
r.setFillPoints(true);
renderer.addSeriesRenderer(r);
return renderer;
}
示例3: getDemoRenderer
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
private XYMultipleSeriesRenderer getDemoRenderer() {
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
renderer.setAxisTitleTextSize(HeartRateMonitor.CHART_AXIS_TITLE_SIZE);
renderer.setChartTitleTextSize(HeartRateMonitor.CHART_TITLE_SIZE);
renderer.setLabelsTextSize(HeartRateMonitor.CHART_LABELS_TEXT_SIZE);
renderer.setLegendTextSize(HeartRateMonitor.CHART_LEGEND_TEXT_SIZE);
renderer.setPointSize(HeartRateMonitor.CHART_POINT_SIZE);
renderer.setMarginsColor(Color.WHITE);
renderer.setMargins(new int[]{20, 30, 15, 0});
XYSeriesRenderer r = new XYSeriesRenderer();
r.setColor(Color.BLUE);
r.setPointStyle(PointStyle.SQUARE);
r.setFillBelowLine(true);
r.setFillBelowLineColor(Color.WHITE);
r.setFillPoints(true);
renderer.addSeriesRenderer(r);
return renderer;
}
示例4: LineGraphView
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
/**
* This constructor will set some properties of single chart and some properties of whole graph
*/
public LineGraphView() {
//add single line chart mSeries
mDataset.addSeries(mSeries);
//XYSeriesRenderer is used to set the properties like chart color, style of each point, etc. of single chart
final XYSeriesRenderer seriesRenderer = new XYSeriesRenderer();
//set line chart color to Black
seriesRenderer.setColor(Color.BLACK);
//set line chart style to square points
seriesRenderer.setPointStyle(PointStyle.SQUARE);
seriesRenderer.setFillPoints(true);
final XYMultipleSeriesRenderer renderer = mMultiRenderer;
//set whole graph background color to transparent color
renderer.setBackgroundColor(Color.TRANSPARENT);
renderer.setMargins(new int[] { 50, 65, 40, 5 }); // top, left, bottom, right
renderer.setMarginsColor(Color.argb(0x00, 0x01, 0x01, 0x01));
renderer.setAxesColor(Color.BLACK);
renderer.setAxisTitleTextSize(24);
renderer.setShowGrid(true);
renderer.setGridColor(Color.LTGRAY);
renderer.setLabelsColor(Color.BLACK);
renderer.setYLabelsColor(0, Color.DKGRAY);
renderer.setYLabelsAlign(Align.RIGHT);
renderer.setYLabelsPadding(4.0f);
renderer.setXLabelsColor(Color.DKGRAY);
renderer.setLabelsTextSize(20);
renderer.setLegendTextSize(20);
//Disable zoom
renderer.setPanEnabled(false, false);
renderer.setZoomEnabled(false, false);
//set title to x-axis and y-axis
renderer.setXTitle(" Time (seconds)");
renderer.setYTitle(" BPM");
renderer.addSeriesRenderer(seriesRenderer);
}
示例5: getReportRenderer
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
private XYSeriesRenderer getReportRenderer(int color) {
int displayChartValueDistance = 40;
int lineWidth = 3;
XYSeriesRenderer reportRenderer = new XYSeriesRenderer();
reportRenderer.setPointStyle(PointStyle.CIRCLE);
reportRenderer.setFillPoints(true);
reportRenderer.setColor(color);
reportRenderer.setLineWidth(lineWidth);
reportRenderer.setDisplayChartValues(true);
reportRenderer.setDisplayChartValuesDistance(displayChartValueDistance);
return reportRenderer;
}
示例6: prepareAccelerometerSeries
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
private void prepareAccelerometerSeries() {
accelerometerSeries = new TimeSeries(ACCELEROMETER_SERIES_TITLE);
dataset.addSeries(accelerometerSeries);
XYSeriesRenderer renderer = new XYSeriesRenderer();
renderer.setPointStyle(PointStyle.CIRCLE);
renderer.setFillPoints(true);
renderer.setColor(Color.BLUE);
this.renderer.addSeriesRenderer(renderer);
}
示例7: buildXYSeriesRender
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
protected XYSeriesRenderer buildXYSeriesRender(int color, PointStyle style){
XYSeriesRenderer renderer = new XYSeriesRenderer();
renderer.setColor(color);
renderer.setPointStyle(style);
renderer.setFillPoints(true);
renderer.setDisplayChartValues(true);
//Chaning size in graph
renderer.setLineWidth(3);
renderer.setChartValuesTextSize(25.0f);
return renderer;
}
示例8: buildXYSeriesRender
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
protected XYSeriesRenderer buildXYSeriesRender(int color, PointStyle style){
XYSeriesRenderer renderer = new XYSeriesRenderer();
renderer.setColor(color);
renderer.setPointStyle(style);
renderer.setFillPoints(true);
renderer.setDisplayChartValues(true);
//Chaning size in graph
renderer.setLineWidth(3);
renderer.setChartValuesTextSize(25.0f);
renderer.setAnnotationsTextSize(20.0f);
return renderer;
}
示例9: initChart
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
private void initChart() {
mCurrentSeries = new XYSeries("Sample Data");
mRenderer.setApplyBackgroundColor(true);
mRenderer.setBackgroundColor(Color.parseColor("#555555"));
mDataset.addSeries(mCurrentSeries);
mRenderer.setShowAxes(false); //change back
mRenderer.clearXTextLabels();
//mRenderer.clearYTextLabels();
mRenderer.setLabelsTextSize(16f);
mRenderer.setYLabels(5);
mRenderer.setShowAxes(false);
mRenderer.setXLabels(0);
mCurrentRenderer = new XYSeriesRenderer();
mCurrentRenderer.setLineWidth(6);
mCurrentRenderer.setShowLegendItem(false);
mCurrentRenderer.setFillPoints(true);
mCurrentRenderer.setColor(Color.parseColor("#FFFFFF"));
mCurrentSeries.setTitle("");
mRenderer.addSeriesRenderer(mCurrentRenderer);
mRenderer.setMargins(new int[]{0, 12, 0, 0});
mRenderer.setShowLegend(false);
mRenderer.setMarginsColor(Color.parseColor("#555555"));
mRenderer.setPanEnabled(false, false);
mRenderer.setZoomEnabled(false, false);
}
示例10: buildRenderer
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
public XYMultipleSeriesRenderer buildRenderer(int[] colors, PointStyle[] styles, boolean fill) {
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
int length = colors.length;
for (int i = 0; i < length; i++) {
XYSeriesRenderer r = new XYSeriesRenderer();
r.setColor(colors[i]);
r.setPointStyle(styles[i]);
r.setFillPoints(fill);
renderer.addSeriesRenderer(r); //將座標變成線加入圖中顯示
}
return renderer;
}
示例11: renderSeries
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
private void renderSeries(XYMultipleSeriesDataset dataset, XYMultipleSeriesRenderer renderer) {
XYSeries series = getSeries();
fillSeries(series);
dataset.addSeries(series);
// create a new renderer for the new series
XYSeriesRenderer serieRenderer = new XYSeriesRenderer();
renderer.addSeriesRenderer(serieRenderer);
// set some renderer properties
serieRenderer.setPointStyle(PointStyle.CIRCLE);
serieRenderer.setFillPoints(true);
}
示例12: onActivityCreated
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
@Override
public void onActivityCreated(final Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
Log.d(TAG, "onActivityCreated");
mViewZoomIn = getActivity().findViewById(R.id.zoom_in);
mViewZoomOut = getActivity().findViewById(R.id.zoom_out);
mViewZoomReset = getActivity().findViewById(R.id.zoom_reset);
mViewZoomIn.setOnClickListener(this);
mViewZoomOut.setOnClickListener(this);
mViewZoomReset.setOnClickListener(this);
pulseSeries = new TimeSeries("Pulse");
if (mPulses.size() > 0) {
for (Pulse p : mPulses) {
pulseSeries.add(new Date(p.getTime()), p.getValue());
}
}
mDataset.addSeries(pulseSeries);
// graph itself
XYSeriesRenderer pulseRenderer = new XYSeriesRenderer();
pulseRenderer.setDisplayChartValues(true);
pulseRenderer.setChartValuesTextSize(25);
pulseRenderer.setPointStyle(PointStyle.CIRCLE);
pulseRenderer.setColor(Color.RED);
pulseRenderer.setFillPoints(true);
pulseRenderer.setLineWidth(3);
mRenderer.addSeriesRenderer(pulseRenderer);
maxXRange = pulseSeries.getMaxX();
minXRange = pulseSeries.getMinX();
}
示例13: buildRenderer
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
private XYMultipleSeriesRenderer buildRenderer(int[] colors, PointStyle[] styles, boolean fill) {
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
int length = colors.length;
for (int i = 0; i < length; i++) {
XYSeriesRenderer r = new XYSeriesRenderer();
r.setColor(colors[i]);
r.setPointStyle(styles[i]);
r.setFillPoints(fill);
renderer.addSeriesRenderer(r); //�N�y���ܦ��u�[�J�Ϥ����
}
return renderer;
}
示例14: buildNewChart
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
protected XYSeriesRenderer buildNewChart(XYSeriesRenderer chartIn, int chartColor){
chartIn.setColor(chartColor);
chartIn.setPointStyle(PointStyle.CIRCLE);
chartIn.setFillPoints(true);
return chartIn;
}
示例15: buildRenderer
import org.achartengine.renderer.XYSeriesRenderer; //导入方法依赖的package包/类
/**
* Build ECG Chart renderer.
* @return ecg chart renderer
*/
private XYMultipleSeriesRenderer buildRenderer() {
XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
for (int i = 0; i < DATA_COUNT; i++) {
XYSeriesRenderer r = new XYSeriesRenderer();
r.setColor(COLORS[i]);
r.setLineWidth(4f);
r.setPointStyle(PointStyle.CIRCLE);
r.setFillPoints(true);
r.setPointStrokeWidth(1f);
renderer.addSeriesRenderer(r);
}
renderer.setPointSize(1f);
renderer.setChartTitle("心電");
renderer.setChartTitleTextSize(CHART_TITLE_SIZE);
renderer.setXTitle("経過時間 [ms]");
renderer.setYTitle(" [μv]");
renderer.setLabelsTextSize(LABELS_SIZE);
renderer.setLabelsColor(TITLE_COLOR);
renderer.setXLabelsAlign(Paint.Align.LEFT);
renderer.setYLabelsAlign(Paint.Align.RIGHT);
renderer.setXLabelsColor(XLABEL_COLOR);
renderer.setYLabelsColor(0, YLABEL_COLOR);
renderer.setAxisTitleTextSize(AXIS_TITLE_SIZE);
renderer.setAxesColor(AXIS_COLOR);
renderer.setXAxisMin(mMinX);
renderer.setXAxisMax(mMaxX);
renderer.setYAxisMin(-3.0);
renderer.setYAxisMax(3.0);
renderer.setShowGridX(true);
renderer.setShowGridY(true);
renderer.setGridColor(GRID_COLOR);
renderer.setApplyBackgroundColor(true);
renderer.setBackgroundColor(Color.BLACK);
renderer.setMargins(new int[] {16, 48, 16, 8 });
renderer.setMarginsColor(Color.argb(0, 255, 255, 255));
renderer.setPanEnabled(false, false);
renderer.setShowLegend(true);
renderer.setLegendTextSize(15);
renderer.setFitLegend(false);
renderer.setZoomButtonsVisible(false);
renderer.setZoomEnabled(false, false);
return renderer;
}