public class TableCell extends Object
fo:table-cell标签
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-fop is licensed under the 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.
| 构造器和说明 |
|---|
TableCell() |
| 限定符和类型 | 方法和说明 |
|---|---|
TableCell |
addComponent(Component... components)
添加组件
|
TableCell |
addComponent(List<Component> components)
添加组件
|
Element |
createElement(Document document)
创建元素
|
TableCell |
setBackground(String background)
设置背景
|
TableCell |
setBackgroundAttachment(String attachment)
设置背景附件
scroll:滚动
fixed:固定
|
TableCell |
setBackgroundColor(String color)
设置背景颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
TableCell |
setBackgroundHorizontalPosition(String position)
设置背景图片水平定位
|
TableCell |
setBackgroundImage(String image)
设置背景图片
注:路径须写为”url('xxx.png')“的形式
注:当为windows系统绝对路径时,须添加前缀“/”,例如:”url('/E:\test\test.png')“
|
TableCell |
setBackgroundImageHeight(String height)
设置背景图片高度
|
TableCell |
setBackgroundImageWidth(String width)
设置背景图片宽度
|
TableCell |
setBackgroundPosition(String position)
设置背景图片定位
第一个参数为X轴
第二个参数为Y轴
|
TableCell |
setBackgroundRepeat(String repeat)
设置背景图片重复
repeat:水平垂直重复
repeat-x:水平重复
repeat-y:垂直重复
no-repeat:不重复
|
TableCell |
setBackgroundVerticalPosition(String position)
设置背景图片垂直定位
|
TableCell |
setBorder(String border)
设置边框
|
TableCell |
setBorderBottom(String border)
设置下边框
|
TableCell |
setBorderBottomColor(String borderColor)
设置下边框颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
TableCell |
setBorderBottomStyle(String borderStyle)
设置下边框样式
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
|
TableCell |
setBorderBottomWidth(String borderWidth)
设置下边框宽度
|
TableCell |
setBorderColor(String borderColor)
设置边框颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
TableCell |
setBorderLeft(String border)
设置左边框
|
TableCell |
setBorderLeftColor(String borderColor)
设置左边框颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
TableCell |
setBorderLeftStyle(String borderStyle)
设置左边框样式
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
|
TableCell |
setBorderLeftWidth(String borderWidth)
设置左边框宽度
|
TableCell |
setBorderRight(String border)
设置右边框
|
TableCell |
setBorderRightColor(String borderColor)
设置右边框颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
TableCell |
setBorderRightStyle(String borderStyle)
设置右边框样式
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
|
TableCell |
setBorderRightWidth(String borderWidth)
设置右边框宽度
|
TableCell |
setBorderStyle(String borderStyle)
设置边框样式
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
|
TableCell |
setBorderTop(String border)
设置上边框
|
TableCell |
setBorderTopColor(String borderColor)
设置上边框颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
TableCell |
setBorderTopStyle(String borderStyle)
设置上边框样式
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
|
TableCell |
setBorderTopWidth(String borderWidth)
设置上边框宽度
|
TableCell |
setBorderWidth(String borderWidth)
设置边框宽度
|
TableCell |
setColumnSpan(Integer columns)
设置合并列数
|
TableCell |
setFontColor(String color)
设置字体颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
TableCell |
setFontFamily(String fontFamily)
设置字体名称
|
TableCell |
setFontSize(String fontSize)
设置字体大小
|
TableCell |
setFontSizeAdjust(String fontSizeAdjust)
设置字体大小调整
|
TableCell |
setFontStyle(String fontStyle)
设置字体样式
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
|
TableCell |
setFontWeight(String fontWeight)
设置字体重量
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
|
TableCell |
setHeight(String height)
设置高度
|
TableCell |
setHorizontalStyle(String style)
设置文本水平样式
left:居左
center:居中
right:居右
justify:两端对齐
|
TableCell |
setId(String id)
设置id
|
TableCell |
setLanguage(String language)
设置文本语言
|
TableCell |
setLeading(String leading)
设置行间距
|
TableCell |
setLetterSpacing(String letterSpacing)
设置字符间距
|
TableCell |
setRowSpan(Integer rows)
设置合并行数
|
TableCell |
setVerticalStyle(String style)
设置文本垂直样式
before:居上
center:居中
after:居下
|
TableCell |
setWhiteSpace(String whiteSpace)
设置空白空间
normal:正常
pre:保留空格
nowrap:合并空格
|
TableCell |
setWidth(String width)
设置宽度
|
TableCell |
setWordSpacing(String spacing)
设置单词间距
|
public TableCell setBorderStyle(String borderStyle)
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
borderStyle - 边框样式public TableCell setBorderColor(String borderColor)
color:颜色(名称或16进制颜色)
transparent:透明
borderColor - 边框颜色public TableCell setBorderWidth(String borderWidth)
borderWidth - 边框宽度public TableCell setBorderTopStyle(String borderStyle)
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
borderStyle - 边框样式public TableCell setBorderTopColor(String borderColor)
color:颜色(名称或16进制颜色)
transparent:透明
borderColor - 边框颜色public TableCell setBorderTopWidth(String borderWidth)
borderWidth - 边框宽度public TableCell setBorderBottomStyle(String borderStyle)
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
borderStyle - 边框样式public TableCell setBorderBottomColor(String borderColor)
color:颜色(名称或16进制颜色)
transparent:透明
borderColor - 边框颜色public TableCell setBorderBottomWidth(String borderWidth)
borderWidth - 边框宽度public TableCell setBorderLeftStyle(String borderStyle)
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
borderStyle - 边框样式public TableCell setBorderLeftColor(String borderColor)
color:颜色(名称或16进制颜色)
transparent:透明
borderColor - 边框颜色public TableCell setBorderLeftWidth(String borderWidth)
borderWidth - 边框宽度public TableCell setBorderRightStyle(String borderStyle)
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
borderStyle - 边框样式public TableCell setBorderRightColor(String borderColor)
color:颜色(名称或16进制颜色)
transparent:透明
borderColor - 边框颜色public TableCell setBorderRightWidth(String borderWidth)
borderWidth - 边框宽度public TableCell setLanguage(String language)
language - 语言public TableCell setLetterSpacing(String letterSpacing)
letterSpacing - 字符间距public TableCell setWordSpacing(String spacing)
spacing - 单词间距public TableCell setWhiteSpace(String whiteSpace)
normal:正常
pre:保留空格
nowrap:合并空格
whiteSpace - 空白空间public TableCell setFontFamily(String fontFamily)
fontFamily - 字体名称public TableCell setFontStyle(String fontStyle)
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
fontStyle - 字体样式public TableCell setFontWeight(String fontWeight)
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
fontWeight - 字体重量public TableCell setFontSizeAdjust(String fontSizeAdjust)
fontSizeAdjust - 字体大小调整public TableCell setFontColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color - 字体颜色public TableCell setHorizontalStyle(String style)
left:居左
center:居中
right:居右
justify:两端对齐
style - 水平样式public TableCell setVerticalStyle(String style)
before:居上
center:居中
after:居下
style - 垂直样式public TableCell setBackground(String background)
background - 背景public TableCell setBackgroundImage(String image)
注:路径须写为”url('xxx.png')“的形式
注:当为windows系统绝对路径时,须添加前缀“/”,例如:”url('/E:\test\test.png')“
image - 图片public TableCell setBackgroundImageWidth(String width)
width - 图片宽度public TableCell setBackgroundImageHeight(String height)
height - 图片高度public TableCell setBackgroundAttachment(String attachment)
scroll:滚动
fixed:固定
attachment - 附件public TableCell setBackgroundColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color - 颜色public TableCell setBackgroundPosition(String position)
第一个参数为X轴
第二个参数为Y轴
position - 定位public TableCell setBackgroundHorizontalPosition(String position)
position - 定位public TableCell setBackgroundVerticalPosition(String position)
position - 定位public TableCell setBackgroundRepeat(String repeat)
repeat:水平垂直重复
repeat-x:水平重复
repeat-y:垂直重复
no-repeat:不重复
repeat - 重复public TableCell addComponent(Component... components)
components - 模板组件public TableCell addComponent(List<Component> components)
components - 模板组件Copyright © 2025. All rights reserved.