public class TableRow extends Object
fo:table-row标签
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 |
---|
TableRow() |
public TableRow setBorderStyle(String borderStyle)
none:无
hidden:隐藏
dotted:点虚线
dashed:短虚线
solid:实线
double:双实线
groove:凹线(槽)
ridge:凸线(脊)
inset:嵌入
outset:凸出
borderStyle
- 边框样式public TableRow setLanguage(String language)
language
- 语言public TableRow setLeading(String leading)
leading
- 行间距public TableRow setLetterSpacing(String letterSpacing)
letterSpacing
- 字符间距public TableRow setWordSpacing(String spacing)
spacing
- 单词间距public TableRow setFontFamily(String fontFamily)
fontFamily
- 字体名称public TableRow setFontStyle(String fontStyle)
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
fontStyle
- 字体样式public TableRow setFontWeight(String fontWeight)
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
fontWeight
- 字体重量public TableRow setFontSize(String fontSize)
fontSize
- 字体大小public TableRow setFontSizeAdjust(String fontSizeAdjust)
fontSizeAdjust
- 字体大小调整public TableRow setFontColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color
- 字体颜色public TableRow setHorizontalStyle(String style)
left:居左
center:居中
right:居右
justify:两端对齐
style
- 水平样式public TableRow setVerticalStyle(String style)
before:居上
center:居中
after:居下
style
- 垂直样式public TableRow setMinColumnWidth(String minColumnWidth)
minColumnWidth
- 最小列宽public TableRow setMinRowHeight(String minRowHeight)
minRowHeight
- 最小行高public TableRow setBreakBefore(String breakBefore)
auto:自动
column:分列
page:分页
even-page:在元素之前强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之前强制分页一次或两个,以便下一页将成为奇数页
breakBefore
- 分页符public TableRow setBreakAfter(String breakAfter)
auto:自动
column:分列
page:分页
even-page:在元素之后强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之后强制分页一次或两个,以便下一页将成为奇数页
breakAfter
- 分页符public TableRow enableKeepTogether()
public TableRow enableKeepWithPrevious()
public TableRow enableKeepWithNext()
public TableRow addCell(TableCell... cells)
cells
- 单元格列表public TableRow addCell(List<TableCell> cells)
cells
- 单元格列表Copyright © 2024. All rights reserved.