Package com.itextpdf.text.pdf.richmedia
Class RichMediaPosition
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfDictionary
-
- com.itextpdf.text.pdf.richmedia.RichMediaPosition
-
- All Implemented Interfaces:
java.io.Serializable
public class RichMediaPosition extends PdfDictionary
The position of the window in the reader presentation area is described by the RichMediaPosition dictionary. The position of the window remains fixed, regardless of the page translation. See ExtensionLevel 3 p84- Since:
- 5.0.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RichMediaPosition()
Constructs a RichMediaPosition dictionary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setHAlign(PdfName hAlign)
Set the horizontal alignment.void
setHOffset(float hOffset)
Sets the offset from the alignment point specified by the HAlign key.void
setVAlign(PdfName vAlign)
Set the horizontal alignment.void
setVOffset(float vOffset)
Sets the offset from the alignment point specified by the VAlign key.-
Methods inherited from class com.itextpdf.text.pdf.PdfDictionary
checkType, clear, contains, get, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getKeys, isCatalog, isFont, isOutlineTree, isPage, isPages, merge, mergeDifferent, put, putAll, putEx, remove, size, toPdf, toString
-
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
-
-
-
Method Detail
-
setHAlign
public void setHAlign(PdfName hAlign)
Set the horizontal alignment.- Parameters:
hAlign
- possible values are PdfName.NEAR, PdfName.CENTER, or PdfName.FAR
-
setVAlign
public void setVAlign(PdfName vAlign)
Set the horizontal alignment.- Parameters:
vAlign
- possible values are PdfName.NEAR, PdfName.CENTER, or PdfName.FAR
-
setHOffset
public void setHOffset(float hOffset)
Sets the offset from the alignment point specified by the HAlign key. A positive value for HOffset, when HAlign is either Near or Center, offsets the position towards the Far direction. A positive value for HOffset, when HAlign is Far, offsets the position towards the Near direction.- Parameters:
hOffset
- an offset
-
setVOffset
public void setVOffset(float vOffset)
Sets the offset from the alignment point specified by the VAlign key. A positive value for VOffset, when VAlign is either Near or Center, offsets the position towards the Far direction. A positive value for VOffset, when VAlign is Far, offsets the position towards the Near direction.- Parameters:
vOffset
- an offset
-
-