Aspose-Cells(Java)连接两个形状

时间:2014-07-29 14:42:25

标签: java excel aspose-cells

可以使用连接器形状连接两个形状吗?我知道如何创建形状:

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
}

但是如何将形状与连接器连接?

以下是我希望如何看待的示例:

enter image description here

0 个答案:

没有答案