public abstract class AbstractTableHeaderOrFooter extends BorderData
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf 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.
Modifier and Type | Field and Description |
---|---|
protected Color |
backgroundColor
背景颜色
|
protected HorizontalAlignment |
contentHorizontalAlignment
内容水平对齐方式
|
protected Float |
contentMarginBottom
内容下边距
|
protected Float |
contentMarginLeft
内容左边距
|
protected Float |
contentMarginRight
内容右边距
|
protected Float |
contentMarginTop
内容上边距
|
protected VerticalAlignment |
contentVerticalAlignment
内容垂直对齐方式
|
protected Boolean |
isBreak
是否分页
|
protected Boolean |
isPagingBorder
是否分页边框
|
protected Boolean |
isTogether
是否整体换行
|
protected List<TableRow> |
rows
行列表
|
protected Table |
table
表格
|
borderConfiguration
contentMode, context, isResetContentStream, log
Modifier | Constructor and Description |
---|---|
protected |
AbstractTableHeaderOrFooter()
无参构造
|
|
AbstractTableHeaderOrFooter(Table table)
有参构造
|
Modifier and Type | Method and Description |
---|---|
void |
addRows(List<TableRow> rows)
添加行
|
void |
addRows(TableRow... rows)
添加行
|
Float |
getHeight()
获取高度
|
protected void |
init()
初始化
|
protected void |
initBorder()
初始化边框
|
protected void |
initRows()
初始化行
|
protected float |
render(Page page,
float beginX,
float beginY)
渲染
|
void |
setContentMargin(float margin)
设置内容边距(上下左右)
|
void |
setRows(List<TableRow> rows)
设置行
|
void |
setRows(TableRow... rows)
设置行
|
create, getBorderBottomColor, getBorderDottedSpacing, getBorderLeftColor, getBorderLineCapStyle, getBorderLineLength, getBorderLineStyle, getBorderLineWidth, getBorderRightColor, getBorderTopColor, getIsBorderBottom, getIsBorderLeft, getIsBorderRight, getIsBorderTop, init, setBorderBottomColor, setBorderDottedSpacing, setBorderLeftColor, setBorderLineCapStyle, setBorderLineLength, setBorderLineStyle, setBorderLineWidth, setBorderRightColor, setBorderTopColor, setIsBorder, setIsBorderBottom, setIsBorderLeft, setIsBorderRight, setIsBorderTop
init, init
protected Color backgroundColor
protected Table table
protected Boolean isBreak
protected Boolean isTogether
protected Boolean isPagingBorder
protected Float contentMarginTop
protected Float contentMarginBottom
protected Float contentMarginLeft
protected Float contentMarginRight
protected HorizontalAlignment contentHorizontalAlignment
protected VerticalAlignment contentVerticalAlignment
public AbstractTableHeaderOrFooter(Table table)
table
- 表格protected AbstractTableHeaderOrFooter()
public void setContentMargin(float margin)
margin
- 边距public void setRows(TableRow... rows)
rows
- 行public void addRows(TableRow... rows)
rows
- 行public Float getHeight()
protected float render(Page page, float beginX, float beginY)
page
- 页面beginX
- X轴坐标beginY
- Y轴坐标protected void init()
protected void initBorder()
protected void initRows()
Copyright © 2024. All rights reserved.