Class RichMediaPresentation

  • All Implemented Interfaces:
    java.io.Serializable

    public class RichMediaPresentation
    extends PdfDictionary
    The RichMediaPresentation dictionary contains information about how the annotation and user interface elements are to be visually laid out and drawn. See ExtensionLevel 3 p82
    Since:
    5.0.0
    See Also:
    Serialized Form
    • Constructor Detail

      • RichMediaPresentation

        public RichMediaPresentation()
        Creates a RichMediaPresentation dictionary.
    • Method Detail

      • setStyle

        public void setStyle​(PdfName style)
        Sets the style for the presentation; can be embedded or windowed.
        Parameters:
        style - PdfName.EMBEDDED or PdfName.WINDOWED
      • setWindow

        public void setWindow​(RichMediaWindow window)
        A RichMediaWindow Dictionary that describes the size and position of the floating user interface window when the value for Style is set to Windowed.
        Parameters:
        window - a RichMediaWindow object
      • setTransparent

        public void setTransparent​(PdfBoolean transparent)
        Set a flag that indicates whether the page content is displayed through the transparent areas of the rich media content (where the alpha value is less than 1.0). If true, the rich media artwork is composited over the page content using an alpha channel. If false, the rich media artwork is drawn over an opaque background prior to composition over the page content.
        Parameters:
        transparent - a boolean
      • setNavigationPane

        public void setNavigationPane​(PdfBoolean navigationPane)
        Sets a flag that indicates the default behavior of the navigation pane user interface element. If true, the navigation pane is visible when the content is initially activated. If false, the navigation pane is not displayed by default.
        Parameters:
        navigationPane - a boolean
      • setToolbar

        public void setToolbar​(PdfBoolean toolbar)
        Sets a flag that indicates the default behavior of an interactive toolbar associated with this annotation. If true, a toolbar is displayed when the annotation is activated and given focus. If false, a toolbar is not displayed by default.
        Parameters:
        toolbar - a boolean
      • setPassContextClick

        public void setPassContextClick​(PdfBoolean passContextClick)
        Sets a flag that indicates whether a context click on the rich media annotation is passed to the media player run time or is handled by the conforming reader. If false, the conforming reader handles the context click. If true, the conforming reader's context menu is not visible, and the user sees the context menu and any custom items generated by the media player run time.
        Parameters:
        passContextClick - a boolean