Package com.itextpdf.text.pdf
Class FloatLayout
- java.lang.Object
-
- com.itextpdf.text.pdf.FloatLayout
-
public class FloatLayout extends java.lang.ObjectHelper class for PdfDiv to put a collection of Element objects at an absolute position.
-
-
Field Summary
Fields Modifier and Type Field Description protected ColumnTextcompositeColumnprotected java.util.List<Element>contentprotected floatfilledWidthprotected floatfloatLeftXprotected floatfloatRightXprotected floatleftXprotected floatmaxYprotected floatminYprotected floatrightXprotected booleanuseAscenderprotected floatyLine
-
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 intfloatingLayout(java.util.List<Element> floatingElements, boolean simulate)floatgetFilledWidth()intgetRunDirection()floatgetYLine()intlayout(PdfContentByte canvas, boolean simulate)voidsetFilledWidth(float filledWidth)voidsetRunDirection(int runDirection)voidsetSimpleColumn(float llx, float lly, float urx, float ury)voidsetYLine(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
-
-