com.itextpdf.text.pdf
Class FloatLayout

java.lang.Object
  extended by com.itextpdf.text.pdf.FloatLayout

public class FloatLayout
extends Object

Helper class for PdfDiv to put a collection of Element objects at an absolute position.


Field Summary
protected  ColumnText compositeColumn
           
protected  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
FloatLayout(List<Element> elements, boolean useAscender)
           
 
Method Summary
 float getFilledWidth()
           
 float getYLine()
           
 int layout(PdfContentByte canvas, boolean simulate)
           
 void setFilledWidth(float filledWidth)
           
 void setSimpleColumn(float llx, float lly, float urx, float ury)
           
 void setYLine(float yLine)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 List<Element> content

useAscender

protected final boolean useAscender
Constructor Detail

FloatLayout

public FloatLayout(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)

setSimpleColumn

public void setSimpleColumn(float llx,
                            float lly,
                            float urx,
                            float ury)

layout

public int layout(PdfContentByte canvas,
                  boolean simulate)
           throws DocumentException
Throws:
DocumentException


Copyright © 2013. All Rights Reserved.