Class UIUtil.DetectRetinaKit

  • Enclosing class:
    UIUtil

    private static final class UIUtil.DetectRetinaKit
    extends java.lang.Object
    Utility class for retina routine
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.WeakHashMap<java.awt.GraphicsDevice,​java.lang.Double> devicesScaleFactorCacheMap  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private DetectRetinaKit()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static double getScaleFactor()  
      private static double getScaleFactor​(java.awt.GraphicsDevice device)  
      private static double getScaleFactorModern​(java.awt.GraphicsDevice device)
      This uses GraphicsConfiguration's default transform as detailed at https://bugs.openjdk.java.net/browse/JDK-8172962 (starting in Java 9).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • devicesScaleFactorCacheMap

        private static final java.util.WeakHashMap<java.awt.GraphicsDevice,​java.lang.Double> devicesScaleFactorCacheMap
    • Constructor Detail

      • DetectRetinaKit

        private DetectRetinaKit()
    • Method Detail

      • getScaleFactorModern

        private static double getScaleFactorModern​(java.awt.GraphicsDevice device)
        This uses GraphicsConfiguration's default transform as detailed at https://bugs.openjdk.java.net/browse/JDK-8172962 (starting in Java 9).
      • getScaleFactor

        private static double getScaleFactor​(java.awt.GraphicsDevice device)
      • getScaleFactor

        private static double getScaleFactor()