| java.lang.Object de.intarsys.pdf.cos.COSBasedObject de.intarsys.pdf.pd.PDObject de.intarsys.pdf.pd.PDResources
PDResources | public class PDResources extends PDObject (Code) | | 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.
|
Method Summary | |
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) | protected COSDictionary | cosInitResources(COSName resourceType) | public COSName | createColorSpaceResource(PDColorSpace colorSpace) Return the name of a ColorSpace resource within the resource dictionary.
A new entry is created if the resource is not found.
Parameters: colorSpace - The colorSpace to lookup. | public COSName | createExtGStateResource(PDExtGState gstate) Return the name of a ExtGState resource within the resource dictionary.
A new entry is created if the resource is not found.
Parameters: gstate - The gstate to lookup. | public COSName | createFontResource(PDFont font) Return the name of the font resource within this resource dictionary.
A new entry is created if the resource is not found.
Parameters: font - The font whose name is looked up. | public COSName | createResource(COSName resourceType, PDObject object) Return the name of a new resource of selected resource type within the
resource dictionary.
A new entry is created if the resource is not found.
Parameters: object - The resource to lookup. | protected COSName | createResourceName(COSName resourceType) | public COSName | createShadingResource(PDShading shading) Return the name of a shading resource within the resource dictionary.
A new entry is created if the resource is not found.
Parameters: shading - The shading to lookup. | public COSName | createXObjectResource(PDXObject xobject) Return the name of a XObject resource within the resource dictionary.
A new entry is created if the resource is not found.
Parameters: xobject - The object to lookup. | public PDColorSpace | getColorSpaceResource(COSName name) A named ColorSpace resource from the resource dictionary.
Parameters: name - The name of the ColorSpace resource. | public PDExtGState | getExtGStateResource(COSName name) Return a named ExtGState resource from the resource dictionary.
Parameters: name - The name of the ExtGState resource. | public PDFont | getFontResource(COSName name) Return a named font resource. | public PDPattern | getPatternResource(COSName name) Return a named Pattern resource from the resource dictionary.
Parameters: name - The name of the Pattern resource. | public PDObject | getResource(COSName resourceType, PDObject.MetaClass metaClass, COSName name) Return a named resource from the resource dictionary.
Parameters: name - The name of the resource. | public PDShading | getShadingResource(COSName name) Return a named Pattern resource from the resource dictionary.
Parameters: name - The name of the Pattern resource. | public PDXObject | getXObjectResource(COSName name) Return a named XObject resource from the resource dictionary.
Parameters: name - The name of the XObject resource. | public void | invalidateCaches() |
CN_RT_ColorSpace | final public static COSName CN_RT_ColorSpace(Code) | | |
CN_RT_ExtGState | final public static COSName CN_RT_ExtGState(Code) | | the resource types in a resource dictionaries
|
CN_RT_Properties | final public static COSName CN_RT_Properties(Code) | | |
META | final public static MetaClass META(Code) | | The meta class instance
|
PDResources | protected PDResources(COSObject object)(Code) | | Create a resource dictionary
Parameters: object - The COS Object implementing the dictionary |
createColorSpaceResource | public COSName createColorSpaceResource(PDColorSpace colorSpace)(Code) | | Return the name of a ColorSpace resource within the resource dictionary.
A new entry is created if the resource is not found.
Parameters: colorSpace - The colorSpace to lookup. the name of a ColorSpace resource within the resource dictionary. |
createExtGStateResource | public COSName createExtGStateResource(PDExtGState gstate)(Code) | | Return the name of a ExtGState resource within the resource dictionary.
A new entry is created if the resource is not found.
Parameters: gstate - The gstate to lookup. the name of a ExtGState resource within the resource dictionary. |
createFontResource | public COSName createFontResource(PDFont font)(Code) | | Return the name of the font resource within this resource dictionary.
A new entry is created if the resource is not found.
Parameters: font - The font whose name is looked up. the name of the font resource within this resource dictionary. |
createResource | public COSName createResource(COSName resourceType, PDObject object)(Code) | | Return the name of a new resource of selected resource type within the
resource dictionary.
A new entry is created if the resource is not found.
Parameters: object - The resource to lookup. The name of a resource within the resource dictionary. |
createShadingResource | public COSName createShadingResource(PDShading shading)(Code) | | Return the name of a shading resource within the resource dictionary.
A new entry is created if the resource is not found.
Parameters: shading - The shading to lookup. The name of the resource within the resource dictionary. |
createXObjectResource | public COSName createXObjectResource(PDXObject xobject)(Code) | | Return the name of a XObject resource within the resource dictionary.
A new entry is created if the resource is not found.
Parameters: xobject - The object to lookup. the name of a XObject resource within the resource dictionary. |
getColorSpaceResource | public PDColorSpace getColorSpaceResource(COSName name)(Code) | | A named ColorSpace resource from the resource dictionary.
Parameters: name - The name of the ColorSpace resource. A named ColorSpace resource from the resource dictionary. |
getExtGStateResource | public PDExtGState getExtGStateResource(COSName name)(Code) | | Return a named ExtGState resource from the resource dictionary.
Parameters: name - The name of the ExtGState resource. a named ExtGState resource from the resource dictionary. |
getFontResource | public PDFont getFontResource(COSName name)(Code) | | Return a named font resource.
Parameters: name - The name of the font resource A named font resource from within the resource dictionary. |
getPatternResource | public PDPattern getPatternResource(COSName name)(Code) | | Return a named Pattern resource from the resource dictionary.
Parameters: name - The name of the Pattern resource. a named Pattern resource from the resource dictionary. |
getResource | public PDObject getResource(COSName resourceType, PDObject.MetaClass metaClass, COSName name)(Code) | | Return a named resource from the resource dictionary.
Parameters: name - The name of the resource. a named resource from the resource dictionary. |
getShadingResource | public PDShading getShadingResource(COSName name)(Code) | | Return a named Pattern resource from the resource dictionary.
Parameters: name - The name of the Pattern resource. a named Pattern resource from the resource dictionary. |
getXObjectResource | public PDXObject getXObjectResource(COSName name)(Code) | | Return a named XObject resource from the resource dictionary.
Parameters: name - The name of the XObject resource. a named XObject resource from the resource dictionary. |
invalidateCaches | public void invalidateCaches()(Code) | | |
Methods inherited from de.intarsys.pdf.cos.COSBasedObject | public void changed(COSObject pObject, Object slot, Object oldValue, Object newValue)(Code)(Java Doc) public COSArray cosGetArray()(Code)(Java Doc) public COSDictionary cosGetDict()(Code)(Java Doc) public COSDocument cosGetDoc()(Code)(Java Doc) public COSObject cosGetField(COSName name)(Code)(Java Doc) public COSObject cosGetObject()(Code)(Java Doc) public COSStream cosGetStream()(Code)(Java Doc) public boolean cosHasField(COSName name)(Code)(Java Doc) public COSObject cosRemoveField(COSName name)(Code)(Java Doc) public COSObject cosSetField(COSName name, COSObject cosObj)(Code)(Java Doc) public Object getAttribute(Object key)(Code)(Java Doc) public boolean getFieldBoolean(COSName name, boolean defaultValue)(Code)(Java Doc) public CDSDate getFieldDate(COSName name, CDSDate defaultValue)(Code)(Java Doc) public float getFieldFixed(COSName name, float defaultValue)(Code)(Java Doc) public float[] getFieldFixedArray(COSName name, float[] defaultValue)(Code)(Java Doc) public int getFieldInt(COSName name, int defaultValue)(Code)(Java Doc) public String getFieldMLString(COSName name, String defaultValue)(Code)(Java Doc) public String getFieldString(COSName name, String defaultValue)(Code)(Java Doc) protected void initializeFromCos()(Code)(Java Doc) protected void initializeFromScratch()(Code)(Java Doc) public void invalidateCaches()(Code)(Java Doc) public Object removeAttribute(Object key)(Code)(Java Doc) public Object setAttribute(Object key, Object value)(Code)(Java Doc) public void setFieldBoolean(COSName name, boolean value)(Code)(Java Doc) public void setFieldFixed(COSName name, float value)(Code)(Java Doc) protected void setFieldFixedArray(COSName key, float[] array)(Code)(Java Doc) public void setFieldInt(COSName name, int value)(Code)(Java Doc) public void setFieldMLString(COSName name, String value)(Code)(Java Doc) public void setFieldName(COSName name, String value)(Code)(Java Doc) public void setFieldObject(COSName name, COSBasedObject value)(Code)(Java Doc) public void setFieldString(COSName name, String value)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|