當前位置: 首頁>>代碼示例>>Java>>正文


Java XYSeriesRenderer.setPointStyle方法代碼示例

本文整理匯總了Java中org.achartengine.renderer.XYSeriesRenderer.setPointStyle方法的典型用法代碼示例。如果您正苦於以下問題:Java XYSeriesRenderer.setPointStyle方法的具體用法?Java XYSeriesRenderer.setPointStyle怎麽用?Java XYSeriesRenderer.setPointStyle使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.achartengine.renderer.XYSeriesRenderer的用法示例。


在下文中一共展示了XYSeriesRenderer.setPointStyle方法的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);

	}
 
開發者ID:crownstone,項目名稱:fridge-file-app,代碼行數:22,代碼來源:StatisticsActivity.java

示例2: addRenderer

import org.achartengine.renderer.XYSeriesRenderer; //導入方法依賴的package包/類
@Override
public void addRenderer(int series, Activity activity, int color) {
    XYSeriesRenderer mCurrentRenderer = new XYSeriesRenderer();
    mCurrentRenderer.setLineWidth(getDPI(3));
    mCurrentRenderer.setColor(color);
    // Include low and max value
    mCurrentRenderer.setDisplayBoundingPoints(true);
    // we add point markers
    mCurrentRenderer.setPointStyle(PointStyle.CIRCLE);
    mCurrentRenderer.setPointStrokeWidth(getDPI(5));
    mCurrentRenderer.setShowLegendItem(false);

    XYSeries seriesData = new XYSeries("data" + series);
    mSeriesDataSet.add(series, seriesData);

    mRenderer.addSeriesRenderer(series, mCurrentRenderer);
}
 
開發者ID:blackcj,項目名稱:GoogleFitExample,代碼行數:18,代碼來源:MultipleLineGraphs.java

示例3: setRenderer

import org.achartengine.renderer.XYSeriesRenderer; //導入方法依賴的package包/類
protected void setRenderer(XYMultipleSeriesRenderer renderer, int[] colors,
		PointStyle[] styles) {
	renderer.setAxisTitleTextSize(16);
	renderer.setChartTitleTextSize(20);
	renderer.setLabelsTextSize(15);
	renderer.setLegendTextSize(15);
	renderer.setPointSize(5f);
	renderer.setMargins(new int[] { 20, 30, 15, 20 });
	int length = colors.length;
	for (int i = 0; i < length; i++) {
		XYSeriesRenderer r = new XYSeriesRenderer();
		r.setColor(colors[i]);
		r.setPointStyle(styles[i]);
		renderer.addSeriesRenderer(r);
	}
}
 
開發者ID:jhmgbl,項目名稱:learnforandroidfragAS,代碼行數:17,代碼來源:AbstractDemoChart.java

示例4: 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;
}
 
開發者ID:andrew749,項目名稱:HeartRateMonitor,代碼行數:19,代碼來源:DoneActivity.java

示例5: 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;
}
 
開發者ID:andrew749,項目名稱:HeartRateMonitor,代碼行數:23,代碼來源:HeartRateMonitor.java

示例6: buildRenderer

import org.achartengine.renderer.XYSeriesRenderer; //導入方法依賴的package包/類
private XYMultipleSeriesRenderer buildRenderer(Context context) {
    XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
    renderer.setAxisTitleTextSize(16);
    renderer.setChartTitleTextSize(0);
    renderer.setLabelsTextSize(15);
    renderer.setLegendTextSize(20);
    renderer.setLegendHeight(22);
    renderer.setPointSize(5f);
    renderer.setMargins(new int[] { 20, 30, 15, 20 });
    renderer.setChartTitle("");
    renderer.setXTitle(context.getResources().getString(R.string.X));
    renderer.setYTitle(context.getResources().getString(R.string.Y));
    renderer.setXAxisMin(Graph.MIN_HEIGHT_X);
    renderer.setXAxisMax(Graph.MAX_HEIGHT_X);
    renderer.setYAxisMin(Graph.MIN_HEIGHT_Y);
    renderer.setYAxisMax(Graph.MAX_HEIGHT_Y);
    renderer.setAxesColor(Color.GRAY);
    renderer.setLabelsColor(Color.LTGRAY);
    renderer.setYLabelsAlign(Align.RIGHT);
    renderer.setXLabels(20);
    renderer.setYLabels(20);
    renderer.setPanEnabled(true);
    renderer.setZoomEnabled(true);
    renderer.setShowGrid(true);
    renderer.setXAxisBold(true);
    renderer.setYAxisBold(true);
    renderer.setZoomButtonsVisible(false);
    renderer.setExternalZoomEnabled(true);
    XYSeriesRenderer r = new XYSeriesRenderer();
    r.setColor(context.getResources().getColor(R.color.graph_color));
    r.setPointStyle(PointStyle.POINT);
    r.setLineWidth(4f);
    renderer.addSeriesRenderer(r);
    return renderer;
}
 
