org.apache.batik.util
Class Platform

java.lang.Object
  extended by 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.
 
Constructor Summary
Platform()
           
 
Method Summary
static int getScreenResolution()
          Returns the active screen resolution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

isOSX

public static boolean isOSX
Whether we are running on Mac OS X.

Constructor Detail

Platform

public Platform()
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" unlike Toolkit.getScreenResolution() which will throw a HeadlessException.

Returns:
the screen resolution in dpi


Copyright © 2017 Apache Software Foundation. All Rights Reserved.