Package org.apache.pdfbox.pdmodel.common
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 Summary
Constructors Constructor Description PDImmutableRectangle(float width, float height)Constructor for immutable rectangle.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetLowerLeftX(float value)This will set the lower left x coordinate.voidsetLowerLeftY(float value)This will set the lower left y coordinate.voidsetUpperRightX(float value)This will set the upper right x coordinate.voidsetUpperRightY(float value)This will set the upper right y coordinate.-
Methods inherited from class org.apache.pdfbox.pdmodel.common.PDRectangle
contains, createRetranslatedRectangle, getCOSArray, getCOSObject, getHeight, getLowerLeftX, getLowerLeftY, getUpperRightX, getUpperRightY, getWidth, toGeneralPath, toString, transform
-
-
-
-
Method Detail
-
setUpperRightY
public void setUpperRightY(float value)
This will set the upper right y coordinate.- Overrides:
setUpperRightYin classPDRectangle- Parameters:
value- The upper right y.
-
setUpperRightX
public void setUpperRightX(float value)
This will set the upper right x coordinate.- Overrides:
setUpperRightXin classPDRectangle- Parameters:
value- The upper right x .
-
setLowerLeftY
public void setLowerLeftY(float value)
This will set the lower left y coordinate.- Overrides:
setLowerLeftYin classPDRectangle- Parameters:
value- The lower left y.
-
setLowerLeftX
public void setLowerLeftX(float value)
This will set the lower left x coordinate.- Overrides:
setLowerLeftXin classPDRectangle- Parameters:
value- The lower left x.
-
-