| |
|
| org.deegree.graphics.ScaleBar
All known Subclasses: org.deegree.graphics.DefaultScaleBar,
ScaleBar | public interface ScaleBar (Code) | | version: $Revision: 9340 $ author: Andreas Poth author: last edited by: $Author: apoth $ version: $Revision: 9340 $, $Date: 2007-12-27 04:32:12 -0800 (Thu, 27 Dec 2007) $ |
L_NONE | public static int L_NONE(Code) | | |
L_SCALE | public static int L_SCALE(Code) | | |
L_SCALEDENOMINATOR | public static int L_SCALEDENOMINATOR(Code) | | |
paint | void paint(Graphics g)(Code) | | will paint the scale bar to the passed graphic context
Parameters: g - graphic context |
setBackgroundColor | void setBackgroundColor(Color color)(Code) | | sets the background color of the scale bar
Parameters: color - |
setBarColor | void setBarColor(Color color)(Code) | | sets the front color of the scale bar
Parameters: color - |
setBottomLabel | void setBottomLabel(int labelType)(Code) | | sets the type of the label below the scale bar
Parameters: labelType - lable type |
setFont | void setFont(Font font)(Code) | | sets the font for label rendering
Parameters: font - awt font object |
setLabelColor | void setLabelColor(Color color)(Code) | | sets the label color of the scale bar
Parameters: color - |
setNumberFormat | void setNumberFormat(NumberFormat numberFormat)(Code) | | sets the format for scale/scaleDen
Parameters: numberFormat - a NumberFormat object |
setScale | void setScale(double scale)(Code) | | sets the scale as defined in the OGC WMS 1.1.1 specification. Scale is defined as the
diagonal size of a pixel in the center of a map measured in meter. The setting of the scale
will affect the value of the scale denominator
Parameters: scale - map scale |
setScaleDenominator | void setScaleDenominator(double scaleDen)(Code) | | sets the scale denominator for the scale bar. The scale denominator is the scale expression
as we know it for printed maps (e.g. 1:10000 1:5000). The passed value is expressed in
meters. The setting of the scale denominator will affect the value of the scale
Parameters: scaleDen - scale denominator value |
setStyle | void setStyle(String style)(Code) | | sets the style of the scale bar. default style is |--------| the list of known styles depends
on the implementation
Parameters: style - style name |
setTopLabel | void setTopLabel(int labelType)(Code) | | sets the type of the label above the scale bar
Parameters: labelType - lable type |
setUnits | void setUnits(String units)(Code) | | sets the units the scale and the scale denominater will be expressed at. Settings other than
meter will cause that the passed values for scale and scale denominater will be recalculated
for painting. it depends on the implementation what units are supported.
Parameters: units - name units (meter, miles, feet etc.) |
|
|
|