public class Text extends Object
fo:block标签
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-fop is licensed under 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 |
---|
Text() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appendChild, createBlockElement, createBlockElement, createEmptyElement, transform
public Text setMarginTop(String marginTop)
marginTop
- 上边距public Text setMarginBottom(String marginBottom)
marginBottom
- 下边距public Text setMarginLeft(String marginLeft)
marginLeft
- 左边距public Text setMarginRight(String paddingRight)
paddingRight
- 右边距public Text setPaddingTop(String paddingTop)
paddingTop
- 上填充public Text setPaddingBottom(String paddingBottom)
paddingBottom
- 下填充public Text setPaddingLeft(String paddingLeft)
paddingLeft
- 左填充public Text setPaddingRight(String paddingRight)
paddingRight
- 右填充public Text setLanguage(String language)
language
- 语言public Text setLetterSpacing(String spacing)
spacing
- 字符间距public Text setWordSpacing(String spacing)
spacing
- 单词间距public Text setWhiteSpace(String whiteSpace)
normal:正常
pre:保留空格
nowrap:合并空格
whiteSpace
- 空白空间public Text setWhiteSpaceCollapse(String whiteSpaceCollapse)
true:是
false:否
whiteSpaceCollapse
- 折叠public Text setTextIndent(String indent)
indent
- 缩进值public Text setStartIndent(String indent)
indent
- 缩进值public Text setEndIndent(String indent)
indent
- 缩进值public Text setSpaceBefore(String space)
space
- 空白值public Text setSpaceAfter(String space)
space
- 空白值public Text setFontFamily(String fontFamily)
fontFamily
- 字体名称public Text setFontStyle(String fontStyle)
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
fontStyle
- 字体样式public Text setFontWeight(String fontWeight)
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
fontWeight
- 字体重量public Text setFontSize(String fontSize)
fontSize
- 字体大小public Text setFontSizeAdjust(String fontSizeAdjust)
fontSizeAdjust
- 字体大小调整public Text setFontColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color
- 字体颜色public Text setHorizontalStyle(String style)
left:居左
center:居中
right:居右
justify:两端对齐
style
- 水平样式public Text setVerticalStyle(String style)
top:上对齐
bottom:下对齐
style
- 垂直样式public Text setLinkInternalDestination(String destination)
注:标签id
destination
- 地址public Text setLinkExternalDestination(String destination)
注:url
destination
- 地址public Text setDeleteLineColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color
- 颜色public Text setUnderLineColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color
- 颜色public Text setUnderLineWidth(String width)
width
- 宽度public Text setBreakBefore(String breakBefore)
auto:自动
column:分列
page:分页
even-page:在元素之前强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之前强制分页一次或两个,以便下一页将成为奇数页
breakBefore
- 分页符public Text setBreakAfter(String breakAfter)
auto:自动
column:分列
page:分页
even-page:在元素之后强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之后强制分页一次或两个,以便下一页将成为奇数页
breakAfter
- 分页符public Text setBackgroundColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color
- 颜色public Text enableKeepTogether()
public Text enableKeepWithPrevious()
public Text enableKeepWithNext()
public Text enableLink()
public Text enableDeleteLine()
public Text enableUnderLine()
public Text enableBorder()
Copyright © 2024. All rights reserved.