|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.cos.COSBasedObject
de.intarsys.pdf.pd.PDObject
de.intarsys.pdf.pd.PDResources
public class PDResources
The implementation of a resource dictionary.
The resource dictionary holds the references to indirect objects that are use
within a CSContent
. From the CSContent
, these objects are
referenced using the key under which they are stored in the dictionary.
Nested Class Summary | |
---|---|
static class |
PDResources.MetaClass
The meta class implementation |
Field Summary | |
---|---|
static COSName |
CN_RT_ColorSpace
|
static COSName |
CN_RT_Encoding
|
static COSName |
CN_RT_ExtGState
the resource types in a resource dictionaries |
static COSName |
CN_RT_Font
|
static COSName |
CN_RT_Pattern
|
static COSName |
CN_RT_ProcSet
|
static COSName |
CN_RT_Properties
|
static COSName |
CN_RT_Shading
|
static COSName |
CN_RT_XObject
|
static PDResources.MetaClass |
META
The meta class instance |
Fields inherited from class de.intarsys.pdf.pd.PDObject |
---|
DK_Subtype, DK_Type |
Method Summary | |
---|---|
void |
addColorSpaceResource(COSName name,
PDColorSpace colorSpace)
|
void |
addExtGStateResource(COSName name,
PDExtGState extGState)
|
void |
addFontResource(COSName name,
PDFont font)
|
void |
addPatternResource(COSName name,
PDPattern pattern)
|
void |
addResource(COSName resourceType,
COSName name,
PDObject object)
|
void |
addShadingResource(COSName name,
PDShading shading)
|
void |
addXObjectResource(COSName name,
PDXObject object)
|
void |
cosAddResource(COSName resourceType,
COSName resourceName,
COSObject resource)
|
COSName |
cosCreateResource(COSName resourceType,
COSObject resource)
|
COSObject |
cosGetResource(COSName resourceType,
COSName resourceName)
|
COSDictionary |
cosGetResources(COSName resourceType)
|
COSName |
createColorSpaceResource(PDColorSpace colorSpace)
Return the name of a ColorSpace resource within the resource dictionary. |
COSName |
createExtGStateResource(PDExtGState gstate)
Return the name of a ExtGState resource within the resource dictionary. |
COSName |
createFontResource(PDFont font)
Return the name of the font resource within this resource dictionary. |
COSName |
createResource(COSName resourceType,
PDObject object)
Return the name of a new resource of selected resource type within the resource dictionary. |
COSName |
createShadingResource(PDShading shading)
Return the name of a shading resource within the resource dictionary. |
COSName |
createXObjectResource(PDXObject xobject)
Return the name of a XObject resource within the resource dictionary. |
PDColorSpace |
getColorSpaceResource(COSName name)
A named ColorSpace resource from the resource dictionary. |
PDExtGState |
getExtGStateResource(COSName name)
Return a named ExtGState resource from the resource dictionary. |
PDFont |
getFontResource(COSName name)
Return a named font resource. |
PDPattern |
getPatternResource(COSName name)
Return a named Pattern resource from the resource dictionary. |
PDObject |
getResource(COSName resourceType,
PDObject.MetaClass metaClass,
COSName name)
Return a named resource from the resource dictionary. |
PDShading |
getShadingResource(COSName name)
Return a named Pattern resource from the resource dictionary. |
PDXObject |
getXObjectResource(COSName name)
Return a named XObject resource from the resource dictionary. |
void |
invalidateCaches()
Invalidate all local caches as the base object may have changed. |
Methods inherited from class de.intarsys.pdf.pd.PDObject |
---|
cosGetFieldDescendant, cosGetFieldInheritable, cosGetFieldInherited, cosGetSubtype, cosGetType, cosRemoveFieldInheritable, cosSetFieldInheritable, cosSetSubtype, cosSetType, getDoc, getGenericChildren, getGenericParent, setGenericParent, toString |
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final COSName CN_RT_ColorSpace
public static final COSName CN_RT_Encoding
public static final COSName CN_RT_ExtGState
public static final COSName CN_RT_Font
public static final COSName CN_RT_Pattern
public static final COSName CN_RT_ProcSet
public static final COSName CN_RT_Properties
public static final COSName CN_RT_Shading
public static final COSName CN_RT_XObject
public static final PDResources.MetaClass META
Method Detail |
---|
public void addColorSpaceResource(COSName name, PDColorSpace colorSpace)
public void addExtGStateResource(COSName name, PDExtGState extGState)
public void addFontResource(COSName name, PDFont font)
public void addPatternResource(COSName name, PDPattern pattern)
public void addResource(COSName resourceType, COSName name, PDObject object)
public void addShadingResource(COSName name, PDShading shading)
public void addXObjectResource(COSName name, PDXObject object)
public void cosAddResource(COSName resourceType, COSName resourceName, COSObject resource)
public COSName cosCreateResource(COSName resourceType, COSObject resource)
public COSObject cosGetResource(COSName resourceType, COSName resourceName)
public COSDictionary cosGetResources(COSName resourceType)
public COSName createColorSpaceResource(PDColorSpace colorSpace)
A new entry is created if the resource is not found.
colorSpace
- The colorSpace to lookup.
public COSName createExtGStateResource(PDExtGState gstate)
A new entry is created if the resource is not found.
gstate
- The gstate to lookup.
public COSName createFontResource(PDFont font)
A new entry is created if the resource is not found.
font
- The font whose name is looked up.
public COSName createResource(COSName resourceType, PDObject object)
A new entry is created if the resource is not found.
object
- The resource to lookup.
public COSName createShadingResource(PDShading shading)
A new entry is created if the resource is not found.
shading
- The shading to lookup.
public COSName createXObjectResource(PDXObject xobject)
A new entry is created if the resource is not found.
xobject
- The object to lookup.
public PDColorSpace getColorSpaceResource(COSName name)
name
- The name of the ColorSpace resource.
public PDExtGState getExtGStateResource(COSName name)
name
- The name of the ExtGState resource.
public PDFont getFontResource(COSName name)
name
- The name of the font resource
public PDPattern getPatternResource(COSName name)
name
- The name of the Pattern resource.
public PDObject getResource(COSName resourceType, PDObject.MetaClass metaClass, COSName name)
name
- The name of the resource.
public PDShading getShadingResource(COSName name)
name
- The name of the Pattern resource.
public PDXObject getXObjectResource(COSName name)
name
- The name of the XObject resource.
public void invalidateCaches()
COSBasedObject
invalidateCaches
in class COSBasedObject
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |