public class TableCell 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 Integer |
colspan
跨列数
|
protected List<Component> |
components
组件列表
|
protected HorizontalAlignment |
contentHorizontalAlignment
内容水平对齐方式
|
protected Float |
contentMarginBottom
内容下边距
|
protected Float |
contentMarginLeft
内容左边距
|
protected Float |
contentMarginRight
内容右边距
|
protected Float |
contentMarginTop
内容上边距
|
protected VerticalAlignment |
contentVerticalAlignment
内容垂直对齐方式
|
protected Integer |
index
索引
|
protected Boolean |
isEnableDownLine
是否开启下对角线
|
protected Boolean |
isEnableUpLine
是否开启上对角线
|
protected Boolean |
isPagingBorder
是否分页边框
|
protected TableRow |
row
所在行
|
protected Integer |
rowspan
跨行数
|
protected Float |
width
宽度
|
borderConfiguration
contentMode, context, isResetContentStream, log
Modifier and Type | Method and Description |
---|---|
protected org.apache.pdfbox.pdmodel.common.PDRectangle |
addBorder(Float beginX,
Float beginY,
BorderInfo info)
添加边框
|
void |
addComponents(Component... components)
添加组件
|
void |
addComponents(List<Component> components)
添加组件
|
protected void |
addDiagonalLine(org.apache.pdfbox.pdmodel.common.PDRectangle rectangle)
添加对角线
|
Integer |
getColspan()
获取跨列数
|
protected Float |
getHeight()
获取高度
|
Page |
getPage()
获取页面
|
protected PagingEvent |
getPagingEvent()
获取分页事件
|
Integer |
getRowspan()
获取跨行数
|
Float |
getWidth()
获取宽度
|
protected void |
init(Float beginX,
Float beginY)
初始化
|
protected void |
initBorder()
初始化边框
|
protected void |
initBorderInfo()
初始化边框信息
|
protected boolean |
isEnableDiagonalLine()
是否开启对角线
|
protected void |
processRender(Float beginX,
Float beginY,
boolean isRender)
处理渲染
|
void |
render(Float beginX,
Float beginY)
渲染
|
void |
setComponents(Component... components)
设置
|
void |
setComponents(List<Component> components)
设置组件
|
void |
setContentMargin(float margin)
设置内容边距(上下左右)
|
void |
virtualRender(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 TableRow row
protected Integer index
protected Float width
protected Integer rowspan
protected Integer colspan
protected Float beginX
protected Float beginY
protected Boolean isPagingBorder
protected Float contentMarginTop
protected Float contentMarginBottom
protected Float contentMarginLeft
protected Float contentMarginRight
protected HorizontalAlignment contentHorizontalAlignment
protected VerticalAlignment contentVerticalAlignment
protected Boolean isEnableUpLine
protected Boolean isEnableDownLine
public TableCell(TableRow row)
row
- 行public void setContentMargin(float margin)
margin
- 边距public void setComponents(List<Component> components)
components
- 组件public void setComponents(Component... components)
components
- 组件public void addComponents(List<Component> components)
components
- 组件public void addComponents(Component... components)
components
- 组件public Float getWidth()
protected Float getHeight()
public Integer getRowspan()
public Integer getColspan()
public Page getPage()
protected PagingEvent getPagingEvent()
protected void init(Float beginX, Float beginY)
beginX
- X轴起始坐标beginY
- Y轴起始坐标protected void initBorder()
protected void initBorderInfo()
protected boolean isEnableDiagonalLine()
protected void processRender(Float beginX, Float beginY, boolean isRender)
beginX
- X轴起始坐标beginY
- Y轴起始坐标isRender
- 是否渲染protected org.apache.pdfbox.pdmodel.common.PDRectangle addBorder(Float beginX, Float beginY, BorderInfo info)
beginX
- 组件渲染前X轴坐标beginY
- 组件渲染前Y轴坐标info
- 容器信息protected void addDiagonalLine(org.apache.pdfbox.pdmodel.common.PDRectangle rectangle)
rectangle
- 尺寸Copyright © 2024. All rights reserved.