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


Java XYMultipleSeriesRenderer.setChartTitleTextSize方法代碼示例

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


在下文中一共展示了XYMultipleSeriesRenderer.setChartTitleTextSize方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: setUpRenderer

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的package包/類
/**
 * Set up a {@link XYMultipleSeriesRenderer} with the specs customized per plot tab.
 */
private void setUpRenderer(XYMultipleSeriesRenderer renderer, int tabNumber) {
  renderer.setXAxisMin(0);
  renderer.setXAxisMax(60);
  renderer.setYAxisMin(RENDER_HEIGHTS[tabNumber][0]);
  renderer.setYAxisMax(RENDER_HEIGHTS[tabNumber][1]);
  renderer.setYAxisAlign(Align.RIGHT, 0);
  renderer.setLegendTextSize(30);
  renderer.setLabelsTextSize(30);
  renderer.setYLabelsColor(0, Color.BLACK);
  renderer.setXLabelsColor(Color.BLACK);
  renderer.setFitLegend(true);
  renderer.setShowGridX(true);
  renderer.setMargins(new int[] {10, 10, 30, 10});
  // setting the plot untouchable
  renderer.setZoomEnabled(false, false);
  renderer.setPanEnabled(false, true);
  renderer.setClickEnabled(false);
  renderer.setMarginsColor(Color.WHITE);
  renderer.setChartTitle(mContext.getResources()
      .getStringArray(R.array.plot_titles)[tabNumber]);
  renderer.setChartTitleTextSize(50);
}
 
開發者ID:google,項目名稱:gps-measurement-tools,代碼行數:26,代碼來源:PlotFragment.java

示例2: configureRenderer

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的package包/類
/**
 * Set some ChartView settings
 * 
 * @param XYRenderer
 */
private void configureRenderer(XYMultipleSeriesRenderer XYRenderer)
{
    XYRenderer.setAxesColor(Color.LTGRAY);
    XYRenderer.setLabelsColor(Color.LTGRAY);
    XYRenderer.setZoomEnabled(false, false);
    XYRenderer.setAxisTitleTextSize(16);
    XYRenderer.setChartTitleTextSize(20);
    XYRenderer.setLabelsTextSize(15);
    XYRenderer.setLegendTextSize(15);
    XYRenderer.setPointSize(5f);
    int margin = mContext.getResources().getDimensionPixelSize(R.dimen.chart_title_margin);
    XYRenderer.setMargins(new int[] {margin, margin, margin, margin});
    XYRenderer.setShowGrid(true);
    XYRenderer.setXLabelsAlign(Align.RIGHT);
    XYRenderer.setYLabels(20);
    // if in ScrollView, need set
    XYRenderer.setInScroll(true);
}
 
開發者ID:EspressifApp,項目名稱:IOT-Espressif-Android,代碼行數:24,代碼來源:EspChartFactory.java

示例3: setRenderer

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的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: buildBarRenderer

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的package包/類
/**
 * Builds a bar multiple series renderer to use the provided colors.
 * 
 * @param colors
 *            the series renderers colors
 * @return the bar multiple series renderer
 */
protected XYMultipleSeriesRenderer buildBarRenderer(int[] colors) {
	XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
	renderer.setAxisTitleTextSize(16);
	renderer.setChartTitleTextSize(20);
	renderer.setLabelsTextSize(15);
	renderer.setLegendTextSize(15);

	int length = colors.length;
	for (int i = 0; i < length; i++) {
		SimpleSeriesRenderer r = new SimpleSeriesRenderer();
		r.setColor(colors[i]);
		renderer.addSeriesRenderer(r);
	}
	return renderer;
}
 
開發者ID:jhmgbl,項目名稱:learnforandroidfragAS,代碼行數:23,代碼來源:AbstractDemoChart.java

示例5: buildRenderer

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的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

示例6: setRenderer

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的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

示例7: setRenderer

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的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

示例8: buildBarRenderer

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的package包/類
/**
 * Builds a bar multiple series renderer to use the provided colors.
 * 
 * @param colors the series renderers colors
 * @return the bar multiple series renderer
 */
