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.
| 限定符和类型 | 字段和说明 |
|---|---|
protected Color |
backgroundColor
背景颜色
|
protected Float |
beginX
起始X轴坐标
|
protected Float |
beginY
起始Y轴坐标
|
protected List<TableCell> |
cells
单元格列表
|
protected HorizontalAlignment |
contentHorizontalAlignment
内容水平对齐方式
|
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
表格
|
borderConfigurationcontentMode, context, isResetContentStream, log| 限定符和类型 | 方法和说明 |
|---|---|
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()
初始化单元格
|
void |
render(Page page,
Float beginX,
Float beginY)
渲染
|
void |
setBorderBottomColor(Color color)
设置下边框颜色
|
void |
setBorderColor(Color color)
设置边框颜色(上下左右)
|
void |
setBorderDottedSpacing(float spacing)
设置边框点线间隔
|
void |
setBorderLeftColor(Color color)
设置左边框颜色
|
void |
setBorderLineCapStyle(LineCapStyle style)
设置线帽样式
|
void |
setBorderLineLength(float length)
设置边框线长
|
void |
setBorderLineStyle(LineStyle style)
设置边框样式
|
void |
setBorderLineWidth(float width)
设置边框线宽
|
void |
setBorderRightColor(boolean flag)
设置是否上边框
|
void |
setBorderRightColor(Color color)
设置右边框颜色
|
void |
setBorderTopColor(Color color)
设置上边框颜色
|
void |
setCells(List<TableCell> cells)
设置单元格
|
void |
setCells(TableCell... cells)
设置单元格
|
void |
setHeight(float height)
设置高度
|
void |
setIsBorder(boolean flag)
设置是否边框(上下左右)
|
void |
setIsBorderBottom(boolean flag)
设置是否下边框
|
void |
setIsBorderLeft(boolean flag)
设置是否左边框
|
void |
setIsBorderRight(boolean flag)
设置是否右边框
|
void |
setIsBorderTop(boolean flag)
设置是否上边框
|
void |
virtualRender(Page page,
Float beginX,
Float beginY)
虚拟渲染
|
create, getBorderBottomColor, getBorderDottedSpacing, getBorderLeftColor, getBorderLineCapStyle, getBorderLineLength, getBorderLineStyle, getBorderLineWidth, getBorderRightColor, getBorderTopColor, getIsBorderBottom, getIsBorderLeft, getIsBorderRight, getIsBorderTop, initinit, initprotected 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 HorizontalAlignment contentHorizontalAlignment
protected VerticalAlignment contentVerticalAlignment
public TableRow(Table table)
table - 表格public void setHeight(float height)
height - 高度public void setBorderLineStyle(LineStyle style)
setBorderLineStyle 在类中 BorderDatastyle - 样式public void setBorderLineCapStyle(LineCapStyle style)
setBorderLineCapStyle 在类中 BorderDatastyle - 样式public void setBorderLineLength(float length)
setBorderLineLength 在类中 BorderDatalength - 线长public void setBorderLineWidth(float width)
setBorderLineWidth 在类中 BorderDatawidth - 线宽public void setBorderDottedSpacing(float spacing)
setBorderDottedSpacing 在类中 BorderDataspacing - 间隔public void setBorderColor(Color color)
color - 颜色public void setBorderTopColor(Color color)
setBorderTopColor 在类中 BorderDatacolor - 颜色public void setBorderBottomColor(Color color)
setBorderBottomColor 在类中 BorderDatacolor - 颜色public void setBorderLeftColor(Color color)
setBorderLeftColor 在类中 BorderDatacolor - 颜色public void setBorderRightColor(Color color)
setBorderRightColor 在类中 BorderDatacolor - 颜色public void setBorderRightColor(boolean flag)
flag - 是否上边框public void setIsBorder(boolean flag)
setIsBorder 在类中 BorderDataflag - 是否边框public void setIsBorderTop(boolean flag)
setIsBorderTop 在类中 BorderDataflag - 是否上边框public void setIsBorderBottom(boolean flag)
setIsBorderBottom 在类中 BorderDataflag - 是否下边框public void setIsBorderLeft(boolean flag)
setIsBorderLeft 在类中 BorderDataflag - 是否左边框public void setIsBorderRight(boolean flag)
setIsBorderRight 在类中 BorderDataflag - 是否右边框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 initBorder()
protected void initCells()
protected void checkTogether()
protected void checkBreak()
Copyright © 2024. All rights reserved.