Package com.rvandoosselaer.jmeutils
Class ResolutionHelper
- java.lang.Object
-
- com.rvandoosselaer.jmeutils.ResolutionHelper
-
public class ResolutionHelper extends java.lang.ObjectA helper class to retrieve supported resolutions for the default screen device.
-
-
Constructor Summary
Constructors Constructor Description ResolutionHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ResolutiongetFirstHDResolution()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 theGraphicsEnvironment
-
-
-
Method Detail
-
getSupportedResolutions
public static java.util.List<Resolution> getSupportedResolutions()
Returns a list of all supported resolutions for the default screen device retrieved from theGraphicsEnvironment- 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
-
-