com.groupdocs.watermark

Interfaces

Classes

Exceptions

com.groupdocs.watermark

Class DiagramPage



  • public class DiagramPage
    extends DocumentPart

    Represents a Visio document page.

    • Method Detail

      • getShapes

        public final DiagramShapeCollection getShapes()

        Gets the collection of all shapes of the page.

        Returns:
        The collection of all shapes of the page.
      • isBackground

        public final boolean isBackground()

        Gets a value indicating whether the page is a background page.

        Returns:
        True if the page is a background page; otherwise, false.
      • getBackgroundPage

        public final DiagramPage getBackgroundPage()

        Gets the background page for this DiagramPage.

        Returns:
        The background page for this DiagramPage.
      • getWidth

        public final double getWidth()

        Gets the width of this DiagramPage in points.

        Returns:
        The width of this DiagramPage in points.
      • getHeight

        public final double getHeight()

        Gets the height of this DiagramPage in points.

        Returns:
        The height of this DiagramPage in points.
      • getTopMargin

        public final double getTopMargin()

        Gets the size of the top margin in points.

        Returns:
        The size of the top margin in points.
      • getRightMargin

        public final double getRightMargin()

        Gets the size of the right margin in points.

        Returns:
        The size of the right margin in points.
      • getBottomMargin

        public final double getBottomMargin()

        Gets the size of the bottom margin in points.

        Returns:
        The size of the bottom margin in points.
      • getLeftMargin

        public final double getLeftMargin()

        Gets the size of the left margin in points.

        Returns:
        The size of the left margin in points.
      • isVisible

        public final boolean isVisible()

        Gets a value indicating whether the page is visible in UI.

        Returns:
        The value indicating whether the page is visible in UI. True if the page is visible; otherwise, false.
      • setVisible

        public final void setVisible(boolean value)

        Sets a value indicating whether the page is visible in UI.

        Parameters:
        value - The value indicating whether the page is visible in UI. True if the page is visible; otherwise, false.
      • getName

        public final String getName()

        Gets the name of this DiagramPage.

        Returns:
        The name of this DiagramPage.
      • addWatermark

        public void addWatermark(Watermark watermark)

        Adds a watermark to this DiagramPage. This method assumes that watermark offset and size are measured in points (if they are assigned).

        Overrides:
        addWatermark in class DocumentPart
        Parameters:
        watermark - The watermark to add to the document.
      • addWatermark

        public final void addWatermark(Watermark watermark,
                        DiagramShapeSettings shapeSettings)

        Adds a watermark to this DiagramPage. This method assumes that watermark offset and size are measured in points (if they are assigned).

        Parameters:
        watermark - The watermark to add to the document.
        shapeSettings - Shape settings that should be applied to the watermark.