public interface Paint extends Transparency
draw and fill methods
of the graphics object. Instances must be immutable, because the graphics
object does not clone them.PaintContext,
Color,
GradientPaint,
TexturePaint,
Graphics2D.setPaint(Paint)BITMASK, OPAQUE, TRANSLUCENT| Modifier and Type | Method and Description |
|---|---|
PaintContext |
createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform,
RenderingHints hints)
Create the context necessary for performing the color pattern generation.
|
getTransparencyPaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform, RenderingHints hints)
cm - the color model, used as a hintdeviceBounds - the device space bounding box of the painted areauserBounds - the user space bounding box of the painted areaxform - the transformation from user space to device spacehints - any hints for choosing between rendering alternatives