private void panel_svgAreaMouseReleased( java.awt.event.MouseEvent evt) // GEN-FIRST:event_panel_svgAreaMouseReleased { // GEN-HEADEREND:event_panel_svgAreaMouseReleased SVGDiagram diagram = svgDisplayPanel.getDiagram(); List pickedElements; try { pickedElements = diagram.pick(new Point(evt.getX(), evt.getY()), null); } catch (SVGException ex) { ex.printStackTrace(); return; } System.out.println("Pick results:"); for (Iterator it = pickedElements.iterator(); it.hasNext(); ) { ArrayList path = (ArrayList) it.next(); System.out.print(" Path: "); for (Iterator it2 = path.iterator(); it2.hasNext(); ) { SVGElement ele = (SVGElement) it2.next(); System.out.print("" + ele.getId() + "(" + ele.getClass().getName() + ") "); } System.out.println(); } } // GEN-LAST:event_panel_svgAreaMouseReleased