}
@Override
public void mouseReleased(MouseEvent e) {
Graph graph = controller.getSelectedGraph();
PointerInfo pointerInfo = MouseInfo.getPointerInfo();
Point location = graph.getLocationOnScreen();
int pointerX = (int)pointerInfo.getLocation().getX();
int pointerY = (int)pointerInfo.getLocation().getY();
int graphX = (int)graph.getParent().getLocationOnScreen().getX();
int x = (int)pointerX - (int)location.getX();
int y = (int)pointerY - (int)location.getY();
if (pressed && x > 0 && pointerX > graphX) {
if (graph.isEditable()) {