Class GraphicsUtil
java.lang.Object
com.github.weisj.darklaf.util.graphics.GraphicsUtil
Utility class for creating
GraphicsContexts.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanstatic booleanstatic GraphicsContextpaintWithAlpha(Graphics g, float alpha) static voidsetOpaqueBuffered(JComponent c, boolean opaqueBuffered) static GraphicsContextstatic GraphicsContextsetupAntialiasing(Graphics g2, boolean enableAA, boolean ignoreSystemSettings) static GraphicsContextstatic booleanstatic booleanstatic booleansupportsTransparency(Window window) static boolean
-
Field Details
-
DESKTOP_HINTS_KEY
- See Also:
-
KEY_OPAQUE_BUFFERED
- See Also:
-
-
Method Details
-
setOpaqueBuffered
-
isOpaqueBuffered
-
setupAntialiasing
-
setupAntialiasing
public static GraphicsContext setupAntialiasing(Graphics g2, boolean enableAA, boolean ignoreSystemSettings) -
paintWithAlpha
-
setupStrokePainting
-
isHighDpiEnabled
public static boolean isHighDpiEnabled() -
useQuartz
public static boolean useQuartz() -
supportsTransparency
-
supportsTransparency
public static boolean supportsTransparency() -
supportsTransparency
-