|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfStream> it.stefanochizzolini.clown.documents.contents.xObjects.XObject it.stefanochizzolini.clown.documents.contents.xObjects.FormXObject
public class FormXObject
Form external object [PDF:1.6:4.9].
Constructor Summary | |
---|---|
FormXObject(Document context)
Creates a new form within the given document context, using default resources. |
|
FormXObject(Document context,
Resources resources)
Creates a new form within the given document context, using custom resources. |
|
FormXObject(PdfDirectObject baseObject)
For internal use only. |
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 the object, either explicitly (directly associated to the object) or (if not explicitly available) implicitly (inherited from a higher level object). |
Contents |
getContents()
Gets the content stream associated to the form. |
double[] |
getMatrix()
Gets the mapping from external-object space to user space. |
Resources |
getResources()
Gets the resources associated to the form. |
Dimension2D |
getSize()
Gets the form size. |
void |
setResources(Resources value)
Sets the resources associated to the form. |
void |
setSize(Dimension2D value)
Sets the form size. |
ContentObject |
toInlineObject(PrimitiveFilter context)
Converts the entity to its equivalent inline (dependent) object representation [PDF:1.6:4.8.6]. |
XObject |
toXObject(Document context)
Converts the entity to its equivalent external (independent) object representation [PDF:1.6:4.7]. |
Methods inherited from class it.stefanochizzolini.clown.documents.contents.xObjects.XObject |
---|
wrap |
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper |
---|
delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FormXObject(Document context)
public FormXObject(Document context, Resources resources)
public FormXObject(PdfDirectObject baseObject)
Method Detail |
---|
public FormXObject clone(Document context)
PdfObjectWrapper
clone
in class PdfObjectWrapper<PdfStream>
context
- Which document the clone has to be registered in.public double[] getMatrix()
XObject
getMatrix
in class XObject
public Dimension2D getSize()
getSize
in class XObject
public void setResources(Resources value)
public void setSize(Dimension2D value)
setSize
in class XObject
public Rectangle2D getBox()
IContentContext
The box represents the physical-coordinates frame expressed in default user-space units. This frame is crucial for the proper positioning of graphic elements on the canvas, as the spec [PDF:1.6:4.2] states that the coordinate system is positively-oriented, although the typographic coordinates would be conveniently expressed as negatively-oriented.
getBox
in interface IContentContext
public Contents getContents()
getContents
in interface IContentContext
public Resources getResources()
getResources
in interface IContentContext
public ContentObject toInlineObject(PrimitiveFilter context)
IContentEntity
This 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 IContentEntity
context
- Target content context.
public XObject toXObject(Document context)
IContentEntity
This 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
PrimitiveFilter
object).
toXObject
in interface IContentEntity
context
- Target document.
|
PDF Clown 0.0.8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |