Class HiDPIUtil


  • public class HiDPIUtil
    extends java.lang.Object
    Author:
    max
    • Field Detail

      • IS_JAVA_8_OR_OLDER

        public static final boolean IS_JAVA_8_OR_OLDER
      • IS_JAVA_8

        public static final boolean IS_JAVA_8
      • IS_JAVA_9

        public static final boolean IS_JAVA_9
      • IS_JAVA_10

        public static final boolean IS_JAVA_10
      • IS_JAVA_11

        public static final boolean IS_JAVA_11
      • IS_VENDOR_APPLE

        public static final boolean IS_VENDOR_APPLE
    • Constructor Detail

      • HiDPIUtil

        public HiDPIUtil()
    • Method Detail

      • getSystemProperty

        public static java.lang.String getSystemProperty​(java.lang.String key)
        Tries to look up the System property for the given key. In untrusted environments this may throw a SecurityException. In this case we catch the exception and answer null.
        Parameters:
        key - the name of the system property
        Returns:
        the system property's String value, or null if there's no such value, or a SecurityException has been caught
      • getScaleFactor

        public static double getScaleFactor​(java.awt.Graphics2D graphics)
      • getScaleFactor

        public static double getScaleFactor()