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
Immutable class for constant sizes.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPDImmutableRectangle(float width, float height) Constructor for immutable rectangle. -
Method Summary
Modifier and TypeMethodDescriptionvoidsetLowerLeftX(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
-
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:
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.
-