| 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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(Graphics g)
will paint the scale bar to the passed graphic context  | 
 void | 
setBackgroundColor(Color color)
sets the background color of the scale bar  | 
 void | 
setBarColor(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(Font font)
sets the font for label rendering  | 
 void | 
setLabelColor(Color color)
sets the label color of the scale bar  | 
 void | 
setNumberFormat(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(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(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(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(String units)
units - name units (meter, miles, feet etc.)void setBarColor(Color color)
color - void setLabelColor(Color color)
color - void setBackgroundColor(Color color)
color - void setStyle(String style)
style - style namevoid setFont(Font font)
font - awt font objectvoid setNumberFormat(NumberFormat numberFormat)
numberFormat - a NumberFormat object
  | 
deegree 2.6-pre (2011/11/29 00:10 build-378-unofficial) | |||||||||
| 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