Class ShapeConfig

java.lang.Object
org.miaixz.bus.office.excel.style.ShapeConfig
All Implemented Interfaces:
Serializable

public class ShapeConfig extends Object implements Serializable
形状配置 用于在Excel中定义形状的样式,包括形状类型、线条样式、线条宽度、线条颜色、填充颜色等
Since:
Java 17+
Author:
Kimi Liu
See Also:
  • Constructor Details

    • ShapeConfig

      public ShapeConfig()
  • Method Details

    • of

      public static ShapeConfig of()
      创建一个形状配置
      Returns:
      this
    • getShapeType

      public org.apache.poi.sl.usermodel.ShapeType getShapeType()
      获取形状类型
      Returns:
      形状类型
    • setShapeType

      public ShapeConfig setShapeType(org.apache.poi.sl.usermodel.ShapeType shapeType)
      设置形状类型
      Parameters:
      shapeType - 形状类型
      Returns:
      当前形状配置对象,用于链式调用
    • getLineStyle

      public LineStyle getLineStyle()
      获取线条样式
      Returns:
      线条样式
    • setLineStyle

      public ShapeConfig setLineStyle(LineStyle lineStyle)
      设置线条样式
      Parameters:
      lineStyle - 线条样式
      Returns:
      当前形状配置对象,用于链式调用
    • getLineWidth

      public int getLineWidth()
      获取线条宽度
      Returns:
      线条宽度,以磅为单位
    • setLineWidth

      public ShapeConfig setLineWidth(int lineWidth)
      设置线条宽度
      Parameters:
      lineWidth - 线条宽度,以磅为单位
      Returns:
      当前形状配置对象,用于链式调用
    • getLineColor

      public Color getLineColor()
      获取线条颜色
      Returns:
      线条颜色
    • setLineColor

      public ShapeConfig setLineColor(Color lineColor)
      设置线条颜色
      Parameters:
      lineColor - 线条颜色
      Returns:
      当前形状配置对象,用于链式调用
    • getFillColor

      public Color getFillColor()
      获取填充颜色,null表示不填充
      Returns:
      填充颜色,null表示不填充
    • setFillColor

      public ShapeConfig setFillColor(Color fillColor)
      设置填充颜色,null表示不填充
      Parameters:
      fillColor - 填充颜色,null表示不填充
      Returns:
      当前形状配置对象,用于链式调用