public class Table extends Object implements Component
fo:table标签
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 |
---|
Table() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, createBlockElement, createBlockElement, createEmptyElement, transform
public Table setHeader(TableHeader header)
header
- 表头public Table setFooter(TableFooter footer)
footer
- 表尾public Table setMarginTop(String marginTop)
marginTop
- 上边距public Table setMarginBottom(String marginBottom)
marginBottom
- 下边距public Table setMarginLeft(String marginLeft)
marginLeft
- 左边距public Table setMarginRight(String paddingRight)
paddingRight
- 右边距public Table setPadding(String padding)
padding
- 填充public Table setPaddingTop(String paddingTop)
paddingTop
- 上填充public Table setPaddingBottom(String paddingBottom)
paddingBottom
- 下填充public Table setPaddingLeft(String paddingLeft)
paddingLeft
- 左填充public Table setPaddingRight(String paddingRight)
paddingRight
- 右填充public Table setBorderStyle(String borderStyle)
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
borderStyle
- 边框样式public Table setBorderCollapse(String borderCollapse)
collapse:合并
separate:分开
borderCollapse
- 边框折叠public Table setBorderSpacing(String borderSpacing)
borderSpacing
- 边框间距public Table setLanguage(String language)
language
- 语言public Table setLetterSpacing(String letterSpacing)
letterSpacing
- 字符间距public Table setWordSpacing(String spacing)
spacing
- 单词间距public Table setWhiteSpace(String whiteSpace)
normal:正常
pre:保留空格
nowrap:合并空格
whiteSpace
- 空白空间public Table setFontFamily(String fontFamily)
fontFamily
- 字体名称public Table setFontStyle(String fontStyle)
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
fontStyle
- 字体样式public Table setFontWeight(String fontWeight)
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
fontWeight
- 字体重量public Table setFontSize(String fontSize)
fontSize
- 字体大小public Table setFontSizeAdjust(String fontSizeAdjust)
fontSizeAdjust
- 字体大小调整public Table setFontColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color
- 字体颜色public Table setHorizontalStyle(String style)
left:居左
center:居中
right:居右
justify:两端对齐
style
- 水平样式public Table setVerticalStyle(String style)
before:居上
center:居中
after:居下
style
- 垂直样式public Table setMinRowHeight(String minRowHeight)
minRowHeight
- 最小行高public Table setMinColumnWidth(String minColumnWidth)
minColumnWidth
- 最小列宽public Table setBreakBefore(String breakBefore)
auto:自动
column:分列
page:分页
even-page:在元素之前强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之前强制分页一次或两个,以便下一页将成为奇数页
breakBefore
- 分页符public Table setBreakAfter(String breakAfter)
auto:自动
column:分列
page:分页
even-page:在元素之后强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之后强制分页一次或两个,以便下一页将成为奇数页
breakAfter
- 分页符public Table setBackgroundColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color
- 颜色public Table enableKeepTogether()
public Table enableKeepWithPrevious()
public Table enableKeepWithNext()
public Table enableAutoOmitHeader()
注:分页时,省略表头
public Table enableAutoOmitFooter()
注:分页时,省略表尾
public Element createElement(Document document)
createElement
in interface Component
document
- fo文档Copyright © 2024. All rights reserved.