com.itextpdf.text.pdf.richmedia
Class RichMediaWindow

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

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

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
RichMediaWindow()
          Creates a RichMediaWindow dictionary.
 
Method Summary
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
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

RichMediaWindow

public RichMediaWindow()
Creates a RichMediaWindow dictionary.

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 width
maxWidth - the maximum width
minWidth - 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 height
maxHeight - the maximum height
minHeight - 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 default
max - the maximum
min - the minimum

setPosition

public void setPosition(RichMediaPosition position)
Sets a RichMediaPosition dictionary describing the position of the RichMediaWindow.

Parameters:
position - a RichMediaPosition object

Hosted by Hostbasket