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.
Constructor and Description |
---|
TableCell() |
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 setBorderTop(String border)
border
- 边框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 setBorderBottom(String border)
border
- 边框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 setBorderLeft(String border)
border
- 边框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 setBorderRight(String border)
border
- 边框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 setLeading(String leading)
leading
- 行间距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 setFontSize(String fontSize)
fontSize
- 字体大小public TableCell setFontSizeAdjust(String fontSizeAdjust)
fontSizeAdjust
- 字体大小调整public TableCell setFontColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color
- 字体颜色public TableCell setRowSpan(Integer rows)
rows
- 行数public TableCell setColumnSpan(Integer columns)
columns
- 列数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 © 2024. All rights reserved.