Class ResolutionHelper


  • public class ResolutionHelper
    extends java.lang.Object
    A helper class to retrieve supported resolutions for the default screen device.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Resolution getFirstHDResolution()
      Picks the first supported HD resolution for the default screen device.
      static java.util.List<Resolution> getSupportedResolutions()
      Returns a list of all supported resolutions for the default screen device retrieved from the GraphicsEnvironment
      • Methods inherited from class java.lang.Object

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

      • ResolutionHelper

        public ResolutionHelper()
    • Method Detail

      • getSupportedResolutions

        public static java.util.List<Resolution> getSupportedResolutions()
        Returns a list of all supported resolutions for the default screen device retrieved from the GraphicsEnvironment
        Returns:
        a list of resolutions
      • getFirstHDResolution

        public static Resolution getFirstHDResolution()
        Picks the first supported HD resolution for the default screen device. When a HD resolution isn't available, the resolution of the current display mode is returned.
        Returns:
        the screen resolution