|
||||||||||
| 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
public abstract class PDColorSpace
This class represents a color space in a pdf document.
| Field Summary | |
|---|---|
protected COSArray |
array
array for the given parameters. |
| Constructor Summary | |
|---|---|
PDColorSpace()
|
|
| Method Summary | |
|---|---|
abstract ColorModel |
createColorModel(int bpc)
Create a Java color model for this colorspace. |
protected abstract ColorSpace |
createColorSpace()
Create a Java colorspace for this colorspace. |
COSBase |
getCOSObject()
Convert this standard java object to a COS object. |
ColorSpace |
getJavaColorSpace()
Returns the Java AWT color space for this instance. |
abstract String |
getName()
This will return the name of the color space. |
abstract int |
getNumberOfComponents()
This will get the number of components that this color space is made up of. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected COSArray array
| Constructor Detail |
|---|
public PDColorSpace()
| Method Detail |
|---|
public abstract String getName()
public abstract int getNumberOfComponents()
throws IOException
IOException - If there is an error getting the number of color components.public COSBase getCOSObject()
getCOSObject in interface COSObjectable
public ColorSpace getJavaColorSpace()
throws IOException
IOException - if the color space can not be created
protected abstract ColorSpace createColorSpace()
throws IOException
IOException - If there is an error creating the color space.
public abstract ColorModel createColorModel(int bpc)
throws IOException
bpc - The number of bits per component.
IOException - If there is an error creating the color model.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||