public class ScreenScale
extends java.lang.Object
| Constructor and Description | 
|---|
ScreenScale()  | 
| Modifier and Type | Method and Description | 
|---|---|
static double | 
getHorizontalMapScale(Viewport port)
Delivers the scale of the map shown on the display. 
 | 
static int | 
getResolution()  | 
static void | 
setResolution(int res)  | 
public static int getResolution()
public static void setResolution(int res)
public static double getHorizontalMapScale(Viewport port)
note: The scale may differ for horizontal and vertical direction due to the type of map projection.
port - the viewport