public class Container 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 List<Component> |
components
组件列表
|
protected HorizontalAlignment |
contentHorizontalAlignment
内容水平对齐方式
|
protected Float |
contentMarginBottom
内容下边距
|
protected Float |
contentMarginLeft
内容左边距
|
protected Float |
contentMarginRight
内容右边距
|
protected Float |
contentMarginTop
内容上边距
|
protected VerticalAlignment |
contentVerticalAlignment
内容垂直对齐方式
|
protected Float |
height
高度
|
protected Boolean |
isPagingBorder
是否分页边框
|
protected Boolean |
isTogether
是否整体换行
|
protected PagingEvent |
pagingEvent
分页事件
|
protected Float |
width
宽度
|
beginX, beginY, borderConfiguration, horizontalAlignment, isBreak, isCustomX, isCustomY, isWrap, marginConfiguration, pagingCondition, pagingEvents, relativeBeginX, relativeBeginY, verticalAlignmentcontentMode, context, isResetContentStream, logaddPagingEvent, checkPaging, checkPaging, checkPaging, checkWrap, close, getBase, getBeginX, getBeginY, getBeginY, getBorderBottomColor, getBorderBottomLineWidth, getBorderConfiguration, getBorderDottedSpacing, getBorderLeftColor, getBorderLeftLineWidth, getBorderLineCapStyle, getBorderLineLength, getBorderLineStyle, getBorderLineWidth, getBorderRightColor, getBorderRightLineWidth, getBorderTopColor, getBorderTopLineWidth, getBottom, getHorizontalAlignment, getIsBorderBottom, getIsBorderLeft, getIsBorderRight, getIsBorderTop, getIsBreak, getIsCustomX, getIsCustomY, getIsWrap, getMarginBottom, getMarginConfiguration, getMarginLeft, getMarginRight, getMarginTop, getPage, getPagingCondition, getPagingEvents, getRelativeBeginX, getRelativeBeginY, getVerticalAlignment, initBeginX, initBeginXY, initBeginY, initBeginYForPaging, isPaging, isPagingComponent, isWrap, processBreak, render, reset, resetXY, setBeginX, setBeginX, setBeginY, setBeginY, setBorderBottomColor, setBorderBottomLineWidth, setBorderColor, setBorderConfiguration, setBorderDottedSpacing, setBorderLeftColor, setBorderLeftLineWidth, setBorderLineCapStyle, setBorderLineLength, setBorderLineStyle, setBorderLineWidth, setBorderRadius, setBorderRightColor, setBorderRightLineWidth, setBorderTopColor, setBorderTopLineWidth, setHorizontalAlignment, setIsBorder, setIsBorderBottom, setIsBorderLeft, setIsBorderRight, setIsBorderTop, setIsBreak, setIsCustomX, setIsCustomY, setIsWrap, setMargin, setMarginBottom, setMarginConfiguration, setMarginLeft, setMarginRight, setMarginTop, setPagingCondition, setPagingEvents, setRelativeBeginX, setRelativeBeginY, setVerticalAlignment, virtualRender, wrapgetContentMode, getContext, getIsResetContentStream, getLog, init, init, setContentMode, setContext, setIsResetContentStreamgetContextprotected Color backgroundColor
protected Float width
protected Float height
protected PagingEvent pagingEvent
protected Boolean isTogether
protected Boolean isPagingBorder
protected Float contentMarginTop
protected Float contentMarginBottom
protected Float contentMarginLeft
protected Float contentMarginRight
protected HorizontalAlignment contentHorizontalAlignment
protected VerticalAlignment contentVerticalAlignment
public Container(Page page)
page - 页面public void setContentMargin(float margin)
margin - 边距public void setWidth(float width)
width - 宽度public void setHeight(float height)
height - 高度public void setComponents(Component... components)
components - 组件public void addComponents(Component... components)
components - 组件public ComponentType getType()
protected void init()
init 在类中 AbstractComponentprotected float getMinWidth()
getMinWidth 在类中 AbstractComponentprotected boolean isNeedWrap()
isNeedWrap 在类中 AbstractComponentprotected void writeContents()
writeContents 在类中 AbstractComponentprotected void reset()
reset 在类中 AbstractComponentprotected Page executeBreak()
executeBreak 在类中 AbstractComponentprotected float addBorder(Float beginX, Float beginY, BorderInfo info)
beginX - 组件渲染前X轴坐标beginY - 组件渲染前Y轴坐标info - 容器信息public Color getBackgroundColor()
public Float getWidth()
public Float getHeight()
public PagingEvent getPagingEvent()
public Boolean getIsTogether()
public Boolean getIsPagingBorder()
public Float getContentMarginTop()
public Float getContentMarginBottom()
public Float getContentMarginLeft()
public Float getContentMarginRight()
public HorizontalAlignment getContentHorizontalAlignment()
public VerticalAlignment getContentVerticalAlignment()
public void setBackgroundColor(Color backgroundColor)
public void setPagingEvent(PagingEvent pagingEvent)
public void setIsTogether(Boolean isTogether)
public void setIsPagingBorder(Boolean isPagingBorder)
public void setContentMarginTop(Float contentMarginTop)
public void setContentMarginBottom(Float contentMarginBottom)
public void setContentMarginLeft(Float contentMarginLeft)
public void setContentMarginRight(Float contentMarginRight)
public void setContentHorizontalAlignment(HorizontalAlignment contentHorizontalAlignment)
public void setContentVerticalAlignment(VerticalAlignment contentVerticalAlignment)
public String toString()
toString 在类中 AbstractComponentpublic boolean equals(Object o)
equals 在类中 AbstractComponentprotected boolean canEqual(Object other)
canEqual 在类中 AbstractComponentpublic int hashCode()
hashCode 在类中 AbstractComponentCopyright © 2025. All rights reserved.