public class SplitLine extends Object implements Component
fo:leader
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 |
---|
SplitLine() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, createBlockElement, createBlockElement, createEmptyElement, transform
public SplitLine setMargin(String margin)
margin
- 边距public SplitLine setMarginTop(String marginTop)
marginTop
- 上边距public SplitLine setMarginBottom(String marginBottom)
marginBottom
- 下边距public SplitLine setMarginLeft(String marginLeft)
marginLeft
- 左边距public SplitLine setMarginRight(String paddingRight)
paddingRight
- 右边距public SplitLine setPadding(String padding)
padding
- 填充public SplitLine setPaddingTop(String paddingTop)
paddingTop
- 上填充public SplitLine setPaddingBottom(String paddingBottom)
paddingBottom
- 下填充public SplitLine setPaddingLeft(String paddingLeft)
paddingLeft
- 左填充public SplitLine setPaddingRight(String paddingRight)
paddingRight
- 右填充public SplitLine setStyle(String style)
none:无
dotted:点线
dashed:虚线
solid:实线
double:双实线
groove:槽线
ridge:脊线
style
- 样式public SplitLine setColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color
- 颜色public SplitLine setHorizontalStyle(String style)
left:居左
center:居中
right:居右
style
- 水平样式public SplitLine setBreakBefore(String breakBefore)
auto:自动
column:分列
page:分页
even-page:在元素之前强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之前强制分页一次或两个,以便下一页将成为奇数页
breakBefore
- 分页符public SplitLine setBreakAfter(String breakAfter)
auto:自动
column:分列
page:分页
even-page:在元素之后强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之后强制分页一次或两个,以便下一页将成为奇数页
breakAfter
- 分页符public SplitLine enableKeepTogether()
public SplitLine enableKeepWithPrevious()
public SplitLine enableKeepWithNext()
public SplitLine enableBorder()
public Element createElement(Document document)
createElement
in interface Component
document
- fo文档Copyright © 2024. All rights reserved.