Package com.github.weisj.jsvg.renderer
Class MaskedPaint
java.lang.Object
com.github.weisj.jsvg.renderer.MaskedPaint
- All Implemented Interfaces:
GraphicsUtil.DisposablePaint,GraphicsUtil.WrappingPaint,Paint,Transparency
public final class MaskedPaint
extends Object
implements Paint, GraphicsUtil.WrappingPaint, GraphicsUtil.DisposablePaint
-
Field Summary
Fields inherited from interface java.awt.Transparency
BITMASK, OPAQUE, TRANSLUCENT -
Constructor Summary
ConstructorsConstructorDescriptionMaskedPaint(@NotNull Paint paint, @NotNull Raster maskRaster, @NotNull Point2D maskOffset, CachedSurfaceSupplier.ResourceCleaner cleaner) -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanupIfNeeded(@NotNull Output output) createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) int@NotNull Paintpaint()voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.weisj.jsvg.renderer.GraphicsUtil.WrappingPaint
innerPaint, safelySetPaint
-
Constructor Details
-
MaskedPaint
public MaskedPaint(@NotNull @NotNull Paint paint, @NotNull @NotNull Raster maskRaster, @NotNull @NotNull Point2D maskOffset, @Nullable CachedSurfaceSupplier.ResourceCleaner cleaner)
-
-
Method Details
-
cleanupIfNeeded
- Specified by:
cleanupIfNeededin interfaceGraphicsUtil.DisposablePaint
-
setPaint
- Specified by:
setPaintin interfaceGraphicsUtil.WrappingPaint
-
paint
- Specified by:
paintin interfaceGraphicsUtil.WrappingPaint
-
createContext
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) - Specified by:
createContextin interfacePaint
-
getTransparency
public int getTransparency()- Specified by:
getTransparencyin interfaceTransparency
-