public class BorderConfiguration extends Object
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 Color |
borderBottomColor
下边框颜色
|
protected Float |
borderDottedSpacing
边框点线间隔
|
protected Color |
borderLeftColor
左边框颜色
|
protected LineCapStyle |
borderLineCapStyle
线帽样式
|
protected Float |
borderLineLength
边框线长
|
protected LineStyle |
borderLineStyle
边框样式
|
protected Float |
borderLineWidth
边框线宽
|
protected Color |
borderRightColor
右边框颜色
|
protected Color |
borderTopColor
上边框颜色
|
protected Boolean |
isBorderBottom
是否下边框
|
protected Boolean |
isBorderLeft
是否左边框
|
protected Boolean |
isBorderRight
是否右边框
|
protected Boolean |
isBorderTop
是否上边框
|
Constructor and Description |
---|
BorderConfiguration()
无参构造
|
BorderConfiguration(boolean isInit)
有参构造
|
BorderConfiguration(BorderConfiguration configuration)
有参构造
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasBorder()
是否有边框
|
void |
init()
初始化
|
void |
init(BorderConfiguration base)
初始化边框
|
void |
setBorderColor(Color color)
设置边框颜色
|
void |
setBorderDottedSpacing(float spacing)
设置边框点线间隔
|
void |
setBorderLineLength(float length)
设置边框线长
|
void |
setBorderLineWidth(float width)
设置边框线宽
|
void |
setIsBorder(boolean flag)
设置边框
|
protected LineStyle borderLineStyle
protected LineCapStyle borderLineCapStyle
protected Float borderLineLength
protected Float borderLineWidth
protected Float borderDottedSpacing
protected Color borderTopColor
protected Color borderBottomColor
protected Color borderLeftColor
protected Color borderRightColor
protected Boolean isBorderTop
protected Boolean isBorderBottom
protected Boolean isBorderLeft
protected Boolean isBorderRight
public BorderConfiguration()
public BorderConfiguration(boolean isInit)
isInit
- 是否初始化public BorderConfiguration(BorderConfiguration configuration)
configuration
- 配置public void setIsBorder(boolean flag)
flag
- 标记public void setBorderColor(Color color)
color
- 颜色public void setBorderLineWidth(float width)
width
- 线宽public void setBorderLineLength(float length)
length
- 线长public void setBorderDottedSpacing(float spacing)
spacing
- 点线间隔public boolean hasBorder()
public void init()
public void init(BorderConfiguration base)
base
- 基础参数Copyright © 2024. All rights reserved.