public class XEasyPdfCell extends Object implements Serializable
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.
| 构造器和说明 |
|---|
XEasyPdfCell(float width)
有参构造
|
XEasyPdfCell(float width,
float height)
有参构造
|
public XEasyPdfCell(float width)
width - 宽度public XEasyPdfCell(float width,
float height)
width - 宽度height - 高度public XEasyPdfCell setContentMode(XEasyPdfComponent.ContentMode mode)
mode - 内容模式public XEasyPdfCell setWidth(float width)
width - 宽度public XEasyPdfCell setHeight(float height)
height - 高度public XEasyPdfCell setBackgroundColor(Color backgroundColor)
backgroundColor - 背景颜色public XEasyPdfCell setBorderWidth(float borderWidth)
borderWidth - 边框宽度public XEasyPdfCell setBorderLineLength(float borderLineLength)
borderLineLength - 边框点线长度public XEasyPdfCell setBorderLineSpace(float borderLineSpace)
borderLineSpace - 边框点线间隔public XEasyPdfCell setBorderColor(Color borderColor)
borderColor - 边框颜色public XEasyPdfCell setLeftBorderColor(Color borderColor)
borderColor - 边框颜色public XEasyPdfCell setRightBorderColor(Color borderColor)
borderColor - 边框颜色public XEasyPdfCell setTopBorderColor(Color borderColor)
borderColor - 边框颜色public XEasyPdfCell setBottomBorderColor(Color borderColor)
borderColor - 边框颜色public XEasyPdfCell setMarginLeft(float margin)
margin - 边距public XEasyPdfCell setMarginTop(float margin)
margin - 边距public XEasyPdfCell enableBorder()
public XEasyPdfCell disableBorder()
public XEasyPdfCell setFontPath(String fontPath)
fontPath - 字体路径public XEasyPdfCell setDefaultFontStyle(XEasyPdfDefaultFontStyle style)
style - 默认字体样式public XEasyPdfCell setFontSize(float fontSize)
fontSize - 字体大小public XEasyPdfCell setFontColor(Color fontColor)
fontColor - 字体颜色public XEasyPdfCell setHorizontalStyle(XEasyPdfPositionStyle style)
style - 样式public XEasyPdfCell setVerticalStyle(XEasyPdfPositionStyle style)
style - 样式public XEasyPdfCell enableCenterStyle()
public XEasyPdfCell enableVerticalMerge()
public XEasyPdfCell enableNewLine()
public XEasyPdfCell disableNewLine()
public XEasyPdfCell enableComponentSelfStyle()
public XEasyPdfCell disableTopBorder()
public XEasyPdfCell disableBottomBorder()
public XEasyPdfCell disableLeftBorder()
public XEasyPdfCell disableRightBorder()
public XEasyPdfCell disableTopBottomBorder()
public XEasyPdfCell disableLeftRightBorder()
public XEasyPdfCell enableResetContext()
public XEasyPdfCell enableAutoScaleFontSize()
public XEasyPdfCell addContent(XEasyPdfComponent component)
component - 组件Copyright © 2023. All rights reserved.