intarsys PDF library API

de.intarsys.pdf.pd
Class PDXObject

java.lang.Object
  extended by de.intarsys.pdf.cos.COSBasedObject
      extended by de.intarsys.pdf.pd.PDObject
          extended by de.intarsys.pdf.pd.PDXObject
All Implemented Interfaces:
ICOSObjectListener, IAttributeSupport
Direct Known Subclasses:
PDForm, PDImage, PDPostScript

public abstract class PDXObject
extends PDObject

The representation of a XObject. A XObject defines a strokable object. The content is defined in the underlying content stream.


Nested Class Summary
static class PDXObject.MetaClass
          The meta class implementation
 
Field Summary
static COSName CN_Type_XObject
           
static COSName DK_Resources
           
static PDXObject.MetaClass META
          The meta class instance
 
Fields inherited from class de.intarsys.pdf.pd.PDObject
DK_Subtype, DK_Type
 
Method Summary
 COSDictionary cosGetDict()
          Get the base object as a COSDictionary.
 byte[] getBytes()
          The data representing the XObject
 boolean isForm()
          true if this is a form.
 boolean isImage()
          true if this is an image.
 boolean isPostscript()
          true if this is a postscript object.
 void setBytes(byte[] bytes)
          Set the data representing the XObject
 
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, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, invalidateCaches, 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

META

public static final PDXObject.MetaClass META
The meta class instance


DK_Resources

public static final COSName DK_Resources

CN_Type_XObject

public static final COSName CN_Type_XObject
Method Detail

cosGetDict

public COSDictionary cosGetDict()
Description copied from class: COSBasedObject
Get the base object as a COSDictionary.

This will throw a ClassCastException if the base type is not appropriate!

Overrides:
cosGetDict in class COSBasedObject
Returns:
Get the base object as a COSDictionary.

getBytes

public byte[] getBytes()
The data representing the XObject

Returns:
The data representing the XObject

isForm

public boolean isForm()
true if this is a form.

Returns:
true if this is a form.

isImage

public boolean isImage()
true if this is an image.

Returns:
true if this is an image.

isPostscript

public boolean isPostscript()
true if this is a postscript object.

Returns:
true if this is a postscript object.

setBytes

public void setBytes(byte[] bytes)
Set the data representing the XObject

Parameters:
bytes - The data representing the XObject

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.