Class PDImmutableRectangle

java.lang.Object
org.apache.pdfbox.pdmodel.common.PDRectangle
org.apache.pdfbox.pdmodel.common.PDImmutableRectangle
All Implemented Interfaces:
COSObjectable

public final class PDImmutableRectangle extends PDRectangle
Immutable class for constant sizes.
  • Constructor Details

    • PDImmutableRectangle

      public PDImmutableRectangle(float width, float height)
      Constructor for immutable rectangle.
      Parameters:
      width - The width of the rectangle.
      height - The height of the rectangle.
  • Method Details

    • setUpperRightY

      public void setUpperRightY(float value)
      This will set the upper right y coordinate.
      Overrides:
      setUpperRightY in class PDRectangle
      Parameters:
      value - The upper right y.
    • setUpperRightX

      public void setUpperRightX(float value)
      This will set the upper right x coordinate.
      Overrides:
      setUpperRightX in class PDRectangle
      Parameters:
      value - The upper right x .
    • setLowerLeftY

      public void setLowerLeftY(float value)
      This will set the lower left y coordinate.
      Overrides:
      setLowerLeftY in class PDRectangle
      Parameters:
      value - The lower left y.
    • setLowerLeftX

      public void setLowerLeftX(float value)
      This will set the lower left x coordinate.
      Overrides:
      setLowerLeftX in class PDRectangle
      Parameters:
      value - The lower left x.