- All Implemented Interfaces:
- java.io.Serializable
public class PDFPatternSpace
extends java.awt.color.ColorSpace
The Pattern colorspace is a special colorspace where shadings and tiling patterns can be declared. PDF treats this
like other colorspaces, but it is not a full colorspace as far as awt is concerned. Awt colorspaces are expected
to be able to convert colors between each other, but this doesn't make sense for patterns or shadings. The
conversion methods just generate errors, so if the colorspace is ever used in a strange place (like an image) it
will generate an exception, and we don't need to always be checking to see if a particular colorspace
is appropriate for the given operation.
To draw in a pattern colorspace, you can ask the colorspace for a Paint object. Classes which implement the
java.awt.Paint interface can be created for all the different shading types, as well as for tiling patterns.
- See Also:
- Serialized Form