public class PdfRegionRectangle
extends java.lang.Object
Constructor and Description |
---|
PdfRegionRectangle(int regionX,
int regionY,
int regionW,
int regionH)
Creates a new
PdfRegionRectangle with the given x,y
position, width and height. |
Modifier and Type | Method and Description |
---|---|
void |
addToPDFTextStripperByArea(PDFTextStripperByArea pdfTextStripper,
java.lang.String regionName)
Add this region to the given
PDFTextStripper |
int |
getAreaH() |
int |
getAreaW() |
int |
getAreaX() |
int |
getAreaY() |
java.awt.Rectangle |
getRectangle()
Return the region as
Rectangle |
void |
setAreaH(int areaH) |
void |
setAreaW(int areaW) |
void |
setAreaX(int areaX) |
void |
setAreaY(int areaY) |
public PdfRegionRectangle(int regionX, int regionY, int regionW, int regionH)
PdfRegionRectangle
with the given x,y
position, width and height.regionX
- regionY
- regionW
- regionH
- public int getAreaX()
public void setAreaX(int areaX)
areaX
- the areaX to setpublic int getAreaY()
public void setAreaY(int areaY)
areaY
- the areaY to setpublic int getAreaW()
public void setAreaW(int areaW)
areaW
- the areaW to setpublic int getAreaH()
public void setAreaH(int areaH)
areaH
- the areaH to setpublic java.awt.Rectangle getRectangle()
Rectangle
Rectangle
for this regionpublic void addToPDFTextStripperByArea(PDFTextStripperByArea pdfTextStripper, java.lang.String regionName)
PDFTextStripper
pdfTextStripper
- the PDFTextStripperregionName
- the name of the region.