docs: public void setDistanceUnitAdapter(DistanceUnitAdapter distanceUnitAdapter) {
          if (distanceUnitAdapter == null) {
              throw new IllegalArgumentException("adapter must not be null");
          }
          this.distanceUnitAdapter = distanceUnitAdapter;
          this.redrawNeeded = true;
      }