Class ScreenScale
java.lang.Object
org.openjump.core.ui.util.ScreenScale
Contains function for accessing the actual map scale of the screen
- Author:
- sstein
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic doubleDelivers the scale of the map shown on the display.static intstatic voidsetResolution(int res)
-
Constructor Details
-
ScreenScale
public ScreenScale()
-
-
Method Details
-
getResolution
public static int getResolution() -
setResolution
public static void setResolution(int res) -
getHorizontalMapScale
Delivers the scale of the map shown on the display. The scale is calculated for the horizontal map directionnote: The scale may differ for horizontal and vertical direction due to the type of map projection.
- Parameters:
port- the viewport- Returns:
- actual scale
-