Constructor and Description |
---|
XFARectangle(Float llx,
Float ury,
Float w,
Float h) |
XFARectangle(Float llx,
Float ury,
Float w,
Float minW,
Float maxW,
Float h,
Float minH,
Float maxH) |
XFARectangle(int llx,
int ury,
int w,
int h) |
XFARectangle(com.itextpdf.text.Rectangle rectangle) |
Modifier and Type | Method and Description |
---|---|
static void |
applyMargins(XFARectangle rec,
float topIndent,
float rightIndent,
float bottomIndent,
float leftIndent,
boolean reverse) |
XFARectangle |
applyTransformation(com.itextpdf.awt.geom.AffineTransform transformation) |
XFARectangle |
clone() |
boolean |
contains(XFARectangle other) |
boolean |
contains(XFARectangle other,
float padding) |
static XFARectangle |
getCommonRectangle(List<XFARectangle> rectangles)
Calculates the common rectangle which includes all the input rectangles.
|
Float |
getHeight() |
Float |
getLlx() |
Float |
getMaxH() |
Float |
getMaxW() |
Float |
getMinH() |
Float |
getMinW() |
Float |
getUry() |
Float |
getWidth() |
void |
setHeight(Float h) |
void |
setLlx(Float llx) |
void |
setMaxH(Float maxH) |
void |
setMaxW(Float maxW) |
void |
setMinH(Float minH) |
void |
setMinW(Float minW) |
static void |
setUndefinedSizes(XFARectangle contentArea) |
void |
setUry(Float ury) |
void |
setWidth(Float w) |
com.itextpdf.text.Rectangle |
toRectangle()
Does new com.itextpdf.text.Rectangle(x, y, x+w, y+h);
|
public XFARectangle(Float llx, Float ury, Float w, Float h)
llx
- ury
- w
- h
- public XFARectangle(int llx, int ury, int w, int h)
llx
- ury
- w
- h
- public XFARectangle(Float llx, Float ury, Float w, Float minW, Float maxW, Float h, Float minH, Float maxH)
llx
- ury
- w
- minW
- maxW
- h
- minH
- maxH
- public XFARectangle(com.itextpdf.text.Rectangle rectangle)
public static XFARectangle getCommonRectangle(List<XFARectangle> rectangles)
rectangles
- list of input rectangles.public static void applyMargins(XFARectangle rec, float topIndent, float rightIndent, float bottomIndent, float leftIndent, boolean reverse)
public static void setUndefinedSizes(XFARectangle contentArea)
public void setHeight(Float h)
h
- the h to setpublic Float getHeight()
public Float getMinH()
public void setMinH(Float minH)
minH
- the minH to setpublic Float getMaxH()
public void setMaxH(Float maxH)
maxH
- the maxH to setpublic void setWidth(Float w)
w
- the w to setpublic Float getWidth()
public Float getMinW()
public void setMinW(Float minW)
minW
- the minW to setpublic Float getMaxW()
public void setMaxW(Float maxW)
maxW
- the maxW to setpublic void setUry(Float ury)
ury
- the ury to setpublic Float getUry()
public void setLlx(Float llx)
llx
- the llx to setpublic Float getLlx()
public com.itextpdf.text.Rectangle toRectangle()
UnsupportedOperationException
- if any of the parameters is nullpublic XFARectangle clone()
public XFARectangle applyTransformation(com.itextpdf.awt.geom.AffineTransform transformation)
public boolean contains(XFARectangle other, float padding)
public boolean contains(XFARectangle other)
Copyright (C) 1998-2018 iText Group NV. All Rights Reserved.