popup.add(item1);
popup.add(item2);
}
public UShapeLine onDrawConnectLineReleased(UShape shapeParent, int x, int y) {
UShapeLine line = super.onDrawConnectLineReleased(shapeParent, x, y);
if (line != null) {
Edge e = new Edge(line.getSource().getNode(), line.getTarget()
.getNode());
if (e != null) {
if (insertEdge(e) == true) {
line.setEdge(e);
line.setLearningLineSelection(this.isToUseSelectionForLines());
} else {
delShape(line);
repaint();
}
}