public class XEasyPdfBaseLine extends Object implements XEasyPdfLine
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| 构造器和说明 |
|---|
XEasyPdfBaseLine(float beginX,
float beginY,
float endX,
float endY)
有参构造
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
draw(XEasyPdfDocument document,
XEasyPdfPage page)
绘制
|
XEasyPdfBaseLine |
enableResetContext()
开启上下文重置
|
float |
getLineWidth()
获取线条宽度
|
XEasyPdfBaseLine |
setColor(Color color)
设置线条颜色
|
XEasyPdfBaseLine |
setContentMode(XEasyPdfComponent.ContentMode mode)
设置内容模式
|
XEasyPdfBaseLine |
setDefaultFontStyle(XEasyPdfDefaultFontStyle style)
设置默认字体样式
|
XEasyPdfBaseLine |
setFontPath(String fontPath)
设置字体路径
|
XEasyPdfBaseLine |
setHeight(float height)
设置高度
|
XEasyPdfBaseLine |
setLineCapStyle(XEasyPdfLineCapStyle lineCapStyle)
设置线条线型
|
XEasyPdfBaseLine |
setLineWidth(float lineWidth)
设置线条宽度
|
XEasyPdfBaseLine |
setMarginLeft(float margin)
设置左边距
|
XEasyPdfBaseLine |
setMarginRight(float margin)
设置右边距
|
XEasyPdfBaseLine |
setPosition(float beginX,
float beginY)
设置坐标
|
XEasyPdfBaseLine |
setPosition(float beginX,
float beginY,
float endX,
float endY)
设置定位
|
XEasyPdfBaseLine |
setWidth(float width)
设置宽度(线长)
|
public XEasyPdfBaseLine(float beginX,
float beginY,
float endX,
float endY)
beginX - 页面X轴起始坐标beginY - 页面Y轴起始坐标endX - 页面X轴结束坐标endY - 页面Y轴结束坐标public XEasyPdfBaseLine setFontPath(String fontPath)
setFontPath 在接口中 XEasyPdfLinefontPath - 字体路径public XEasyPdfBaseLine setDefaultFontStyle(XEasyPdfDefaultFontStyle style)
setDefaultFontStyle 在接口中 XEasyPdfLinestyle - 默认字体样式public XEasyPdfBaseLine setMarginLeft(float margin)
setMarginLeft 在接口中 XEasyPdfLinemargin - 边距public XEasyPdfBaseLine setMarginRight(float margin)
setMarginRight 在接口中 XEasyPdfLinemargin - 边距public XEasyPdfBaseLine setLineWidth(float lineWidth)
setLineWidth 在接口中 XEasyPdfLinelineWidth - 线条宽度public XEasyPdfBaseLine setColor(Color color)
setColor 在接口中 XEasyPdfLinecolor - 线条颜色public XEasyPdfBaseLine setLineCapStyle(XEasyPdfLineCapStyle lineCapStyle)
setLineCapStyle 在接口中 XEasyPdfLinelineCapStyle - 线条线型public XEasyPdfBaseLine setPosition(float beginX, float beginY, float endX, float endY)
beginX - 页面X轴起始坐标beginY - 页面Y轴起始坐标endX - 页面X轴结束坐标endY - 页面Y轴结束坐标public XEasyPdfBaseLine setPosition(float beginX, float beginY)
setPosition 在接口中 XEasyPdfComponentbeginX - X轴起始坐标beginY - Y轴起始坐标public XEasyPdfBaseLine setWidth(float width)
setWidth 在接口中 XEasyPdfComponentwidth - 宽度(线长)public XEasyPdfBaseLine setHeight(float height)
setHeight 在接口中 XEasyPdfComponentheight - 高度public XEasyPdfBaseLine setContentMode(XEasyPdfComponent.ContentMode mode)
setContentMode 在接口中 XEasyPdfComponentmode - 内容模式public float getLineWidth()
getLineWidth 在接口中 XEasyPdfLinepublic XEasyPdfBaseLine enableResetContext()
enableResetContext 在接口中 XEasyPdfComponentpublic void draw(XEasyPdfDocument document, XEasyPdfPage page)
draw 在接口中 XEasyPdfComponentdocument - pdf文档page - pdf页面Copyright © 2023. All rights reserved.