Class Platform


  • public abstract class Platform
    extends java.lang.Object
    Platform specific functionality.
    Version:
    $Id: Platform.java 1733416 2016-03-03 07:07:13Z gadams $
    • 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.
      • 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