org.openjump.core.ui.util
Class ScreenScale

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

public class ScreenScale
extends java.lang.Object

Contains function for accessing the actual map scale of the screen

Author:
sstein

Constructor Summary
ScreenScale()
           
 
Method Summary
static double getHorizontalMapScale(Viewport port)
          Delivers the scale of the map shown on the display.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenScale

public ScreenScale()
Method Detail

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:
context - PlugInContext
Returns:
actual scale