public class BorderData extends AbstractBase
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.
Modifier and Type | Field and Description |
---|---|
protected BorderConfiguration |
borderConfiguration
配置
|
contentMode, context, isResetContentStream, log
Modifier | Constructor and Description |
---|---|
protected |
BorderData()
无参构造
|
|
BorderData(AbstractBase base,
BorderConfiguration borderConfiguration)
有参构造
|
init, init
protected BorderConfiguration borderConfiguration
protected BorderData()
public BorderData(AbstractBase base, BorderConfiguration borderConfiguration)
base
- 基础类borderConfiguration
- 配置public static BorderData create(AbstractBase base, BorderConfiguration borderConfiguration)
base
- 基础类borderConfiguration
- 配置public void setBorderLineStyle(LineStyle style)
style
- 样式public void setBorderLineCapStyle(LineCapStyle style)
style
- 样式public void setBorderLineLength(float length)
length
- 线长public void setBorderLineWidth(float width)
width
- 线宽public void setBorderDottedSpacing(float spacing)
spacing
- 间隔public void setBorderTopColor(Color color)
color
- 颜色public void setBorderBottomColor(Color color)
color
- 颜色public void setBorderLeftColor(Color color)
color
- 颜色public void setBorderRightColor(Color color)
color
- 颜色public void setIsBorder(boolean flag)
flag
- 是否边框public void setIsBorderTop(boolean flag)
flag
- 是否边框public void setIsBorderBottom(boolean flag)
flag
- 是否边框public void setIsBorderLeft(boolean flag)
flag
- 是否边框public void setIsBorderRight(boolean flag)
flag
- 是否边框public LineStyle getBorderLineStyle()
public LineCapStyle getBorderLineCapStyle()
public Float getBorderLineLength()
public Float getBorderLineWidth()
public Float getBorderDottedSpacing()
public Color getBorderTopColor()
public Color getBorderBottomColor()
public Color getBorderLeftColor()
public Color getBorderRightColor()
public Boolean getIsBorderTop()
public Boolean getIsBorderBottom()
public Boolean getIsBorderLeft()
public Boolean getIsBorderRight()
protected void init(AbstractBase base, BorderConfiguration borderConfiguration)
base
- 基础类borderConfiguration
- 配置Copyright © 2024. All rights reserved.