Package com.itextpdf.text.pdf
Class FloatLayout
- java.lang.Object
-
- com.itextpdf.text.pdf.FloatLayout
-
public class FloatLayout extends java.lang.Object
Helper class for PdfDiv to put a collection of Element objects at an absolute position.
-
-
Field Summary
Fields Modifier and Type Field Description protected ColumnText
compositeColumn
protected java.util.List<Element>
content
protected float
filledWidth
protected float
floatLeftX
protected float
floatRightX
protected float
leftX
protected float
maxY
protected float
minY
protected float
rightX
protected boolean
useAscender
protected float
yLine
-
Constructor Summary
Constructors Constructor Description FloatLayout(java.util.List<Element> elements, boolean useAscender)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
floatingLayout(java.util.List<Element> floatingElements, boolean simulate)
float
getFilledWidth()
int
getRunDirection()
float
getYLine()
int
layout(PdfContentByte canvas, boolean simulate)
void
setFilledWidth(float filledWidth)
void
setRunDirection(int runDirection)
void
setSimpleColumn(float llx, float lly, float urx, float ury)
void
setYLine(float yLine)
-
-
-
Field Detail
-
maxY
protected float maxY
-
minY
protected float minY
-
leftX
protected float leftX
-
rightX
protected float rightX
-
yLine
protected float yLine
-
floatLeftX
protected float floatLeftX
-
floatRightX
protected float floatRightX
-
filledWidth
protected float filledWidth
-
compositeColumn
protected final ColumnText compositeColumn
-
content
protected final java.util.List<Element> content
-
useAscender
protected final boolean useAscender
-
-
Constructor Detail
-
FloatLayout
public FloatLayout(java.util.List<Element> elements, boolean useAscender)
-
-
Method Detail
-
getYLine
public float getYLine()
-
setYLine
public void setYLine(float yLine)
-
getFilledWidth
public float getFilledWidth()
-
setFilledWidth
public void setFilledWidth(float filledWidth)
-
getRunDirection
public int getRunDirection()
-
setRunDirection
public void setRunDirection(int runDirection)
-
setSimpleColumn
public void setSimpleColumn(float llx, float lly, float urx, float ury)
-
layout
public int layout(PdfContentByte canvas, boolean simulate) throws DocumentException
- Throws:
DocumentException
-
floatingLayout
private int floatingLayout(java.util.List<Element> floatingElements, boolean simulate) throws DocumentException
- Throws:
DocumentException
-
-