| Modifier and Type | Field and Description |
|---|---|
| public static final PDRectangle | A0
An immutable rectangle the size of A0 Paper. |
| public static final PDRectangle | A1
An immutable rectangle the size of A1 Paper. |
| public static final PDRectangle | A2
An immutable rectangle the size of A2 Paper. |
| public static final PDRectangle | A3
An immutable rectangle the size of A3 Paper. |
| public static final PDRectangle | A4
An immutable rectangle the size of A4 Paper. |
| public static final PDRectangle | A5
An immutable rectangle the size of A5 Paper. |
| public static final PDRectangle | A6
An immutable rectangle the size of A6 Paper. |
| public static final PDRectangle | LEGAL
An immutable rectangle the size of U.S. |
| public static final PDRectangle | LETTER
An immutable rectangle the size of U.S. |
| private static final float | POINTS_PER_INCH
user space units per inch |
| private static final float | POINTS_PER_MM
user space units per millimeter |
| private final COSArray | |
| public static final PDRectangle | TABLOID
An immutable rectangle the size of U.S. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDRectangle(float
The width of the rectangle. width, float The height of the rectangle. height)Constructor. |
| public | PDRectangle(float
the x coordinate of the rectangle x, float the y coordinate of the rectangle y, float The width of the rectangle. width, float The height of the rectangle. height)Constructor. |
| public | |
| public | PDRectangle(COSArray
An array of numbers as specified in the PDF Reference for a rectangle type. array)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if the point is inside this rectangle.The x-coordinate to test. x, float The y-coordinate to test. y)Method to determine if the x/y point is inside this rectangle. |
| public PDRectangle | Returns: A new rectangle that has been translated back to the origin.This will create a translated rectangle based off of this rectangle, such that the new rectangle retains the same dimensions(height/width), but the lower left x,y values are zero. |
| public COSArray | |
| public COSBase | Returns: The cos object that matches this Java object.Implements org. Convert this standard java object to a COS object. |
| public float | Returns: The height of this rectangle.This will get the height of this rectangle as calculated by upperRightY - lowerLeftY. |
| public float | |
| public float | |
| public float | |
| public float | |
| public float | Returns: The width of this rectangle.This will get the width of this rectangle as calculated by upperRightX - lowerLeftX. |
| public void | |
| public void | |
| public void | |
| public void | |
| public GeneralPath | Returns: a general path equivalent to this rectangleReturns a general path equivalent to this rectangle. |
| public String | Returns: This object as a string.Overrides java. This will return a string representation of this rectangle. |
| public GeneralPath |
| A0 | back to summary |
|---|---|
| public static final PDRectangle A0 An immutable rectangle the size of A0 Paper.
| |
| A1 | back to summary |
|---|---|
| public static final PDRectangle A1 An immutable rectangle the size of A1 Paper.
| |
| A2 | back to summary |
|---|---|
| public static final PDRectangle A2 An immutable rectangle the size of A2 Paper.
| |
| A3 | back to summary |
|---|---|
| public static final PDRectangle A3 An immutable rectangle the size of A3 Paper.
| |
| A4 | back to summary |
|---|---|
| public static final PDRectangle A4 An immutable rectangle the size of A4 Paper.
| |
| A5 | back to summary |
|---|---|
| public static final PDRectangle A5 An immutable rectangle the size of A5 Paper.
| |
| A6 | back to summary |
|---|---|
| public static final PDRectangle A6 An immutable rectangle the size of A6 Paper.
| |
| LEGAL | back to summary |
|---|---|
| public static final PDRectangle LEGAL An immutable rectangle the size of U.S. Legal, 8.5" x 14".
| |
| LETTER | back to summary |
|---|---|
| public static final PDRectangle LETTER An immutable rectangle the size of U.S. Letter, 8.5" x 11".
| |
| POINTS_PER_INCH | back to summary |
|---|---|
| private static final float POINTS_PER_INCH user space units per inch | |
| POINTS_PER_MM | back to summary |
|---|---|
| private static final float POINTS_PER_MM user space units per millimeter | |
| rectArray | back to summary |
|---|---|
| private final COSArray rectArray | |
| TABLOID | back to summary |
|---|---|
| public static final PDRectangle TABLOID An immutable rectangle the size of U.S. Tabloid, 11" x 17".
| |
| PDRectangle | back to summary |
|---|---|
| public PDRectangle() Constructor. Initializes to 0,0,0,0 | |
| PDRectangle | back to summary |
|---|---|
| public PDRectangle(float width, float height) Constructor.
| |
| PDRectangle | back to summary |
|---|---|
| public PDRectangle(float x, float y, float width, float height) Constructor.
| |
| PDRectangle | back to summary |
|---|---|
| public PDRectangle(BoundingBox box) Constructor.
| |
| PDRectangle | back to summary |
|---|---|
| public PDRectangle(COSArray array) Constructor.
| |
| contains | back to summary |
|---|---|
| public boolean contains(float x, float y) Method to determine if the x/y point is inside this rectangle.
| |
| createRetranslatedRectangle | back to summary |
|---|---|
| public PDRectangle createRetranslatedRectangle() This will create a translated rectangle based off of this rectangle, such
that the new rectangle retains the same dimensions(height/width), but the
lower left x,y values are zero.
| |
| getCOSArray | back to summary |
|---|---|
| public COSArray getCOSArray() This will get the underlying array for this rectangle.
| |
| getCOSObject | back to summary |
|---|---|
| public COSBase getCOSObject() Implements org. Convert this standard java object to a COS object. | |
| getHeight | back to summary |
|---|---|
| public float getHeight() This will get the height of this rectangle as calculated by upperRightY - lowerLeftY.
| |
| getLowerLeftX | back to summary |
|---|---|
| public float getLowerLeftX() This will get the lower left x coordinate.
| |
| getLowerLeftY | back to summary |
|---|---|
| public float getLowerLeftY() This will get the lower left y coordinate.
| |
| getUpperRightX | back to summary |
|---|---|
| public float getUpperRightX() This will get the upper right x coordinate.
| |
| getUpperRightY | back to summary |
|---|---|
| public float getUpperRightY() This will get the upper right y coordinate.
| |
| getWidth | back to summary |
|---|---|
| public float getWidth() This will get the width of this rectangle as calculated by upperRightX - lowerLeftX.
| |
| setLowerLeftX | back to summary |
|---|---|
| public void setLowerLeftX(float value) This will set the lower left x coordinate.
| |
| setLowerLeftY | back to summary |
|---|---|
| public void setLowerLeftY(float value) This will set the lower left y coordinate.
| |
| setUpperRightX | back to summary |
|---|---|
| public void setUpperRightX(float value) This will set the upper right x coordinate.
| |
| setUpperRightY | back to summary |
|---|---|
| public void setUpperRightY(float value) This will set the upper right y coordinate.
| |
| toGeneralPath | back to summary |
|---|---|
| public GeneralPath toGeneralPath() Returns a general path equivalent to this rectangle. This method avoids the problems caused by Rectangle2D not working well with -ve rectangles.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. This will return a string representation of this rectangle. | |
| transform | back to summary |
|---|---|
| public GeneralPath transform(Matrix matrix) Returns a path which represents this rectangle having been transformed by the given matrix. Note that the resulting path need not be rectangular.
| |