|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Field Summary | |
static int |
L_NONE
|
static int |
L_SCALE
|
static int |
L_SCALEDENOMINATOR
|
Method Summary | |
void |
paint(java.awt.Graphics g)
will paint the scale bar to the passed graphic context |
void |
setBackgroundColor(java.awt.Color color)
sets the background color of the scale bar |
void |
setBarColor(java.awt.Color color)
sets the front color of the scale bar |
void |
setBottomLabel(int labelType)
sets the type of the label below the scale bar |
void |
setFont(java.awt.Font font)
sets the font for label rendering |
void |
setLabelColor(java.awt.Color color)
sets the label color of the scale bar |
void |
setScale(double scale)
sets the scale as defined in the OGC WMS 1.1.1 specification. |
void |
setScaleDenominator(int scaleDen)
sets the scale denominator for the scale bar. |
void |
setStyle(java.lang.String style)
sets the style of the scale bar. default style is |--------| the list of known styles depends on the implementation |
void |
setTopLabel(int labelType)
sets the type of the label above the scale bar |
void |
setUnits(java.lang.String units)
sets the units the scale and the scale denominater will be expressed at. |
Field Detail |
public static final int L_NONE
public static final int L_SCALE
public static final int L_SCALEDENOMINATOR
Method Detail |
public void paint(java.awt.Graphics g)
g
- graphic contextpublic void setTopLabel(int labelType)
labelType
- lable typepublic void setBottomLabel(int labelType)
labelType
- lable typepublic void setScale(double scale)
public void setScaleDenominator(int scaleDen)
scaleDen
- scale denominator valuepublic void setUnits(java.lang.String units)
units
- name units (meter, miles, feet etc.)public void setBarColor(java.awt.Color color)
public void setLabelColor(java.awt.Color color)
public void setBackgroundColor(java.awt.Color color)
public void setStyle(java.lang.String style)
style
- style namepublic void setFont(java.awt.Font font)
font
- awt font object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |