|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.graphics.color.PDColorSpace
org.apache.pdfbox.pdmodel.graphics.color.PDPattern
public class PDPattern
This class represents a Pattern color space.
Field Summary | |
---|---|
static java.lang.String |
NAME
The name of this color space. |
Constructor Summary | |
---|---|
PDPattern()
Default constructor. |
|
PDPattern(COSArray pattern)
Constructor. |
Method Summary | |
---|---|
java.awt.image.ColorModel |
createColorModel(int bpc)
Create a Java color model for this colorspace. |
protected java.awt.color.ColorSpace |
createColorSpace()
Create a Java colorspace for this colorspace. |
java.lang.String |
getName()
This will return the name of the color space. |
int |
getNumberOfComponents()
This will get the number of components that this color space is made up of. |
Methods inherited from class org.apache.pdfbox.pdmodel.graphics.color.PDColorSpace |
---|
getCOSObject, getJavaColorSpace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NAME
Constructor Detail |
---|
public PDPattern()
public PDPattern(COSArray pattern)
pattern
- The pattern array.Method Detail |
---|
public java.lang.String getName()
getName
in class PDColorSpace
public int getNumberOfComponents() throws java.io.IOException
getNumberOfComponents
in class PDColorSpace
java.io.IOException
- If there is an error getting the number of color components.protected java.awt.color.ColorSpace createColorSpace() throws java.io.IOException
createColorSpace
in class PDColorSpace
java.io.IOException
- If there is an error creating the color space.public java.awt.image.ColorModel createColorModel(int bpc) throws java.io.IOException
createColorModel
in class PDColorSpace
bpc
- The number of bits per component.
java.io.IOException
- If there is an error creating the color model.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |