org.apache.batik.util
Class Platform
java.lang.Object
org.apache.batik.util.Platform
public abstract class Platform
- extends Object
Platform specific functionality.
Field Summary |
static boolean |
isOSX
Whether we are running on Mac OS X. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isOSX
public static boolean isOSX
- Whether we are running on Mac OS X.
Platform
public Platform()
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" unlike
Toolkit.getScreenResolution()
which
will throw a HeadlessException
.
- Returns:
- the screen resolution in dpi
Copyright © 2017 Apache Software Foundation. All Rights Reserved.