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
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CachedSurfaceSupplier.ResourceCleaner
private final @NotNull Point
private final @NotNull Raster
private @NotNull Paint
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 TypeMethodDescriptionvoid
cleanupIfNeeded
(@NotNull Output output) createContext
(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) int
@NotNull Paint
paint()
void
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.weisj.jsvg.renderer.GraphicsUtil.WrappingPaint
innerPaint, safelySetPaint
-
Field Details
-
paint
-
maskRaster
-
maskOffset
-
cleaner
-
-
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:
cleanupIfNeeded
in interfaceGraphicsUtil.DisposablePaint
-
setPaint
- Specified by:
setPaint
in interfaceGraphicsUtil.WrappingPaint
-
paint
- Specified by:
paint
in interfaceGraphicsUtil.WrappingPaint
-
createContext
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints) - Specified by:
createContext
in interfacePaint
-
getTransparency
public int getTransparency()- Specified by:
getTransparency
in interfaceTransparency
-