org.apache.batik.util
Class Platform
java.lang.Object
org.apache.batik.util.Platform
public abstract class Platform
- extends Object
Platform specific functionality.
- Version:
- $Id: Platform.java 1733416 2016-03-03 07:07:13Z gadams $
- Author:
- Cameron McCormack
|
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 © 2000–2017 Apache Software Foundation. All rights reserved.