protected XYMultipleSeriesRenderer buildBarRenderer(int[] colors) {
  XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
  renderer.setAxisTitleTextSize(16);
  renderer.setChartTitleTextSize(20);
  renderer.setLabelsTextSize(15);
  renderer.setLegendTextSize(15);
  int length = colors.length;
  for (int i = 0; i < length; i++) {
    XYSeriesRenderer r = new XYSeriesRenderer();
    r.setColor(colors[i]);
    renderer.addSeriesRenderer(r);
  }
  return renderer;
}
 
開發者ID:ddanny,項目名稱:achartengine,代碼行數:21,代碼來源:AbstractDemoChart.java

示例9: execute

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的package包/類
/**
 * Executes the chart demo.
 * 
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  XYMultipleSeriesDataset series = new XYMultipleSeriesDataset();
  XYValueSeries newTicketSeries = new XYValueSeries("New Tickets");
  newTicketSeries.add(1f, 2, 14);
  newTicketSeries.add(2f, 2, 12);
  newTicketSeries.add(3f, 2, 18);
  newTicketSeries.add(4f, 2, 5);
  newTicketSeries.add(5f, 2, 1);
  series.addSeries(newTicketSeries);
  XYValueSeries fixedTicketSeries = new XYValueSeries("Fixed Tickets");
  fixedTicketSeries.add(1f, 1, 7);
  fixedTicketSeries.add(2f, 1, 4);
  fixedTicketSeries.add(3f, 1, 18);
  fixedTicketSeries.add(4f, 1, 3);
  fixedTicketSeries.add(5f, 1, 1);
  series.addSeries(fixedTicketSeries);

  XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
  renderer.setAxisTitleTextSize(16);
  renderer.setChartTitleTextSize(20);
  renderer.setLabelsTextSize(15);
  renderer.setLegendTextSize(15);
  renderer.setMargins(new int[] { 20, 30, 15, 0 });
  XYSeriesRenderer newTicketRenderer = new XYSeriesRenderer();
  newTicketRenderer.setColor(Color.BLUE);
  renderer.addSeriesRenderer(newTicketRenderer);
  XYSeriesRenderer fixedTicketRenderer = new XYSeriesRenderer();
  fixedTicketRenderer.setColor(Color.GREEN);
  renderer.addSeriesRenderer(fixedTicketRenderer);

  setChartSettings(renderer, "Project work status", "Priority", "", 0.5, 5.5, 0, 5, Color.GRAY,
      Color.LTGRAY);
  renderer.setXLabels(7);
  renderer.setYLabels(0);
  renderer.setShowGrid(false);
  return ChartFactory.getBubbleChartIntent(context, series, renderer, "Project tickets");
}
 
開發者ID:ddanny,項目名稱:achartengine,代碼行數:44,代碼來源:ProjectStatusBubbleChart.java

示例10: buildBarRenderer

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的package包/類
/**
 * Builds a bar multiple series renderer to use the provided colors.
 * 
 * @param colors the series renderers colors
 * @return the bar multiple series renderer
 */
protected XYMultipleSeriesRenderer buildBarRenderer(int[] colors) {
  XYMultipleSeriesRenderer renderer = new XYMultipleSeriesRenderer();
  renderer.setAxisTitleTextSize(16);
  renderer.setChartTitleTextSize(20);
  renderer.setLabelsTextSize(15);
  renderer.setLegendTextSize(15);
  int length = colors.length;
  for (int i = 0; i < length; i++) {
    SimpleSeriesRenderer r = new SimpleSeriesRenderer();
    r.setColor(colors[i]);
    renderer.addSeriesRenderer(r);
  }
  return renderer;
}
 
開發者ID:jaerith,項目名稱:BibliophilePlus_Android,代碼行數:21,代碼來源:ChartActivityBase.java