開發者ID:gigabytedevelopers,項目名稱:CalcMate,代碼行數:36,代碼來源:Graph.java

示例7: 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);
}
 
開發者ID:runtimeco,項目名稱:Android-DFU-App,代碼行數:40,代碼來源:LineGraphView.java

示例8: 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;
}
 
開發者ID:Welloculus,項目名稱:MobileAppForPatient,代碼行數:13,代碼來源:ReportsActivity.java

示例9: setRenderer

import org.achartengine.renderer.XYSeriesRenderer; //導入方法依賴的package包/類
private void setRenderer(XYMultipleSeriesRenderer renderer, int[] colors, PointStyle[] styles) {
   renderer.setAxisTitleTextSize(16);
   renderer.setChartTitleTextSize(20);
   renderer.setLabelsTextSize(15);
   renderer.setLegendTextSize(15);
   renderer.setPointSize(5f);
   renderer.setMargins(new int[] { 20, 30, 15, 20 });
   int length = colors.length;
   for (int i = 0; i < length; i++) {
      XYSeriesRenderer r = new XYSeriesRenderer();
      r.setColor(colors[i]);
      r.setPointStyle(styles[i]);
      renderer.addSeriesRenderer(r);
   }
}
 
開發者ID:batoulapps,項目名稱:qamardeen-android,代碼行數:16,代碼來源:GraphWidget.java

示例10: setRenderer

import org.achartengine.renderer.XYSeriesRenderer; //導入方法依賴的package包/類
protected void setRenderer(XYMultipleSeriesRenderer renderer, int[] colors, PointStyle[] styles) {
  renderer.setAxisTitleTextSize(16);
  renderer.setChartTitleTextSize(20);
  renderer.setLabelsTextSize(15);
  renderer.setLegendTextSize(15);
  renderer.setPointSize(5f);
  renderer.setMargins(new int[] { 20, 30, 15, 20 });
  int length = colors.length;
  for (int i = 0; i < length; i++) {
    XYSeriesRenderer r = new XYSeriesRenderer();
    r.setColor(colors[i]);
    r.setPointStyle(styles[i]);
    renderer.addSeriesRenderer(r);
  }
}
 
開發者ID:ddanny,項目名稱:achartengine,代碼行數:16,代碼來源:AbstractDemoChart.java

示例11: 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);
}
 
開發者ID:MichalDanielDobrzanski,項目名稱:WalkingSynth,代碼行數:13,代碼來源:AchartEngineGraphView.java

示例12: 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;
}
 
開發者ID:leftdal,項目名稱:youslow,代碼行數:14,代碼來源:LineChart.java

示例13: 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;
}
 
開發者ID:leftdal,項目名稱:youslow,代碼行數:15,代碼來源:LineChartLast10.java

示例14: 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;
}
 
開發者ID:JackABK,項目名稱:SmartEPW_Android_App,代碼行數:13,代碼來源:ChartInitialization.java

示例15: 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);
}
 
開發者ID:Orange-OpenSource,項目名稱:latens,代碼行數:13,代碼來源:LatensGraphActivity.java


注:本文中的org.achartengine.renderer.XYSeriesRenderer.setPointStyle方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。