| java.lang.Object de.intarsys.pdf.cos.COSBasedObject de.intarsys.pdf.pd.PDObject
All known Subclasses: de.intarsys.pdf.pd.PDEmbeddedFile, de.intarsys.pdf.pd.PDFunction, de.intarsys.pdf.pd.PDAdditionalActions, de.intarsys.pdf.pd.PDOutlineNode, de.intarsys.pdf.pd.PDSignatureReference, de.intarsys.pdf.pd.PDApplicationData, de.intarsys.pdf.pd.PDTransformParams, de.intarsys.pdf.pd.PDColorSpace, de.intarsys.pdf.font.PDFontDescriptor, de.intarsys.pdf.pd.PDXObject, de.intarsys.pdf.pd.PDAction, de.intarsys.pdf.font.PDFont, de.intarsys.pdf.pd.PDIconFit, de.intarsys.pdf.pd.PDAppearance, de.intarsys.pdf.pd.PDAcroFormNode, de.intarsys.pdf.pd.PDShading, de.intarsys.pdf.pd.PDPattern, de.intarsys.pdf.pd.PDAppearanceCharacteristics, de.intarsys.pdf.pd.PDOutputIntent, de.intarsys.pdf.pd.PDResources, de.intarsys.pdf.pd.PDDestination, de.intarsys.pdf.pd.PDTransformMethod, de.intarsys.pdf.pd.PDAnnotation, de.intarsys.pdf.pd.PDFileSpecification, de.intarsys.pdf.pd.PDExtGState, de.intarsys.pdf.pd.PDBuildData, de.intarsys.pdf.pd.PDBorderStyle, de.intarsys.pdf.pd.PDSignature, de.intarsys.pdf.pd.PDBuildProperties, de.intarsys.pdf.pd.PDPageNode,
PDObject | abstract public class PDObject extends COSBasedObject (Code) | | This is the abstract superclass for all complex PD level objects.
PD Level objects provide the PDF semantics on top of the basic datatypes of
COS Level objects. PDObject provides generic methods used along all subtypes.
PDObjects should be created only using the factory methods of their meta
classes to ensure the semantics implemented in the PD layer, as for example
PD object identity, subclass selection or proper initialization.
Example:
PDPage page = (PDPage)PDPage.META.createNew();
|
META | final public static MetaClass META(Code) | | The meta class instance
|
PDObject | protected PDObject(COSObject object)(Code) | | Create the receiver class from an already defined
COSDictionary .
NEVER use the constructor directly.
Parameters: object - the PDDocument containing the new object |
cosGetExpectedSubtype | protected COSName cosGetExpectedSubtype()(Code) | | |
cosGetFieldDescendant | public COSObject cosGetFieldDescendant(COSName name)(Code) | | Convenience method to access fields in
COSDictionary based
PDObject instances. This method supports "inheritance" on
hierarchical structured
PDObject instances. It returns the field
either from the receiver or one of the known descendants.
Parameters: name - the field to read the content of the named field in the PD object or one of itsdescendants - COSNull is the field is not found |
cosGetFieldInheritable | public COSObject cosGetFieldInheritable(COSName name)(Code) | | Convenience method to access fields in
COSDictionary based
PDObject instances.
This method supports "inheritance" on hierarchical structured
PDObject instances. It returns the field either from the receiver
or one of its parents.
Parameters: name - the field to read the content of the named field in the PD object or one of itsparents - COSNull if the field is not found |
cosGetFieldInherited | public COSObject cosGetFieldInherited(COSName name)(Code) | | Convenience method to access inherited fields in
COSDictionary based
PDObject instances.
This method supports "inheritance" on hierarchical structured
PDObject instances. It returns the inherited field value from one
of the receiver's parents or
COSNull .
Parameters: name - the field to read the content of the named field in one of the receivers parents -COSNull if the field is not found |
cosGetSubtype | final public COSName cosGetSubtype()(Code) | | The /Subtype field of this
PDObject or null. This method is not
supported on
PDObject instances that are not based on a
COSDictionary The /Subtype field of this. |
cosRemoveFieldInheritable | public COSObject cosRemoveFieldInheritable(COSName name)(Code) | | Convenience method to access fields in
COSDictionary based
PDObject instances. This method supports "inheritance" on
hierarchical structured
PDObject instances. It removes a field in
the receiver and all its descendants.
Parameters: name - the field to remove from the receiver The object previously associated with name in this |
cosSetFieldInheritable | public COSObject cosSetFieldInheritable(COSName name, COSObject cosObj)(Code) | | Convenience method to access fields in
COSDictionary based
PDObject instances. This method supports "inheritance" on
hierarchical structured
PDObject instances. It sets a field value
in the receiver when the field is inheritable. This method removes the
field from every child to make sure it uses the inherited value.
Parameters: name - the field to set Parameters: cosObj - the object to set in the field The object previously associated with name in this |
cosSetSubtype | final public COSName cosSetSubtype(COSName newType)(Code) | | Set the /Subtype field of this
PDObject . This method is not
supported on
PDObject instances that are not based on a
COSDictionary The /Subtype previously associated with this. |
getDoc | public PDDocument getDoc()(Code) | | Try the best in finding the PDDocument for this PDObject.
Try the best in finding the PDDocument for this PDObject. |
getGenericChildren | public List getGenericChildren()(Code) | | Get a collection of
PDObject children if the receiver is a node
in a hierarchical structure (like page nodes or form fields).
This enables the generic implementation of inherited field values and so
on.
A concrete PDObject implementation supporting inheritance should
implement this method.
A collection of PDObject children if the receiver is anode in a hierarchical structure . |
getGenericParent | public PDObject getGenericParent()(Code) | | The parent of the receiver if it is a node in a hierarchical structure
(like page nodes or form fields).
A concrete PDObject implementation supporting inheritance should
implement this method.
The parent of the receiver if it is a node in a hierarchicalstructure (like page nodes or form fields). |
initializeFromScratch | protected void initializeFromScratch()(Code) | | |
setGenericParent | public void setGenericParent(PDObject parent)(Code) | | Set the parent of the receiver if it is a node in a hierarchical
structure (like page nodes or form fields).
A concrete PDObject implementation supporting inheritance should
implement this method.
Parameters: parent - The new parent object. |
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)
|
|
|