示例11: createGraph

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的package包/類
protected void createGraph() {
        graphRenderer = new XYMultipleSeriesRenderer();

        graphRenderer.setChartTitle("Line Graph");
        graphRenderer.setChartTitleTextSize(50);
        graphRenderer.setMargins(new int[] {100, 100, 70, 50});     // top, left, bottom, right

        graphRenderer.setBackgroundColor(Color.WHITE);
        graphRenderer.setMarginsColor(Color.parseColor("#FFFFFF"));
        graphRenderer.setAxesColor(Color.DKGRAY);

        graphRenderer.setXTitle("Time(sec)");
        graphRenderer.setYTitle("Value");
        graphRenderer.setAxisTitleTextSize(30);
        graphRenderer.setLabelsTextSize(25);
        graphRenderer.setYLabelsAlign(Paint.Align.RIGHT);

//        graphRenderer.setPointSize(50);
        graphRenderer.setLegendTextSize(30);

        graphRenderer.setXAxisMin(0);
        graphRenderer.setXAxisMax(100);
        graphRenderer.setZoomEnabled(false, false);

        graphDataSerieses = new XYSeries[sensorInfo.getType().getValueNumbers()];
        XYMultipleSeriesDataset dataset = new XYMultipleSeriesDataset();;
        for(int loop1 = 0 ; loop1 < sensorInfo.getType().getValueNumbers() ; loop1++) {
            graphDataSerieses[loop1] = new TimeSeries(sensorInfo.getType().getValueInfos()[loop1][0] + "(" + sensorInfo.getType().getValueInfos()[loop1][1] + ")");
            dataset.addSeries(graphDataSerieses[loop1]);

            XYSeriesRenderer seriesRenderer = new XYSeriesRenderer();
            seriesRenderer.setColor(Color.parseColor(COLORS[loop1]));
            seriesRenderer.setPointStyle(PointStyle.POINT);
            seriesRenderer.setLineWidth(3);
            graphRenderer.addSeriesRenderer(seriesRenderer);
        }
        graphView = ChartFactory.getLineChartView(this, dataset, graphRenderer);

        LinearLayout graphArea = (LinearLayout) findViewById(R.id.ll_graph_area);
        graphArea.addView(graphView);
        graphArea.setClickable(false);
    }
 
開發者ID:SKT-ThingPlug,項目名稱:thingplug-sdk-android,代碼行數:43,代碼來源:SensorDetailActivity.java

示例12: buildRenderer

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的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;
}
 
開發者ID:DeviceConnect,項目名稱:DeviceConnect-Android,代碼行數:60,代碼來源:HitoeProfileECGFragment.java

示例13: buildRenderer

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的package包/類
/**
 * Build chart's renderer.
 * @return 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("                [G]");

    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.WHITE);

    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;
}
 
開發者ID:DeviceConnect,項目名稱:DeviceConnect-Android,代碼行數:62,代碼來源:HitoeProfileDeviceOrientationFragment.java

示例14: execute

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的package包/類
/**
 * Executes the chart demo.
 * 
 * @param context the context
 * @return the built intent
 */
