public void setDistanceUnitAdapter(DistanceUnitAdapter distanceUnitAdapter) {
        if (distanceUnitAdapter == null) {
            throw new IllegalArgumentException("adapter must not be null");
        }
        this.distanceUnitAdapter = distanceUnitAdapter;
        this.redrawNeeded = true;
    }
public void setDistanceUnitAdapter ( DistanceUnitAdapter distanceUnitAdapter ) { if ( distanceUnitAdapter == null ) { throw new IllegalArgumentException ( "adapter must not be null" ) ; } this . distanceUnitAdapter = distanceUnitAdapter ; this . redrawNeeded = true ; }
Set the {@link DistanceUnitAdapter} for the MapScaleBar

@param distanceUnitAdapter The {@link DistanceUnitAdapter} to be used by this {@link MapScaleBar}