connPart.addBendpoint(index++, pt.getX().content(), pt.getY().content());
}
if (connLayout.getLabelX().content(false) != null && connLayout.getLabelY().content(false) != null)
{
Point labelPos = new Point(connLayout.getLabelX().content(), connLayout.getLabelY().content());
connPart.setLabelPosition(labelPos);
}
}
}
}
ElementList<DiagramConnectionLayout> connList = this.layoutModel.getDiagramConnectionsLayout();
for (DiagramConnectionLayout connLayout : connList)
{
String connId = connLayout.getConnectionId().content();
DiagramConnectionPart connPart = getConnectionPart(connService, ConnectionHashKey.createKey(null, connId));
ElementList<DiagramBendPointLayout> bps = connLayout.getConnectionBendpoints();
if (connPart != null)
{
int index = 0;
for (DiagramBendPointLayout pt : bps)
{
connPart.addBendpoint(index++, pt.getX().content(), pt.getY().content());
}
List<Point> bendPoints = new ArrayList<Point>();
bendPoints.addAll(connPart.getBendpoints());
if (connLayout.getLabelX().content(false) != null &&
connLayout.getLabelY().content(false) != null)
{
Point labelPos = new Point(connLayout.getLabelX().content(),
connLayout.getLabelY().content());
connPart.setLabelPosition(labelPos);
}
}
}