Class PDFIcon

    • Method Detail

      • clone

        public java.lang.Object clone​(Workspace workspace)
                               throws java.lang.CloneNotSupportedException
        Clone the object into the specified workspace. The new object is not added to the directory of that workspace (you must do this yourself if you want it there). The result is an object with no container.
        Overrides:
        clone in class DynamicEditorIcon
        Parameters:
        workspace - The workspace for the cloned object.
        Returns:
        The new Attribute.
        Throws:
        java.lang.CloneNotSupportedException - Not thrown in this base class
        See Also:
        NamedObj.exportMoML(Writer, int, String), NamedObj.setDeferringChangeRequests(boolean)
      • createBackgroundFigure

        public Figure createBackgroundFigure()
        Create a new default background figure, which is an instance of PDFFigure.
        Overrides:
        createBackgroundFigure in class EditorIcon
        Returns:
        A figure representing the specified PDF page.
      • setPage

        public void setPage​(com.sun.pdfview.PDFPage page)
        Specify an PDF page to display.
        Parameters:
        page - The PDF page to display.
      • setScale

        public void setScale​(double scalePercentage)
        Specify a scaling percentage of the PDF page.
        Parameters:
        scalePercentage - The scale percentage.