コード例 #1
0
  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;
  }
コード例 #2
0
  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;
  }