Interaction interaction = interactionModelEditor.addInteraction("type", "name", sID, eID);
getConnection().setAttribute("id", interaction.getID());
getConnection().setAttribute("type", "interaction");
TextFigure title = new TextFigure();
title.setText(interaction.getType() + ":" + interaction.getName());
title.setAttribute("id", interaction.getID());
title.setAttribute("type", "interactionTitle");
title.setAttribute("isALink", Boolean.TRUE);
drawingView.add(title);
title.connect(getConnection());
//����id��figure��ӳ���
if (idToFigureMap != null) {
idToFigureMap.add(interaction.getID(), getConnection());
idToFigureMap.add(interaction.getID(), title);