public JConnection addRightLeftConnection( ConnectionType type, EntityFigure label, Integer occurences) { JConnection connection = new JConnection(type); connection.setRightLeftAnchors(this, label); connection.setLabel(occurences); outgoingConnections.add(connection); return connection; }
public JConnection addRightRightConnection( ConnectionType type, EntityFigure label, Integer occurences, int bendHeight) { JConnection connection = new JConnection(type); connection.setRightRightAnchors(this, label); // connection.setSourceBendRouter(-bendHeight, -classWidth); connection.setFullBendRouter(-bendHeight); connection.setLabel(occurences); outgoingConnections.add(connection); return connection; }