Class MaskedPaint
java.lang.Object
com.github.weisj.jsvg.paint.impl.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.ResourceCleanerprivate final @NotNull Pointprivate final @NotNull Rasterprivate @NotNull PaintFields inherited from interface 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 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:
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
-