Package org.apache.batik.util
Class Platform
java.lang.Object
org.apache.batik.util.Platform
Platform specific functionality.
- Version:
- $Id: Platform.java 1733416 2016-03-03 07:07:13Z gadams $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
Returns the active screen resolution.
-
Field Details
-
isOSX
public static boolean isOSXWhether we are running on Mac OS X.
-
-
Constructor Details
-
Platform
public Platform()
-
-
Method Details
-
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
-