public class TableRow extends BorderData
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-pdfbox is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v2 for more details.
Modifier and Type | Field and Description |
---|---|
protected Color |
backgroundColor
背景颜色
|
protected Float |
beginX
起始X轴坐标
|
protected Float |
beginY
起始Y轴坐标
|
protected List<TableCell> |
cells
单元格列表
|
protected HorizontalAlignment |
contentHorizontalAlignment
内容水平对齐方式
|
protected Float |
contentMarginBottom
内容下边距
|
protected Float |
contentMarginLeft
内容左边距
|
protected Float |
contentMarginRight
内容右边距
|
protected Float |
contentMarginTop
内容上边距
|
protected VerticalAlignment |
contentVerticalAlignment
内容垂直对齐方式
|
protected Float |
height
高度
|
protected Integer |
index
索引
|
protected Boolean |
isBreak
是否分页
|
protected Boolean |
isPagingBorder
是否分页边框
|
protected Boolean |
isTogether
是否整体换行
|
protected TableRow |
next
下一行
|
protected Page |
page
所在页面
|
protected TableRow |
previous
上一行
|
protected Table |
table
表格
|
borderConfiguration
contentMode, context, isResetContentStream, log
Modifier and Type | Method and Description |
---|---|
void |
addCells(List<TableCell> cells)
添加单元格
|
void |
addCells(TableCell... cells)
添加单元格
|
protected void |
checkBreak()
检查分页
|
protected void |
checkTogether()
检查同行
|
protected PagingEvent |
getPagingEvent()
获取分页事件
|
Float |
getWidth()
获取宽度
|
protected void |
init(Page page,
Float beginX,
Float beginY)
初始化
|
protected void |
initBorder()
初始化边框
|
protected void |
initCells()
初始化单元格
|
protected void |
initForHeaderOrFooter(AbstractTableHeaderOrFooter headerOrFooter)
初始化(表头或表尾)
|
protected void |
render(Page page,
Float beginX,
Float beginY)
渲染
|
void |
setCells(List<TableCell> cells)
设置单元格
|
void |
setCells(TableCell... cells)
设置单元格
|
void |
setContentMargin(float margin)
设置内容边距(上下左右)
|
void |
setHeight(float height)
设置高度
|
protected void |
virtualRender(Page page,
Float beginX,
Float beginY)
虚拟渲染
|
create, getBorderBottomColor, getBorderDottedSpacing, getBorderLeftColor, getBorderLineCapStyle, getBorderLineLength, getBorderLineStyle, getBorderLineWidth, getBorderRightColor, getBorderTopColor, getIsBorderBottom, getIsBorderLeft, getIsBorderRight, getIsBorderTop, init, setBorderBottomColor, setBorderDottedSpacing, setBorderLeftColor, setBorderLineCapStyle, setBorderLineLength, setBorderLineStyle, setBorderLineWidth, setBorderRightColor, setBorderTopColor, setIsBorder, setIsBorderBottom, setIsBorderLeft, setIsBorderRight, setIsBorderTop
init, init
protected Color backgroundColor
protected Table table
protected Page page
protected Integer index
protected TableRow previous
protected TableRow next
protected Float height
protected Float beginX
protected Float beginY
protected Boolean isBreak
protected Boolean isTogether
protected Boolean isPagingBorder
protected Float contentMarginTop
protected Float contentMarginBottom
protected Float contentMarginLeft
protected Float contentMarginRight
protected HorizontalAlignment contentHorizontalAlignment
protected VerticalAlignment contentVerticalAlignment
public TableRow(Table table)
table
- 表格public void setContentMargin(float margin)
margin
- 边距public void setHeight(float height)
height
- 高度public void setCells(TableCell... cells)
cells
- 单元格public void addCells(TableCell... cells)
cells
- 单元格public Float getWidth()
protected PagingEvent getPagingEvent()
protected void init(Page page, Float beginX, Float beginY)
page
- 页面beginX
- X轴起始坐标beginY
- Y轴起始坐标protected void initForHeaderOrFooter(AbstractTableHeaderOrFooter headerOrFooter)
headerOrFooter
- 表头或表尾protected void initBorder()
protected void initCells()
protected void checkTogether()
protected void checkBreak()
Copyright © 2024. All rights reserved.