- java.lang.Object
-
- com.github.weisj.jsvg.renderer.output.impl.GraphicsUtil
-
public final class GraphicsUtil extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceGraphicsUtil.DisposablePaintstatic interfaceGraphicsUtil.WrappingPaint
-
Field Summary
Fields Modifier and Type Field Description private static java.util.logging.LoggerLOGGER
-
Constructor Summary
Constructors Modifier Constructor Description privateGraphicsUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidcleanupPaint(@NotNull Output output, @NotNull java.awt.Paint paint)static @NotNull java.awt.Graphics2DcreateGraphics(@NotNull java.awt.image.BufferedImage image)static @NotNull java.awt.CompositederiveComposite(@NotNull java.awt.Graphics2D g, float opacity)private static @NotNull java.awt.PaintexchangePaint(@NotNull Output output, @NotNull java.awt.Paint current, @NotNull java.awt.Paint paint, boolean doCleanUp)(package private) static voidpreparePaint(@NotNull java.awt.Paint paint)static voidsafelyDrawImage(@NotNull Output output, @NotNull java.awt.Graphics2D g, @NotNull java.awt.Image image, @Nullable java.awt.image.ImageObserver observer)(package private) static voidsafelySetPaint(@NotNull Output output, @NotNull java.awt.Graphics2D g, @NotNull java.awt.Paint paint)
-
-
-
Method Detail
-
safelySetPaint
static void safelySetPaint(@NotNull @NotNull Output output, @NotNull @NotNull java.awt.Graphics2D g, @NotNull @NotNull java.awt.Paint paint)
-
cleanupPaint
static void cleanupPaint(@NotNull @NotNull Output output, @NotNull @NotNull java.awt.Paint paint)
-
preparePaint
static void preparePaint(@NotNull @NotNull java.awt.Paint paint)
-
exchangePaint
@NotNull private static @NotNull java.awt.Paint exchangePaint(@NotNull @NotNull Output output, @NotNull @NotNull java.awt.Paint current, @NotNull @NotNull java.awt.Paint paint, boolean doCleanUp)
-
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)
-
safelyDrawImage
public static void safelyDrawImage(@NotNull @NotNull Output output, @NotNull @NotNull java.awt.Graphics2D g, @NotNull @NotNull java.awt.Image image, @Nullable @Nullable java.awt.image.ImageObserver observer)
-
-