Class ScreenScale

java.lang.Object
org.openjump.core.ui.util.ScreenScale

public class ScreenScale extends Object
Contains function for accessing the actual map scale of the screen
Author:
sstein
  • Constructor Details

    • ScreenScale

      public ScreenScale()
  • Method Details

    • getResolution

      public static int getResolution()
    • setResolution

      public static void setResolution(int res)
    • getHorizontalMapScale

      public static double getHorizontalMapScale(Viewport port)
      Delivers the scale of the map shown on the display. The scale is calculated for the horizontal map direction

      note: The scale may differ for horizontal and vertical direction due to the type of map projection.

      Parameters:
      port - the viewport
      Returns:
      actual scale