示例#1
0
  protected final NoteBox createNoteBox(
      StringBounder stringBounder,
      Arrow arrow,
      Component noteComp,
      NotePosition notePosition,
      Url url) {
    final LivingParticipantBox p = arrow.getParticipantAt(stringBounder, notePosition);
    final NoteBox noteBox = new NoteBox(arrow.getStartingY(), noteComp, p, null, notePosition, url);

    if (arrow instanceof MessageSelfArrow && notePosition == NotePosition.RIGHT) {
      noteBox.pushToRight(arrow.getPreferredWidth(stringBounder));
    }

    return noteBox;
  }