Package org.apache.batik.util
Class Platform
- java.lang.Object
-
- org.apache.batik.util.Platform
-
public abstract class Platform extends java.lang.Object
Platform specific functionality.
-
-
Field Summary
Fields Modifier and Type Field Description static boolean
isOSX
Whether we are running on Mac OS X.
-
Constructor Summary
Constructors Constructor Description Platform()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
getScreenResolution()
Returns the active screen resolution.
-
-
-
Method Detail
-
getScreenResolution
public static int getScreenResolution()
Returns the active screen resolution. If Batik is run in a headless environment, this method will return the default "96" unlikeToolkit.getScreenResolution()
which will throw aHeadlessException
.- Returns:
- the screen resolution in dpi
-
-