Class Platform

java.lang.Object
org.apache.batik.util.Platform

public abstract class Platform extends Object
Platform specific functionality.
  • Field Details

    • isOSX

      public static boolean isOSX
      Whether 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" unlike Toolkit.getScreenResolution() which will throw a HeadlessException.
      Returns:
      the screen resolution in dpi