Class adf.ScaleBarRenderer
Defined in: ScaleBar.js.
Constructor Attributes | Constructor Name and Description |
---|---|
adf.ScaleBarRenderer is the base class to be implemented by all classes that render a type of scalebar
It provides init and render methods, each of these methods has an empty default implementation.
|
Field Attributes | Field Name and Description |
---|---|
The Scalebar object rendered by this renderer
|
Method Attributes | Method Name and Description |
---|---|
init(container)
Used to Initialize the renderer
This is an empty default implementation.
|
|
render(screenDistance, mapDistance, units)
This method renders the style of rendering by its derived classes
|
Class Detail
adf.ScaleBarRenderer()
adf.ScaleBarRenderer is the base class to be implemented by all classes that render a type of scalebar
It provides init and render methods, each of these methods has an empty default implementation.
This class is extended by
adf.ScaleBarRendererBase
Field Detail
{adf.ScaleBar}
scaleBar
The Scalebar object rendered by this renderer
- Default Value:
- 49
Method Detail
init(container)
Used to Initialize the renderer
This is an empty default implementation.
- Parameters:
- container
render(screenDistance, mapDistance, units)
This method renders the style of rendering by its derived classes
- Parameters:
- {Number} screenDistance
- Screen Distance of the ScaleBar
- {Number} mapDistance
- map Distance measured by the ScaleBar
- {String} units
- The measuringunits of the ScaleBar