public class DefaultMapScaleBar extends MapScaleBar
| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultMapScaleBar.ScaleBarMode |
MapScaleBar.ScaleBarLengthAndValue, MapScaleBar.ScaleBarPositiondistanceUnitAdapter, map, mapScaleBitmap, mapScaleCanvas, prevMapPosition, redrawNeeded, scale, scaleBarPosition| Constructor and Description |
|---|
DefaultMapScaleBar(Map map) |
DefaultMapScaleBar(Map map,
float scale) |
| Modifier and Type | Method and Description |
|---|---|
DefaultMapScaleBar.ScaleBarMode |
getScaleBarMode() |
DistanceUnitAdapter |
getSecondaryDistanceUnitAdapter() |
protected void |
redraw(Canvas canvas)
Redraw the map scale bar.
|
void |
setScaleBarMode(DefaultMapScaleBar.ScaleBarMode scaleBarMode) |
void |
setSecondaryDistanceUnitAdapter(DistanceUnitAdapter distanceUnitAdapter)
Set the secondary
DistanceUnitAdapter for the MapScaleBar |
calculateScaleBarLengthAndValue, calculateScaleBarLengthAndValue, destroy, draw, drawScaleBar, getDistanceUnitAdapter, getMarginHorizontal, getMarginVertical, getScaleBarPosition, isRedrawNecessary, isVisible, redrawScaleBar, setDistanceUnitAdapter, setMarginHorizontal, setMarginVertical, setScaleBarPosition, setVisiblepublic DefaultMapScaleBar(Map map)
public DefaultMapScaleBar(Map map, float scale)
public DistanceUnitAdapter getSecondaryDistanceUnitAdapter()
DistanceUnitAdapter in use by this MapScaleBarpublic void setSecondaryDistanceUnitAdapter(DistanceUnitAdapter distanceUnitAdapter)
DistanceUnitAdapter for the MapScaleBardistanceUnitAdapter - The secondary DistanceUnitAdapter to be used by this MapScaleBarpublic DefaultMapScaleBar.ScaleBarMode getScaleBarMode()
public void setScaleBarMode(DefaultMapScaleBar.ScaleBarMode scaleBarMode)
protected void redraw(Canvas canvas)
MapScaleBarredraw in class MapScaleBarcanvas - The canvas to draw on