Class Index | File Index

Classes


Class adf.ScaleBarRendererBase


Extends adf.ScaleBarRenderer.

Defined in: ScaleBar.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
This Class extends adf.ScaleBarRenderer.
Field Summary
Field Attributes Field Name and Description
 
Bottom of the scalebar's bounds
 
Font size to render distance and units.
 
Style to render distance and units.
 
Width of font to render distance and units.
 
Height of the scalebar
 
Top position, in pixels to start rendering label.
 
Max width in pixels of labels on scalebar.
 
The Scalebar object rendered by this renderer
 
The Graphics Style for Scalebar Stroke Style for the Rectangle
 
The Graphics Style for Scalebar Stroke Style for the Text
 
The strokewidth for the text and the rectangle in the scalebar
 
The Graphics Style of the text rendered on the scalebar
 
top
Top of the scalebar's bounds
 
Width of the scalebar
 
Position in pixels along scalebar to render zero, or center of rendered scalebar
Method Summary
Method Attributes Method Name and Description
 
init(container, wd, ht)
Initializes scalebar in the specified container with respective width and height
Methods borrowed from class adf.ScaleBarRenderer:
render
Class Detail
adf.ScaleBarRendererBase()
This Class extends adf.ScaleBarRenderer. It sets the basic configuration for all its derived classes scalebar renderers adf.SteppedScaleLineRenderer, adf.SingleDivisionScaleBar adf.AlternatingScaleBarRenderer adf.DoubleAlternatingScaleBarRenderer This class overrides the init() method of adf.ScaleBarRenderer.All its derived classses override the renderer() method accoring to its rendering style
Field Detail
{Number} bottom
Bottom of the scalebar's bounds
Default Value:
0

{Number} fontSize
Font size to render distance and units.
Default Value:
10

{String} fontStyle
Style to render distance and units.
Default Value:
"font-size:fontSize adf.ScaleBarRendererBase#fontSize px; font-stretch:narrower"

{Number} fontWidth
Width of font to render distance and units. Default is 5 (fontSize/2)
Default Value:
5

{Number} height
Height of the scalebar
Default Value:
0

{Number} lblTop
Top position, in pixels to start rendering label.
Default Value:
5

{Number} lblWd
Max width in pixels of labels on scalebar.
Default Value:
30

{adf.ScaleBar} scaleBar
The Scalebar object rendered by this renderer
Default Value:
49

strokeRectSymbol
The Graphics Style for Scalebar Stroke Style for the Rectangle

strokeTextSymbol
The Graphics Style for Scalebar Stroke Style for the Text

{Number} strokeWidth
The strokewidth for the text and the rectangle in the scalebar
Default Value:
2

textSymbol
The Graphics Style of the text rendered on the scalebar

{Number} top
Top of the scalebar's bounds
Default Value:
0

{Number} width
Width of the scalebar
Default Value:
0

{Number} zero
Position in pixels along scalebar to render zero, or center of rendered scalebar
Default Value:
0
Method Detail
init(container, wd, ht)
Initializes scalebar in the specified container with respective width and height
Parameters:
{DOMNode} container
container on which the scalbar is placed
{Number} wd
width of the scalebar
{Number} ht
height of the scalebar

Documentation generated by JsDoc Toolkit 2.1.0 on Mon May 17 2010 13:45:43 GMT-0700 (PDT)