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


Java XYMultipleSeriesRenderer.NO_COLOR屬性代碼示例

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


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

示例1: GraphicalView

/**
 * Creates a new graphical view.
 * 
 * @param context the context
 * @param chart the chart to be drawn
 */
public GraphicalView(Context context, AbstractChart chart) {
  super(context);
  mChart = chart;
  mHandler = new Handler();
  if (mChart instanceof XYChart) {
    mRenderer = ((XYChart) mChart).getRenderer();
  } else {
    mRenderer = ((RoundChart) mChart).getRenderer();
  }
  if (mRenderer.isZoomButtonsVisible()) {
    zoomInImage = BitmapFactory.decodeStream(GraphicalView.class
        .getResourceAsStream("image/zoom_in.png"));
    zoomOutImage = BitmapFactory.decodeStream(GraphicalView.class
        .getResourceAsStream("image/zoom_out.png"));
    fitZoomImage = BitmapFactory.decodeStream(GraphicalView.class
        .getResourceAsStream("image/zoom-1.png"));
  }

  if (mRenderer instanceof XYMultipleSeriesRenderer
      && ((XYMultipleSeriesRenderer) mRenderer).getMarginsColor() == XYMultipleSeriesRenderer.NO_COLOR) {
    ((XYMultipleSeriesRenderer) mRenderer).setMarginsColor(mPaint.getColor());
  }
  if (mRenderer.isZoomEnabled() && mRenderer.isZoomButtonsVisible()
      || mRenderer.isExternalZoomEnabled()) {
    mZoomIn = new Zoom(mChart, true, mRenderer.getZoomRate());
    mZoomOut = new Zoom(mChart, false, mRenderer.getZoomRate());
    mFitZoom = new FitZoom(mChart);
  }
  int version = 7;
  try {
    version = Integer.valueOf(Build.VERSION.SDK);
  } catch (Exception e) {
    // do nothing
  }
  if (version < 7) {
    mTouchHandler = new TouchHandlerOld(this, mChart);
  } else {
    mTouchHandler = new TouchHandler(this, mChart);
  }
}
 
開發者ID:sdrausty,項目名稱:buildAPKsApps,代碼行數:46,代碼來源:GraphicalView.java


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