|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.pdfclown.objects.PdfObjectWrapper<PdfStream>
org.pdfclown.documents.contents.xObjects.XObject
org.pdfclown.documents.contents.xObjects.FormXObject
@PDF(value=PDF10) public final class FormXObject
Form external object [PDF:1.6:4.9].
| Constructor Summary | |
|---|---|
FormXObject(Document context,
Dimension2D size)
Creates a new form within the specified document context. |
|
FormXObject(Document context,
Rectangle2D box)
Creates a new form within the specified document context. |
|
| Method Summary | |
|---|---|
FormXObject |
clone(Document context)
Gets a clone of the object, registered inside the given document context. |
Rectangle2D |
getBox()
Gets the bounding box associated with this content context either explicitly (directly associated to the object) or (if not explicitly available) implicitly (inherited from a higher level object), expressed in default user-space units. |
Contents |
getContents()
Gets the contents collection representing the content stream associated with this content context. |
AffineTransform |
getMatrix()
Gets the mapping from external-object space to user space. |
Resources |
getResources()
Gets the resources associated with this content context either explicitly (directly associated to the object) or (if not explicitly available) implicitly (inherited from a higher-level object). |
RotationEnum |
getRotation()
Gets the rendering rotation of this content context. |
Dimension2D |
getSize()
Gets the form size. |
void |
render(Graphics2D context,
Dimension2D size)
Renders this content context into the specified rendering context. |
void |
setBox(Rectangle2D value)
|
void |
setMatrix(AffineTransform value)
|
void |
setResources(Resources value)
|
void |
setSize(Dimension2D value)
|
ContentObject |
toInlineObject(PrimitiveComposer composer)
Converts this entity to its equivalent inline (dependent) object representation [PDF:1.6:4.8.6]. |
XObject |
toXObject(Document context)
Converts this entity to its equivalent external (independent) object representation [PDF:1.6:4.7]. |
static FormXObject |
wrap(PdfDirectObject baseObject)
|
| Methods inherited from class org.pdfclown.documents.contents.xObjects.XObject |
|---|
getLayer, setLayer |
| Methods inherited from class org.pdfclown.objects.PdfObjectWrapper |
|---|
checkCompatibility, delete, equals, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FormXObject(Document context,
Dimension2D size)
context - Document where to place this form.size - Form size.
public FormXObject(Document context,
Rectangle2D box)
context - Document where to place this form.box - Form box.| Method Detail |
|---|
public static FormXObject wrap(PdfDirectObject baseObject)
public FormXObject clone(Document context)
PdfObjectWrapper
clone in class PdfObjectWrapper<PdfStream>context - Which document the clone has to be registered in.public AffineTransform getMatrix()
XObject
getMatrix in class XObjectpublic Dimension2D getSize()
getSize in class XObjectpublic void setBox(Rectangle2D value)
getBox()public void setMatrix(AffineTransform value)
setMatrix in class XObjectXObject.getMatrix()public void setResources(Resources value)
getResources()public void setSize(Dimension2D value)
setSize in class XObjectgetSize()public Rectangle2D getBox()
IContentContext
getBox in interface IContentContextpublic Contents getContents()
IContentContext
getContents in interface IContentContextpublic Resources getResources()
IContentContextThe implementing class MUST ensure that the returned object isn't null.
getResources in interface IContentContextpublic RotationEnum getRotation()
IContentContext
getRotation in interface IContentContext
public void render(Graphics2D context,
Dimension2D size)
IContentContext
render in interface IContentContextcontext - Rendering context.size - Rendering canvas size.public ContentObject toInlineObject(PrimitiveComposer composer)
IContentEntityThis method creates and shows an inline object within the target content context, returning it.
Due to its direct-content nature (opposite to the indirect-content nature of
external objects (see IContentEntity.toXObject(Document))), the resulting object should be shown
only one time in order not to wastefully duplicate its data.
toInlineObject in interface IContentEntitycomposer - Target content composer.
public XObject toXObject(Document context)
IContentEntityThis method creates an external object within the target document, returning it. To show it
in a content context (for example: a page), then it must be applied in an appropriate manner (see
PrimitiveComposer object).
toXObject in interface IContentEntitycontext - Target document.
|
PDF Clown 0.1.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||