|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ScaleBar
Field Summary | |
---|---|
static int |
L_NONE
A constant signaling no scale |
static int |
L_SCALE
the scale |
static int |
L_SCALEDENOMINATOR
the default scale denominator |
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 |
setNumberFormat(java.text.NumberFormat numberFormat)
sets the format for scale/scaleDen |
void |
setScale(double scale)
sets the scale as defined in the OGC WMS 1.1.1 specification. |
void |
setScaleDenominator(double 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 |
---|
static final int L_NONE
static final int L_SCALE
static final int L_SCALEDENOMINATOR
Method Detail |
---|
void paint(java.awt.Graphics g)
g
- graphic contextvoid setTopLabel(int labelType)
labelType
- lable typevoid setBottomLabel(int labelType)
labelType
- lable typevoid setScale(double scale)
scale
- map scalevoid setScaleDenominator(double scaleDen)
scaleDen
- scale denominator valuevoid setUnits(java.lang.String units)
units
- name units (meter, miles, feet etc.)void setBarColor(java.awt.Color color)
color
- void setLabelColor(java.awt.Color color)
color
- void setBackgroundColor(java.awt.Color color)
color
- void setStyle(java.lang.String style)
style
- style namevoid setFont(java.awt.Font font)
font
- awt font objectvoid setNumberFormat(java.text.NumberFormat numberFormat)
numberFormat
- a NumberFormat object
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org