public class ComponentParam extends Object
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.
| 限定符和类型 | 字段和说明 |
|---|---|
protected String |
background
背景
|
protected String |
backgroundAttachment
背景附件
scroll:滚动
fixed:固定
|
protected String |
backgroundColor
背景颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
protected String |
backgroundImage
背景图片
注:路径须写为”url('xxx.png')“的形式
注:当为windows系统绝对路径时,须添加前缀“/”,例如:”url('/E:\test\test.png')“
|
protected String |
backgroundImageHeight
背景图片高度
|
protected String |
backgroundImageWidth
背景图片宽度
|
protected String |
backgroundPosition
背景图片定位
第一个参数为X轴
第二个参数为Y轴
|
protected String |
backgroundPositionHorizontal
背景图片水平定位
|
protected String |
backgroundPositionVertical
背景图片垂直定位
|
protected String |
backgroundRepeat
背景图片重复
repeat:水平垂直重复
repeat-x:水平重复
repeat-y:垂直重复
no-repeat:不重复
|
protected String |
breakAfter
分页符-后
auto:自动
column:分列
page:分页
even-page:在元素之后强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之后强制分页一次或两个,以便下一页将成为奇数页
|
protected String |
breakBefore
分页符-前
auto:自动
column:分列
page:分页
even-page:在元素之前强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之前强制分页一次或两个,以便下一页将成为奇数页
|
protected String |
color
颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
protected String |
endIndent
段后缩进
|
protected String |
fontFamily
字体名称
|
protected String |
fontSize
字体大小
|
protected String |
fontSizeAdjust
字体大小调整
|
protected String |
fontStyle
字体样式
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
|
protected String |
fontWeight
字体重量
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
|
protected Boolean |
hasBorder
是否包含边框
|
protected String |
horizontalStyle
水平样式
left:居左
center:居中
right:居右
right:居右
justify:两端对齐
|
protected String |
id
id
|
protected String |
keepTogether
分页时保持
auto:自动
always:总是
|
protected String |
keepWithNext
分页时与下一个元素保持
auto:自动
always:总是
|
protected String |
keepWithPrevious
分页时与上一个元素保持
auto:自动
always:总是
|
protected String |
language
语言
|
protected String |
leading
行间距
|
protected String |
letterSpacing
字符间距
|
protected String |
margin
上下左右边距
|
protected String |
marginBottom
下边距
|
protected String |
marginLeft
左边距
|
protected String |
marginRight
右边距
|
protected String |
marginTop
上边距
|
protected String |
padding
上下左右填充
|
protected String |
paddingBottom
下填充
|
protected String |
paddingLeft
左填充
|
protected String |
paddingRight
右填充
|
protected String |
paddingTop
上填充
|
protected String |
spaceAfter
段后空白
|
protected String |
spaceBefore
段前空白
|
protected String |
startIndent
段前缩进
|
protected String |
textIndent
文本缩进
|
protected String |
verticalStyle
垂直样式
before:居上
center:居中
after:居下
|
protected String |
whiteSpace
空白空间
normal:正常
pre:保留空格
nowrap:合并空格
|
protected String |
whiteSpaceCollapse
空白空间折叠
true:是
false:否
|
protected String |
wordSpacing
单词间距
|
| 构造器和说明 |
|---|
ComponentParam() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
String |
getBackground()
背景
|
String |
getBackgroundAttachment()
背景附件
scroll:滚动
fixed:固定
|
String |
getBackgroundColor()
背景颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
String |
getBackgroundImage()
背景图片
注:路径须写为”url('xxx.png')“的形式
注:当为windows系统绝对路径时,须添加前缀“/”,例如:”url('/E:\test\test.png')“
|
String |
getBackgroundImageHeight()
背景图片高度
|
String |
getBackgroundImageWidth()
背景图片宽度
|
String |
getBackgroundPosition()
背景图片定位
第一个参数为X轴
第二个参数为Y轴
|
String |
getBackgroundPositionHorizontal()
背景图片水平定位
|
String |
getBackgroundPositionVertical()
背景图片垂直定位
|
String |
getBackgroundRepeat()
背景图片重复
repeat:水平垂直重复
repeat-x:水平重复
repeat-y:垂直重复
no-repeat:不重复
|
String |
getBreakAfter()
分页符-后
auto:自动
column:分列
page:分页
even-page:在元素之后强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之后强制分页一次或两个,以便下一页将成为奇数页
|
String |
getBreakBefore()
分页符-前
auto:自动
column:分列
page:分页
even-page:在元素之前强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之前强制分页一次或两个,以便下一页将成为奇数页
|
String |
getColor()
颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
String |
getEndIndent()
段后缩进
|
String |
getFontFamily()
字体名称
|
String |
getFontSize()
字体大小
|
String |
getFontSizeAdjust()
字体大小调整
|
String |
getFontStyle()
字体样式
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
|
String |
getFontWeight()
字体重量
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
|
Boolean |
getHasBorder()
是否包含边框
|
String |
getHorizontalStyle()
水平样式
left:居左
center:居中
right:居右
right:居右
justify:两端对齐
|
String |
getId()
id
|
String |
getKeepTogether()
分页时保持
auto:自动
always:总是
|
String |
getKeepWithNext()
分页时与下一个元素保持
auto:自动
always:总是
|
String |
getKeepWithPrevious()
分页时与上一个元素保持
auto:自动
always:总是
|
String |
getLanguage()
语言
|
String |
getLeading()
行间距
|
String |
getLetterSpacing()
字符间距
|
String |
getMargin()
上下左右边距
|
String |
getMarginBottom()
下边距
|
String |
getMarginLeft()
左边距
|
String |
getMarginRight()
右边距
|
String |
getMarginTop()
上边距
|
String |
getPadding()
上下左右填充
|
String |
getPaddingBottom()
下填充
|
String |
getPaddingLeft()
左填充
|
String |
getPaddingRight()
右填充
|
String |
getPaddingTop()
上填充
|
String |
getSpaceAfter()
段后空白
|
String |
getSpaceBefore()
段前空白
|
String |
getStartIndent()
段前缩进
|
String |
getTextIndent()
文本缩进
|
String |
getVerticalStyle()
垂直样式
before:居上
center:居中
after:居下
|
String |
getWhiteSpace()
空白空间
normal:正常
pre:保留空格
nowrap:合并空格
|
String |
getWhiteSpaceCollapse()
空白空间折叠
true:是
false:否
|
String |
getWordSpacing()
单词间距
|
int |
hashCode() |
void |
setBackground(String background)
背景
|
void |
setBackgroundAttachment(String backgroundAttachment)
背景附件
scroll:滚动
fixed:固定
|
void |
setBackgroundColor(String backgroundColor)
背景颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
void |
setBackgroundImage(String backgroundImage)
背景图片
注:路径须写为”url('xxx.png')“的形式
注:当为windows系统绝对路径时,须添加前缀“/”,例如:”url('/E:\test\test.png')“
|
void |
setBackgroundImageHeight(String backgroundImageHeight)
背景图片高度
|
void |
setBackgroundImageWidth(String backgroundImageWidth)
背景图片宽度
|
void |
setBackgroundPosition(String backgroundPosition)
背景图片定位
第一个参数为X轴
第二个参数为Y轴
|
void |
setBackgroundPositionHorizontal(String backgroundPositionHorizontal)
背景图片水平定位
|
void |
setBackgroundPositionVertical(String backgroundPositionVertical)
背景图片垂直定位
|
void |
setBackgroundRepeat(String backgroundRepeat)
背景图片重复
repeat:水平垂直重复
repeat-x:水平重复
repeat-y:垂直重复
no-repeat:不重复
|
void |
setBreakAfter(String breakAfter)
分页符-后
auto:自动
column:分列
page:分页
even-page:在元素之后强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之后强制分页一次或两个,以便下一页将成为奇数页
|
void |
setBreakBefore(String breakBefore)
分页符-前
auto:自动
column:分列
page:分页
even-page:在元素之前强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之前强制分页一次或两个,以便下一页将成为奇数页
|
void |
setColor(String color)
颜色
color:颜色(名称或16进制颜色)
transparent:透明
|
void |
setEndIndent(String endIndent)
段后缩进
|
void |
setFontFamily(String fontFamily)
字体名称
|
void |
setFontSize(String fontSize)
字体大小
|
void |
setFontSizeAdjust(String fontSizeAdjust)
字体大小调整
|
void |
setFontStyle(String fontStyle)
字体样式
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
|
void |
setFontWeight(String fontWeight)
字体重量
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
|
void |
setHasBorder(Boolean hasBorder)
是否包含边框
|
void |
setHorizontalStyle(String horizontalStyle)
水平样式
left:居左
center:居中
right:居右
right:居右
justify:两端对齐
|
void |
setId(String id)
id
|
void |
setKeepTogether(String keepTogether)
分页时保持
auto:自动
always:总是
|
void |
setKeepWithNext(String keepWithNext)
分页时与下一个元素保持
auto:自动
always:总是
|
void |
setKeepWithPrevious(String keepWithPrevious)
分页时与上一个元素保持
auto:自动
always:总是
|
void |
setLanguage(String language)
语言
|
void |
setLeading(String leading)
行间距
|
void |
setLetterSpacing(String letterSpacing)
字符间距
|
void |
setMargin(String margin)
上下左右边距
|
void |
setMarginBottom(String marginBottom)
下边距
|
void |
setMarginLeft(String marginLeft)
左边距
|
void |
setMarginRight(String marginRight)
右边距
|
void |
setMarginTop(String marginTop)
上边距
|
void |
setPadding(String padding)
上下左右填充
|
void |
setPaddingBottom(String paddingBottom)
下填充
|
void |
setPaddingLeft(String paddingLeft)
左填充
|
void |
setPaddingRight(String paddingRight)
右填充
|
void |
setPaddingTop(String paddingTop)
上填充
|
void |
setSpaceAfter(String spaceAfter)
段后空白
|
void |
setSpaceBefore(String spaceBefore)
段前空白
|
void |
setStartIndent(String startIndent)
段前缩进
|
void |
setTextIndent(String textIndent)
文本缩进
|
void |
setVerticalStyle(String verticalStyle)
垂直样式
before:居上
center:居中
after:居下
|
void |
setWhiteSpace(String whiteSpace)
空白空间
normal:正常
pre:保留空格
nowrap:合并空格
|
void |
setWhiteSpaceCollapse(String whiteSpaceCollapse)
空白空间折叠
true:是
false:否
|
void |
setWordSpacing(String wordSpacing)
单词间距
|
String |
toString() |
protected String id
protected String padding
protected String paddingTop
protected String paddingBottom
protected String paddingLeft
protected String paddingRight
protected String margin
protected String marginTop
protected String marginBottom
protected String marginLeft
protected String marginRight
protected Boolean hasBorder
protected String horizontalStyle
left:居左
center:居中
right:居右
right:居右
justify:两端对齐
protected String verticalStyle
before:居上
center:居中
after:居下
protected String language
protected String leading
protected String letterSpacing
protected String wordSpacing
protected String whiteSpace
normal:正常
pre:保留空格
nowrap:合并空格
protected String whiteSpaceCollapse
true:是
false:否
protected String textIndent
protected String startIndent
protected String endIndent
protected String spaceBefore
protected String spaceAfter
protected String color
color:颜色(名称或16进制颜色)
transparent:透明
protected String fontFamily
protected String fontStyle
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
protected String fontSize
protected String fontSizeAdjust
protected String fontWeight
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
protected String breakBefore
auto:自动
column:分列
page:分页
even-page:在元素之前强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之前强制分页一次或两个,以便下一页将成为奇数页
protected String breakAfter
auto:自动
column:分列
page:分页
even-page:在元素之后强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之后强制分页一次或两个,以便下一页将成为奇数页
protected String keepTogether
auto:自动
always:总是
protected String keepWithPrevious
auto:自动
always:总是
protected String keepWithNext
auto:自动
always:总是
protected String background
protected String backgroundImage
注:路径须写为”url('xxx.png')“的形式
注:当为windows系统绝对路径时,须添加前缀“/”,例如:”url('/E:\test\test.png')“
protected String backgroundImageWidth
protected String backgroundImageHeight
protected String backgroundAttachment
scroll:滚动
fixed:固定
protected String backgroundColor
color:颜色(名称或16进制颜色)
transparent:透明
protected String backgroundPosition
第一个参数为X轴
第二个参数为Y轴
protected String backgroundPositionHorizontal
protected String backgroundPositionVertical
protected String backgroundRepeat
repeat:水平垂直重复
repeat-x:水平重复
repeat-y:垂直重复
no-repeat:不重复
public String getId()
public String getPadding()
public String getPaddingTop()
public String getPaddingBottom()
public String getPaddingLeft()
public String getPaddingRight()
public String getMargin()
public String getMarginTop()
public String getMarginBottom()
public String getMarginLeft()
public String getMarginRight()
public Boolean getHasBorder()
public String getHorizontalStyle()
left:居左
center:居中
right:居右
right:居右
justify:两端对齐
public String getVerticalStyle()
before:居上
center:居中
after:居下
public String getLanguage()
public String getLeading()
public String getLetterSpacing()
public String getWordSpacing()
public String getWhiteSpace()
normal:正常
pre:保留空格
nowrap:合并空格
public String getWhiteSpaceCollapse()
true:是
false:否
public String getTextIndent()
public String getStartIndent()
public String getEndIndent()
public String getSpaceBefore()
public String getSpaceAfter()
public String getColor()
color:颜色(名称或16进制颜色)
transparent:透明
public String getFontFamily()
public String getFontStyle()
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
public String getFontSize()
public String getFontSizeAdjust()
public String getFontWeight()
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
public String getBreakBefore()
auto:自动
column:分列
page:分页
even-page:在元素之前强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之前强制分页一次或两个,以便下一页将成为奇数页
public String getBreakAfter()
auto:自动
column:分列
page:分页
even-page:在元素之后强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之后强制分页一次或两个,以便下一页将成为奇数页
public String getKeepTogether()
auto:自动
always:总是
public String getKeepWithPrevious()
auto:自动
always:总是
public String getKeepWithNext()
auto:自动
always:总是
public String getBackground()
public String getBackgroundImage()
注:路径须写为”url('xxx.png')“的形式
注:当为windows系统绝对路径时,须添加前缀“/”,例如:”url('/E:\test\test.png')“
public String getBackgroundImageWidth()
public String getBackgroundImageHeight()
public String getBackgroundAttachment()
scroll:滚动
fixed:固定
public String getBackgroundColor()
color:颜色(名称或16进制颜色)
transparent:透明
public String getBackgroundPosition()
第一个参数为X轴
第二个参数为Y轴
public String getBackgroundPositionHorizontal()
public String getBackgroundPositionVertical()
public String getBackgroundRepeat()
repeat:水平垂直重复
repeat-x:水平重复
repeat-y:垂直重复
no-repeat:不重复
public void setId(String id)
public void setPadding(String padding)
public void setPaddingTop(String paddingTop)
public void setPaddingBottom(String paddingBottom)
public void setPaddingLeft(String paddingLeft)
public void setPaddingRight(String paddingRight)
public void setMargin(String margin)
public void setMarginTop(String marginTop)
public void setMarginBottom(String marginBottom)
public void setMarginLeft(String marginLeft)
public void setMarginRight(String marginRight)
public void setHasBorder(Boolean hasBorder)
public void setHorizontalStyle(String horizontalStyle)
left:居左
center:居中
right:居右
right:居右
justify:两端对齐
public void setVerticalStyle(String verticalStyle)
before:居上
center:居中
after:居下
public void setLanguage(String language)
public void setLeading(String leading)
public void setLetterSpacing(String letterSpacing)
public void setWordSpacing(String wordSpacing)
public void setWhiteSpace(String whiteSpace)
normal:正常
pre:保留空格
nowrap:合并空格
public void setWhiteSpaceCollapse(String whiteSpaceCollapse)
true:是
false:否
public void setTextIndent(String textIndent)
public void setStartIndent(String startIndent)
public void setEndIndent(String endIndent)
public void setSpaceBefore(String spaceBefore)
public void setSpaceAfter(String spaceAfter)
public void setColor(String color)
color:颜色(名称或16进制颜色)
transparent:透明
public void setFontFamily(String fontFamily)
public void setFontStyle(String fontStyle)
normal:正常
oblique:斜体
italic:斜体
backslant:斜体
public void setFontSize(String fontSize)
public void setFontSizeAdjust(String fontSizeAdjust)
public void setFontWeight(String fontWeight)
normal:正常(400)
bold:粗体(700)
bolder:加粗(900)
lighter:细体(100)
public void setBreakBefore(String breakBefore)
auto:自动
column:分列
page:分页
even-page:在元素之前强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之前强制分页一次或两个,以便下一页将成为奇数页
public void setBreakAfter(String breakAfter)
auto:自动
column:分列
page:分页
even-page:在元素之后强制分页一次或两个,以便下一页将成为偶数页
odd-page:在元素之后强制分页一次或两个,以便下一页将成为奇数页
public void setKeepTogether(String keepTogether)
auto:自动
always:总是
public void setKeepWithPrevious(String keepWithPrevious)
auto:自动
always:总是
public void setKeepWithNext(String keepWithNext)
auto:自动
always:总是
public void setBackground(String background)
public void setBackgroundImage(String backgroundImage)
注:路径须写为”url('xxx.png')“的形式
注:当为windows系统绝对路径时,须添加前缀“/”,例如:”url('/E:\test\test.png')“
public void setBackgroundImageWidth(String backgroundImageWidth)
public void setBackgroundImageHeight(String backgroundImageHeight)
public void setBackgroundAttachment(String backgroundAttachment)
scroll:滚动
fixed:固定
public void setBackgroundColor(String backgroundColor)
color:颜色(名称或16进制颜色)
transparent:透明
public void setBackgroundPosition(String backgroundPosition)
第一个参数为X轴
第二个参数为Y轴
public void setBackgroundPositionHorizontal(String backgroundPositionHorizontal)
public void setBackgroundPositionVertical(String backgroundPositionVertical)
public void setBackgroundRepeat(String backgroundRepeat)
repeat:水平垂直重复
repeat-x:水平重复
repeat-y:垂直重复
no-repeat:不重复
protected boolean canEqual(Object other)
Copyright © 2025. All rights reserved.