com.itextpdf.text.pdf.richmedia
Class RichMediaPosition

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfObject
      extended by com.itextpdf.text.pdf.PdfDictionary
          extended by com.itextpdf.text.pdf.richmedia.RichMediaPosition

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

Field Summary
 
Fields inherited from class com.itextpdf.text.pdf.PdfDictionary
CATALOG, FONT, hashMap, OUTLINES, PAGE, PAGES
 
Fields inherited from class com.itextpdf.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
 
Constructor Summary
RichMediaPosition()
          Constructs a RichMediaPosition dictionary.
 
Method Summary
 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
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RichMediaPosition

public RichMediaPosition()
Constructs a RichMediaPosition dictionary.

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

Hosted by Hostbasket