public class Line extends AbstractComponent
Copyright (c) 2020 xsx All Rights Reserved. x-easypdf-pdfbox 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 Float |
alpha
透明度
|
protected Float |
angle
旋转角度
|
beginX, beginY, borderConfiguration, horizontalAlignment, isBreak, isCustomPosition, isWrap, marginConfiguration, pagingCondition, pagingEvents, relativeBeginX, relativeBeginY, verticalAlignmentcontentMode, context, isResetContentStream, log| 限定符和类型 | 方法和说明 |
|---|---|
Float |
getDottedSpacing()
获取点线间距
|
LineCapStyle |
getLineCapStyle()
获取线帽样式
|
Color |
getLineColor()
获取线条颜色
|
Float |
getLineLength()
获取线条长度
|
LineStyle |
getLineStyle()
获取线条样式
|
Float |
getLineWidth()
获取线条宽度
|
protected float |
getMinWidth()
获取最小宽度
|
ComponentType |
getType()
获取类型
|
protected void |
init()
初始化
|
protected org.apache.pdfbox.pdmodel.PDPageContentStream |
initContentStream()
初始化内容流
|
protected void |
reset()
重置
|
void |
setDottedSpacing(Float spacing)
设置点线间距
|
void |
setLineCapStyle(LineCapStyle style)
设置线帽样式
|
void |
setLineColor(Color color)
设置线条颜色
|
void |
setLineLength(Float length)
设置线条长度
|
void |
setLineStyle(LineStyle style)
设置线条样式
|
void |
setLineWidth(Float width)
设置线条宽度
|
protected void |
writeContents()
写入内容
|
checkPaging, checkPaging, checkPaging, checkWrap, close, executeBreak, getBase, getBorderBottomColor, getBorderDottedSpacing, getBorderLeftColor, getBorderLineCapStyle, getBorderLineLength, getBorderLineStyle, getBorderLineWidth, getBorderRightColor, getBorderTopColor, getBottom, getIsBorderBottom, getIsBorderLeft, getIsBorderRight, getIsBorderTop, getMarginBottom, getMarginLeft, getMarginRight, getMarginTop, getPage, initBeginX, initBeginXY, initBeginY, initBeginYForPaging, isNeedWrap, isPaging, isPagingComponent, isWrap, processBreak, render, reset, resetXY, setBeginX, setBeginX, setBeginY, setBeginY, setBorderBottomColor, setBorderColor, setBorderDottedSpacing, setBorderLeftColor, setBorderLineCapStyle, setBorderLineLength, setBorderLineStyle, setBorderLineWidth, setBorderRightColor, setBorderRightColor, setBorderTopColor, setIsBorder, setIsBorderBottom, setIsBorderLeft, setIsBorderRight, setIsBorderTop, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, virtualRender, wrapinit, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContext, getPagingCondition, getPagingEvents, setHorizontalAlignment, setVerticalAlignmentpublic Line(Page page)
page - 页面public void setLineColor(Color color)
color - 颜色public void setLineStyle(LineStyle style)
style - 样式public void setLineCapStyle(LineCapStyle style)
style - 样式public void setLineLength(Float length)
length - 长度public void setLineWidth(Float width)
width - 宽度public void setDottedSpacing(Float spacing)
spacing - 间距public ComponentType getType()
public Color getLineColor()
public LineStyle getLineStyle()
public LineCapStyle getLineCapStyle()
public Float getLineLength()
public Float getLineWidth()
public Float getDottedSpacing()
protected void init()
init 在类中 AbstractComponentprotected float getMinWidth()
getMinWidth 在类中 AbstractComponentprotected void writeContents()
writeContents 在类中 AbstractComponentprotected void reset()
reset 在类中 AbstractComponentprotected org.apache.pdfbox.pdmodel.PDPageContentStream initContentStream()
Copyright © 2024. All rights reserved.