public class ShapeConfig extends Object implements Serializable
Constructor and Description |
---|
ShapeConfig() |
Modifier and Type | Method and Description |
---|---|
Color |
getFillColor()
获取填充颜色,
null表示不填充 |
Color |
getLineColor()
获取线条颜色
|
LineStyle |
getLineStyle()
获取线条样式
|
int |
getLineWidth()
获取线条宽度
|
org.apache.poi.sl.usermodel.ShapeType |
getShapeType()
获取形状类型
|
static ShapeConfig |
of()
创建一个形状配置
|
ShapeConfig |
setFillColor(Color fillColor)
设置填充颜色,
null表示不填充 |
ShapeConfig |
setLineColor(Color lineColor)
设置线条颜色
|
ShapeConfig |
setLineStyle(LineStyle lineStyle)
设置线条样式
|
ShapeConfig |
setLineWidth(int lineWidth)
设置线条宽度
|
ShapeConfig |
setShapeType(org.apache.poi.sl.usermodel.ShapeType shapeType)
设置形状类型
|
public static ShapeConfig of()
public org.apache.poi.sl.usermodel.ShapeType getShapeType()
public ShapeConfig setShapeType(org.apache.poi.sl.usermodel.ShapeType shapeType)
shapeType
- 形状类型public LineStyle getLineStyle()
public ShapeConfig setLineStyle(LineStyle lineStyle)
lineStyle
- 线条样式public int getLineWidth()
public ShapeConfig setLineWidth(int lineWidth)
lineWidth
- 线条宽度,以磅为单位public Color getLineColor()
public ShapeConfig setLineColor(Color lineColor)
lineColor
- 线条颜色public Color getFillColor()
null表示不填充
null表示不填充
public ShapeConfig setFillColor(Color fillColor)
null表示不填充
fillColor
- 填充颜色,null表示不填充
Copyright © 2025. All rights reserved.