Class RichMediaPosition

All Implemented Interfaces:
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:
  • Constructor Details

    • RichMediaPosition

      public RichMediaPosition()
      Constructs a RichMediaPosition dictionary.
  • Method Details

    • 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