public class XEasyPdfTable extends Object implements XEasyPdfComponent
Copyright (c) 2020-2023 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.
XEasyPdfComponent.ContentMode| 构造器和说明 |
|---|
XEasyPdfTable(List<XEasyPdfRow> rowList)
有参构造
|
XEasyPdfTable(XEasyPdfRow... rows)
有参构造
|
public XEasyPdfTable(XEasyPdfRow... rows)
rows - pdf表格行public XEasyPdfTable(List<XEasyPdfRow> rowList)
rowList - pdf表格行列表public XEasyPdfTable setFontPath(String fontPath)
fontPath - 字体路径public XEasyPdfTable setDefaultFontStyle(XEasyPdfDefaultFontStyle style)
style - 默认字体样式public XEasyPdfTable setFontSize(float fontSize)
fontSize - 字体大小public XEasyPdfTable setFontColor(Color fontColor)
fontColor - 字体颜色public XEasyPdfTable setBorderWidth(float borderWidth)
borderWidth - 边框宽度public XEasyPdfTable setBorderColor(Color borderColor)
borderColor - 边框颜色public XEasyPdfTable setBorderLineLength(float borderLineLength)
borderLineLength - 边框点线长度public XEasyPdfTable setBorderLineSpace(float borderLineSpace)
borderLineSpace - 边框点线间隔public XEasyPdfTable setBackgroundColor(Color backgroundColor)
backgroundColor - 背景颜色public XEasyPdfTable setMarginLeft(float margin)
margin - 边距public XEasyPdfTable setMarginTop(float margin)
margin - 边距public XEasyPdfTable setMarginBottom(float margin)
margin - 边距public XEasyPdfTable setHorizontalStyle(XEasyPdfPositionStyle style)
style - 样式public XEasyPdfTable setVerticalStyle(XEasyPdfPositionStyle style)
style - 样式public XEasyPdfTable enableCenterStyle()
public XEasyPdfTable disableAutoSplitRow()
public XEasyPdfTable disableBorder()
public XEasyPdfTable enableResetContext()
enableResetContext 在接口中 XEasyPdfComponentpublic XEasyPdfTable enableAutoScaleFontSize()
public XEasyPdfTable setPosition(float beginX, float beginY)
setPosition 在接口中 XEasyPdfComponentbeginX - X轴起始坐标beginY - Y轴起始坐标@Deprecated public XEasyPdfTable setWidth(float width)
setWidth 在接口中 XEasyPdfComponentwidth - 宽度@Deprecated public XEasyPdfTable setHeight(float height)
setHeight 在接口中 XEasyPdfComponentheight - 高度public XEasyPdfTable setContentMode(XEasyPdfComponent.ContentMode mode)
setContentMode 在接口中 XEasyPdfComponentmode - 内容模式public XEasyPdfTable setMinRowHeight(float height)
height - 高度public XEasyPdfTable setTitle(XEasyPdfTable title)
title - pdf表格public final XEasyPdfTable addRow(XEasyPdfRow... rows)
rows - pdf表格行public final XEasyPdfTable addRow(List<XEasyPdfRow> rowList)
rowList - pdf表格行列表public XEasyPdfTable insertRow(int rowIndex, XEasyPdfRow row)
row - pdf表格行public void draw(XEasyPdfDocument document, XEasyPdfPage page)
draw 在接口中 XEasyPdfComponentdocument - pdf文档page - pdf页面Copyright © 2023. All rights reserved.