Package com.itextpdf.text.pdf.richmedia
Class RichMediaWindow
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfDictionary
-
- com.itextpdf.text.pdf.richmedia.RichMediaWindow
-
- All Implemented Interfaces:
java.io.Serializable
public class RichMediaWindow extends PdfDictionary
The RichMediaWindow dictionary stores the dimensions and position of the floating window presented to the user. It is used only if Style is set to Windowed. See ExtensionLevel 3 p84- Since:
- 5.0.0
- See Also:
RichMediaPresentation
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RichMediaWindow()
Creates a RichMediaWindow dictionary.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private PdfDictionary
createDimensionDictionary(float d, float max, float min)
Creates a dictionary that can be used for the HEIGHT and WIDTH entries of the RichMediaWindow dictionary.void
setHeight(float defaultHeight, float maxHeight, float minHeight)
Sets a dictionary with keys Default, Max, and Min describing values for the height of the Window in default user space units.void
setPosition(RichMediaPosition position)
Sets a RichMediaPosition dictionary describing the position of the RichMediaWindow.void
setWidth(float defaultWidth, float maxWidth, float minWidth)
Sets a dictionary with keys Default, Max, and Min describing values for the width of the Window in default user space units.-
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
-
setWidth
public void setWidth(float defaultWidth, float maxWidth, float minWidth)
Sets a dictionary with keys Default, Max, and Min describing values for the width of the Window in default user space units.- Parameters:
defaultWidth
- the default widthmaxWidth
- the maximum widthminWidth
- the minimum width
-
setHeight
public void setHeight(float defaultHeight, float maxHeight, float minHeight)
Sets a dictionary with keys Default, Max, and Min describing values for the height of the Window in default user space units.- Parameters:
defaultHeight
- the default heightmaxHeight
- the maximum heightminHeight
- the minimum height
-
createDimensionDictionary
private PdfDictionary createDimensionDictionary(float d, float max, float min)
Creates a dictionary that can be used for the HEIGHT and WIDTH entries of the RichMediaWindow dictionary.- Parameters:
d
- the defaultmax
- the maximummin
- the minimum
-
setPosition
public void setPosition(RichMediaPosition position)
Sets a RichMediaPosition dictionary describing the position of the RichMediaWindow.- Parameters:
position
- a RichMediaPosition object
-
-