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(int llx, int ury, int w, int h)
public XFARectangle(Float llx, Float ury, Float w, Float minW, Float maxW, Float h, Float minH, Float 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 set
public Float getHeight()
public Float getMinH()
public void setMinH(Float minH)
minH
- the minH to set
public Float getMaxH()
public void setMaxH(Float maxH)
maxH
- the maxH to set
public void setWidth(Float w)
w
- the w to set
public Float getWidth()
public Float getMinW()
public void setMinW(Float minW)
minW
- the minW to set
public Float getMaxW()
public void setMaxW(Float maxW)
maxW
- the maxW to set
public void setUry(Float ury)
ury
- the ury to set
public Float getUry()
public void setLlx(Float llx)
llx
- the llx to set
public Float getLlx()
public com.itextpdf.text.Rectangle toRectangle()
UnsupportedOperationException
- if any of the parameters is null
public 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-2019 iText Group NV. All Rights Reserved.