Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |
Instances of classes implementing Paint must be immutable (i.e. read-only) because the Graphics2D does not clone these objects when they are set as an attribute with the setPaint method or when the Graphics2D object is itself cloned. This is to avoid undefined behavior of Graphics2D rendering which would result if the Paint object were modified after being set in the Graphics2D state.
Method Summary | |
PaintContext | createContext(ColorModel cm,
Rectangle deviceBounds,
Rectangle2D userBounds,
AffineTransform xform)
|
Method Detail |
public PaintContext createContext(ColorModel cm, Rectangle deviceBounds, Rectangle2D userBounds, AffineTransform xform)
cm
- ColorModel in which the caller wishes to receive the
paint data. This is used only as a hint.
deviceBounds
- The Rectangle describing the bounding box
in device space of the graphics primitive being rendered.
userBounds
- The Rectangle2D describing the bounding box in
user space of the graphics primitive being rendered.
xform
- The Transform from user space into device space.
Contents | Package | Class | Tree | Deprecated | Index | Help | Java 1.2 Beta 3 | ||
PREV | NEXT | SHOW LISTS | HIDE LISTS |