use of net.sf.sdedit.drawable.LoopArrow in project abstools by abstools.
the class MessageToSelf method updateView.
@Override
public void updateView() {
getDiagram().getPaintDevice().announce(getConfiguration().getSpaceBeforeActivation() + Arrow.getInnerHeight(this) + diagram.arrowSize / 2);
extendLifelines(getConfiguration().getSpaceBeforeSelfMessage());
Direction align = getCallee().getDirection();
if (align == Direction.CENTER) {
// This is true for instantly returning self-messages directed onto
// the root lifeline
align = Direction.RIGHT;
}
Arrow arrow = new LoopArrow(this, ArrowStroke.SOLID, align, v());
setArrow(arrow);
extendLifelines(arrow.getInnerHeight());
getCallee().setActive(true);
getDiagram().getPaintDevice().addSequenceElement(arrow);
}
use of net.sf.sdedit.drawable.LoopArrow in project abstools by abstools.
the class AnswerToSelf method updateView.
public void updateView() {
getDiagram().getPaintDevice().announce(getConfiguration().getSpaceBeforeAnswerToSelf() + Arrow.getInnerHeight(this) + diagram.arrowSize / 2);
getDiagram().getFragmentManager().finishFragmentsNotIncluding(this);
extendLifelines(getConfiguration().getSpaceBeforeAnswerToSelf());
Direction align = getCaller().getDirection();
Arrow arrow = new LoopArrow(this, ArrowStroke.DASHED, align, v());
arrow.setVisible(getText().length() > 0 || diagram.returnArrowVisible);
setArrow(arrow);
getDiagram().getPaintDevice().addSequenceElement(arrow);
terminate();
extendLifelines(arrow.getInnerHeight());
}