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.
| 限定符和类型 | 字段和说明 |
|---|---|
protected Color |
backgroundColor
背景颜色
|
protected Float |
beginX
起始X轴坐标
|
protected Float |
beginY
起始Y轴坐标
|
protected Integer |
colspan
跨列数
|
protected List<Component> |
components
组件列表
|
protected HorizontalAlignment |
contentHorizontalAlignment
内容水平对齐方式
|
protected VerticalAlignment |
contentVerticalAlignment
内容垂直对齐方式
|
protected Integer |
index
索引
|
protected Boolean |
isPagingBorder
是否分页边框
|
protected TableRow |
row
所在行
|
protected Integer |
rowspan
跨行数
|
protected Float |
width
宽度
|
borderConfigurationcontentMode, context, isResetContentStream, log| 限定符和类型 | 方法和说明 |
|---|---|
protected float |
addBorder(Float beginX,
Float beginY,
BorderInfo info)
添加边框
|
void |
addComponents(Component... components)
添加组件
|
void |
addComponents(List<Component> components)
添加组件
|
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 |
processRender(Float beginX,
Float beginY,
boolean isRender)
处理渲染
|
void |
render(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 |
setComponents(Component... components)
设置
|
void |
setComponents(List<Component> components)
设置组件
|
void |
setIsBorder(boolean flag)
设置是否边框(上下左右)
|
void |
setIsBorderBottom(boolean flag)
设置是否下边框
|
void |
setIsBorderLeft(boolean flag)
设置是否左边框
|
void |
setIsBorderRight(boolean flag)
设置是否右边框
|
void |
setIsBorderTop(boolean flag)
设置是否上边框
|
void |
virtualRender(Float beginX,
Float beginY)
虚拟渲染
|
create, getBorderBottomColor, getBorderDottedSpacing, getBorderLeftColor, getBorderLineCapStyle, getBorderLineLength, getBorderLineStyle, getBorderLineWidth, getBorderRightColor, getBorderTopColor, getIsBorderBottom, getIsBorderLeft, getIsBorderRight, getIsBorderTop, initinit, initprotected 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 HorizontalAlignment contentHorizontalAlignment
protected VerticalAlignment contentVerticalAlignment
public TableCell(TableRow row)
row - 行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 setComponents(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 initBorder()
protected void processRender(Float beginX, Float beginY, boolean isRender)
beginX - X轴起始坐标beginY - Y轴起始坐标isRender - 是否渲染protected float addBorder(Float beginX, Float beginY, BorderInfo info)
beginX - 组件渲染前X轴坐标beginY - 组件渲染前Y轴坐标info - 容器信息Copyright © 2024. All rights reserved.