|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.awt
Interface Paint

- All Superinterfaces:
- Transparency
- All Known Implementing Classes:
- Color, GradientPaint, TexturePaint
- public interface Paint
- extends Transparency
Defines how color patterns are generated for Graphics2D operations. This
is used to perform the draw and fill methods
of the graphics object. Instances must be immutable, because the graphics
object does not clone them.
- Since:
- 1.1
| Field Summary |
| Fields inherited from interface java.awt.Transparency |
BITMASK, OPAQUE, TRANSLUCENT |
| Method Summary | |
PaintContext |
createContext(java.awt.image.ColorModel cm,
Rectangle deviceBounds,
java.awt.geom.Rectangle2D userBounds,
java.awt.geom.AffineTransform xform,
RenderingHints hints)
Create the context necessary for performing the color pattern generation. |
| Methods inherited from interface java.awt.Transparency |
getTransparency |
| Method Detail |
createContext
public PaintContext createContext(java.awt.image.ColorModel cm, Rectangle deviceBounds, java.awt.geom.Rectangle2D userBounds, java.awt.geom.AffineTransform xform, RenderingHints hints)
- Create the context necessary for performing the color pattern generation.
The color model is a hint, and may be null for Classpath implementations;
however some legacy code may throw a NullPointerException when passed a
null. Leaving the color model null provides the most efficiency and leeway
in the generation of the color pattern.
|
|||||||||
| Home >> All >> java >> [ awt overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC