可以使用连接器形状连接两个形状吗?我知道如何创建形状:
private static void createShapes(Worksheet worksheet) {
Shape rectangle1 = worksheet.getShapes().addAutoShape(AutoShapeType.RECTANGLE, 3, 2, 3, 0, 12, 52);
Shape rectangle2 = worksheet.getShapes().addAutoShape(AutoShapeType.RECTANGLE, 4, 2, 5, 0, 12, 52);
Shape connector = worksheet.getShapes().addAutoShape(AutoShapeType.BENT_CONNECTOR_4, 6, 2, 5, 0, 12, 26);
// connect rectangle1 and rectangle2 with connector
}
但是如何将形状与连接器连接?
以下是我希望如何看待的示例: