public final class JreHiDpiUtil
extends java.lang.Object
Constructor and Description |
---|
JreHiDpiUtil() |
Modifier and Type | Method and Description |
---|---|
static boolean |
isJreHiDPI_earlierVersion()
Indicates earlier JBSDK version, not containing HiDPI changes.
|
static boolean |
isJreHiDPI(java.awt.Graphics2D g)
Returns whether the JRE-managed HiDPI mode is enabled and the graphics represents a HiDPI device.
|
static boolean |
isJreHiDPI(java.awt.GraphicsConfiguration gc)
Returns whether the JRE-managed HiDPI mode is enabled and the graphics configuration represents a HiDPI device.
|
static boolean |
isJreHiDPIEnabled()
Returns whether the JRE-managed HiDPI mode is enabled.
|
static java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> |
test_jreHiDPI() |
public static boolean isJreHiDPI(java.awt.GraphicsConfiguration gc)
UIUtil.isRetina(Graphics2D)
on macOS)public static boolean isJreHiDPI(java.awt.Graphics2D g)
UIUtil.isRetina(Graphics2D)
on macOS)public static boolean isJreHiDPIEnabled()
ScaleType
public static boolean isJreHiDPI_earlierVersion()
public static java.util.concurrent.atomic.AtomicReference<java.lang.Boolean> test_jreHiDPI()