public class Circle 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 Color |
backgroundColor
背景颜色
|
protected Color |
borderColor
边框颜色
|
protected Float |
radius
半径
|
beginX, beginY, borderConfiguration, horizontalAlignment, isBreak, isCustomPosition, isWrap, marginConfiguration, pagingCondition, pagingEvents, relativeBeginX, relativeBeginY, verticalAlignmentcontentMode, context, isResetContentStream, log| 限定符和类型 | 方法和说明 |
|---|---|
protected float |
getMinWidth()
获取最小宽度
|
ComponentType |
getType()
获取类型
|
protected void |
init()
初始化
|
protected List<Position> |
initCtrlPosition(List<Position> positions)
初始化控制坐标点
|
protected List<Position> |
initPosition(float radius)
初始化数据坐标点
|
protected void |
renderCircle(org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
float radius,
Color color)
绘制圆形
|
protected void |
reset()
重置
|
void |
setRadius(float radius)
设置半径
|
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, setVerticalAlignmentprotected Float radius
protected Color borderColor
protected Color backgroundColor
public Circle(Page page)
page - 页面public void setRadius(float radius)
radius - 半径public ComponentType getType()
protected void init()
init 在类中 AbstractComponentprotected float getMinWidth()
getMinWidth 在类中 AbstractComponentprotected List<Position> initPosition(float radius)
radius - 半径protected List<Position> initCtrlPosition(List<Position> positions)
protected void writeContents()
writeContents 在类中 AbstractComponentprotected void renderCircle(org.apache.pdfbox.pdmodel.PDPageContentStream contentStream,
float radius,
Color color)
contentStream - 内容流radius - 半径color - 颜色protected void reset()
reset 在类中 AbstractComponentCopyright © 2024. All rights reserved.