public class PdfContainer
extends java.lang.Object
implements com.fr.Container
限定符和类型 | 字段和说明 |
---|---|
protected float |
height |
protected java.util.List<PdfBlock> |
pdfBlocks |
protected float |
width |
构造器和说明 |
---|
PdfContainer(float width,
float height,
Style style,
int resolution) |
限定符和类型 | 方法和说明 |
---|---|
boolean |
add(com.fr.third.v2.lowagie.text.Element element)
向container中添加PdfElement
|
void |
calculateHeight()
添加元素之后进行内部高度计算
|
void |
draw(java.awt.Graphics2D g2d,
java.lang.String value)
进行绘制
|
float |
getHeight()
计算并获取整体高度
|
java.lang.String |
getHtmlContent(double lineStartY,
double lineEndY)
获取从起始行到结束行生成的html字符串
|
java.util.List |
getLines()
获取内部所有的渲染行对象
|
java.util.List<PdfBlock> |
getPdfBlocks() |
protected java.util.List<PdfBlock> pdfBlocks
protected float width
protected float height
public PdfContainer(float width, float height, Style style, int resolution)
public java.util.List<PdfBlock> getPdfBlocks()
public boolean add(com.fr.third.v2.lowagie.text.Element element)
element
- public void calculateHeight()
public void draw(java.awt.Graphics2D g2d, java.lang.String value) throws java.lang.Exception
g2d
- pdf图形对象value
- 绘制内容java.lang.Exception
public float getHeight()
getHeight
在接口中 com.fr.Container
public java.util.List getLines()
public java.lang.String getHtmlContent(double lineStartY, double lineEndY)
getHtmlContent
在接口中 com.fr.Container
lineStartY
- 起始行lineEndY
- 结束行