public class Bookmark extends Object implements BookmarkComponent
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 |
---|
Bookmark() |
Modifier and Type | Method and Description |
---|---|
Bookmark |
addChild(Bookmark... bookmarks)
添加子书签
|
Bookmark |
addChild(List<Bookmark> bookmarks)
添加子书签
|
Element |
createElement(Document document)
创建元素
|
Bookmark |
setFontColor(String color)
设置字体颜色
|
Bookmark |
setFontFamily(String fontFamily)
设置字体名称
|
Bookmark |
setFontSize(String fontSize)
设置字体大小
|
Bookmark |
setFontSizeAdjust(String fontSizeAdjust)
设置字体大小调整
|
Bookmark |
setFontStyle(String fontStyle)
设置字体样式
|
Bookmark |
setFontWeight(String fontWeight)
设置字体重量
|
Bookmark |
setInitialCapacity(int initialCapacity)
设置子书签初始化容量
|
Bookmark |
setInternalDestination(String destination)
设置内部地址
|
Bookmark |
setStartingState(String state)
设置开始状态
|
Bookmark |
setTitle(String title)
设置标题
|
public Bookmark setInitialCapacity(int initialCapacity)
initialCapacity
- 初始化容量public Bookmark setInternalDestination(String destination)
destination
- 地址public Bookmark setFontFamily(String fontFamily)
fontFamily
- 字体名称public Bookmark setFontStyle(String fontStyle)
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
fontStyle
- 字体样式public Bookmark setFontWeight(String fontWeight)
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
fontWeight
- 字体重量public Bookmark setFontSize(String fontSize)
fontSize
- 字体大小public Bookmark setFontSizeAdjust(String fontSizeAdjust)
fontSizeAdjust
- 字体大小调整public Bookmark setFontColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
color
- 字体颜色public Bookmark setStartingState(String state)
show:展开
hide:折叠
state
- 开始状态public Bookmark addChild(Bookmark... bookmarks)
bookmarks
- 书签public Bookmark addChild(List<Bookmark> bookmarks)
bookmarks
- 书签public Element createElement(Document document)
createElement
in interface BookmarkComponent
document
- fo文档Copyright © 2024. All rights reserved.