Пример #1
0
  /**
   * Draws concentric circles around the current aircraft position showing distance. author: rwalker
   *
   * @param canvas upon which to draw the circles
   */
  private void drawDistanceRings(Canvas canvas) {
    /*
     * Some pre-conditions that would prevent us from drawing anything
     */
    if (null != mPointProjection) {
      return;
    }

    // Tell the rings to draw themselves
    mService
        .getDistanceRings()
        .draw(canvas, mOrigin, mScale, mMovement, mPref.isTrackUp(), mGpsParams);
  }