public class ExcelDrawingUtil extends Object
| Constructor and Description |
|---|
ExcelDrawingUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
drawingCellComment(org.apache.poi.ss.usermodel.Cell cell,
SimpleClientAnchor clientAnchor,
String content)
添加批注
|
static void |
drawingPic(org.apache.poi.ss.usermodel.Sheet sheet,
byte[] pictureData,
ExcelPicType imgType,
SimpleClientAnchor clientAnchor)
写出图片,本方法只是将数据写入Workbook中的Sheet,并不写出到文件
添加图片到当前sheet中 |
static void |
drawingSimpleShape(org.apache.poi.ss.usermodel.Sheet sheet,
SimpleClientAnchor clientAnchor,
ShapeConfig shapeConfig)
绘制简单形状
|
public static void drawingPic(org.apache.poi.ss.usermodel.Sheet sheet,
byte[] pictureData,
ExcelPicType imgType,
SimpleClientAnchor clientAnchor)
sheet - SheetpictureData - 数据bytesimgType - 图片类型,对应poi中Workbook类中的图片类型2-7变量clientAnchor - 图片的位置和大小信息public static void drawingSimpleShape(org.apache.poi.ss.usermodel.Sheet sheet,
SimpleClientAnchor clientAnchor,
ShapeConfig shapeConfig)
sheet - SheetclientAnchor - 绘制区域信息shapeConfig - 形状配置,包括形状类型、线条样式、线条宽度、线条颜色、填充颜色等public static void drawingCellComment(org.apache.poi.ss.usermodel.Cell cell,
SimpleClientAnchor clientAnchor,
String content)
cell - CellclientAnchor - 绘制区域信息content - 内容Copyright © 2025. All rights reserved.