Class GraphicsUtil


  • public final class GraphicsUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.logging.Logger LOGGER  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private GraphicsUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static @NotNull java.awt.Graphics2D createGraphics​(@NotNull java.awt.image.BufferedImage image)  
      static @NotNull java.awt.Composite deriveComposite​(@NotNull java.awt.Graphics2D g, float opacity)  
      static void safelySetPaint​(@NotNull java.awt.Graphics2D g, @NotNull java.awt.Paint paint)  
      static @NotNull java.awt.Paint setupPaint​(@NotNull java.awt.Paint current, @NotNull java.awt.Paint paint)  
      • Methods inherited from class java.lang.Object

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

      • LOGGER

        private static final java.util.logging.Logger LOGGER
    • Constructor Detail

      • GraphicsUtil

        private GraphicsUtil()
    • Method Detail

      • safelySetPaint

        public static void safelySetPaint​(@NotNull
                                          @NotNull java.awt.Graphics2D g,
                                          @NotNull
                                          @NotNull java.awt.Paint paint)
      • setupPaint

        @NotNull
        public static @NotNull java.awt.Paint setupPaint​(@NotNull
                                                         @NotNull java.awt.Paint current,
                                                         @NotNull
                                                         @NotNull java.awt.Paint paint)
      • createGraphics

        @NotNull
        public static @NotNull java.awt.Graphics2D createGraphics​(@NotNull
                                                                  @NotNull java.awt.image.BufferedImage image)
      • deriveComposite

        @NotNull
        public static @NotNull java.awt.Composite deriveComposite​(@NotNull
                                                                  @NotNull java.awt.Graphics2D g,
                                                                  float opacity)