public Intent execute(Context context) {
  String[] titles = new String[] { "Sales for 2008", "Sales for 2007",
      "Difference between 2008 and 2007 sales" };
  List<double[]> values = new ArrayList<double[]>();
  values.add(new double[] { 14230, 12300, 14240, 15244, 14900, 12200, 11030, 12000, 12500, 15500,
      14600, 15000 });
  values.add(new double[] { 10230, 10900, 11240, 12540, 13500, 14200, 12530, 11200, 10500, 12500,
      11600, 13500 });
  int length = values.get(0).length;
  double[] diff = new double[length];
  for (int i = 0; i < length; i++) {
    diff[i] = values.get(0)[i] - values.get(1)[i];
  }
  values.add(diff);
  int[] colors = new int[] { Color.BLUE, Color.CYAN, Color.GREEN };
  PointStyle[] styles = new PointStyle[] { PointStyle.POINT, PointStyle.POINT, PointStyle.POINT };
  XYMultipleSeriesRenderer renderer = buildRenderer(colors, styles);
  setChartSettings(renderer, "Monthly sales in the last 2 years", "Month", "Units sold", 0.75,
      12.25, -5000, 19000, Color.GRAY, Color.LTGRAY);
  renderer.setXLabels(12);
  renderer.setYLabels(10);
  renderer.setChartTitleTextSize(20);
  renderer.setTextTypeface("sans_serif", Typeface.BOLD);
  renderer.setLabelsTextSize(14f);
  renderer.setAxisTitleTextSize(15);
  renderer.setLegendTextSize(15);
  length = renderer.getSeriesRendererCount();

  for (int i = 0; i < length; i++) {
    XYSeriesRenderer seriesRenderer = (XYSeriesRenderer) renderer.getSeriesRendererAt(i);
    if (i == length - 1) {
      FillOutsideLine fill = new FillOutsideLine(FillOutsideLine.Type.BOUNDS_ALL);
      fill.setColor(Color.GREEN);
      seriesRenderer.addFillOutsideLine(fill);
    }
    seriesRenderer.setLineWidth(2.5f);
    seriesRenderer.setDisplayChartValues(true);
    seriesRenderer.setChartValuesTextSize(10f);
  }
  return ChartFactory.getCubicLineChartIntent(context, buildBarDataset(titles, values), renderer,
      0.5f);
}
 
開發者ID:ddanny,項目名稱:achartengine,代碼行數:49,代碼來源:SalesComparisonChart.java

示例15: lineChartView

import org.achartengine.renderer.XYMultipleSeriesRenderer; //導入方法依賴的package包/類
private void lineChartView() {
	TypedValue outValue1 = new TypedValue();
	TypedValue outValue2 = new TypedValue();
	TypedValue outValue3 = new TypedValue();
	TypedValue outValue4 = new TypedValue();
	mContext.getResources().getValue(R.dimen.line_axis_title_text_size_value, outValue1, true);
	mContext.getResources().getValue(R.dimen.line_chart_title_text_size_value, outValue2, true);
	mContext.getResources().getValue(R.dimen.line_labels_text_size_value, outValue3, true);
	mContext.getResources().getValue(R.dimen.line_legend_text_size_value, outValue4, true);
	float lineAxisTitleTextSizeValue = outValue1.getFloat();
	float lineCharTitleTextSizeValue = outValue2.getFloat();
	float lineLabelsTextSizeValue = outValue3.getFloat();
	float lineLegendTextSizeValue = outValue4.getFloat();

	XYMultipleSeriesDataset mDataset = getDataset();

	XYMultipleSeriesRenderer mRenderer = getRenderer();
	mRenderer.setApplyBackgroundColor(true);
	mRenderer.setBackgroundColor(Color.TRANSPARENT);
	mRenderer.setMarginsColor(Color.argb(0x00, 0x01, 0x01, 0x01));
	mRenderer.setAxisTitleTextSize(lineAxisTitleTextSizeValue);
	mRenderer.setChartTitleTextSize(lineCharTitleTextSizeValue);
	mRenderer.setLabelsTextSize(lineLabelsTextSizeValue);
	mRenderer.setLegendTextSize(lineLegendTextSizeValue);
	mRenderer.setMargins(new int[] { 12, 25, 12, 12 });
	mRenderer.setZoomButtonsVisible(true);
	mRenderer.setPointSize(10);
	mRenderer.setClickEnabled(true);

	mChartView = ChartFactory.getLineChartView(getActivity(), mDataset, mRenderer);

	mChartView.setOnClickListener(new View.OnClickListener() {
		public void onClick(View v) {
			SeriesSelection seriesSelection = mChartView.getCurrentSeriesAndPoint();
			if (seriesSelection != null) {
				UIFunctionUtils.showMessage(mContext, true, (int) seriesSelection.getValue() + " "
						+ getString(R.string.beats_per_minute));
			}
		}
	});

	layout.addView(mChartView);
}
 
開發者ID:scintero,項目名稱:moveon,代碼行數:44,代碼來源:Summary4.java


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