/** * Description of the Method * *@param e Description of Parameter */ public void mouseMoved(MouseEvent e) { // Check Mode and Find Port if (e != null && getGraph()!=null && getSourcePortAt(e.getPoint()) != null && !e.isConsumed() && getGraph().isPortsVisible()) { // Set Cusor on Graph (Automatically Reset) getGraph().setCursor(new Cursor(Cursor.HAND_CURSOR)); // Consume Event e.consume(); } // Call Superclass super.mouseReleased(e); }
marquee.mouseReleased(null); if (mouseListener != null) mouseListener.mouseReleased(null);
public void mouseReleased(MouseEvent e) { try { if (e != null && !e.isConsumed() && graph != null && graph.isEnabled()) { if (handler == marquee && marquee != null) marquee.mouseReleased(e); else if (handler == handle && handle != null) handle.mouseReleased(e); if (isDescendant(cell, focus) && e.getModifiers() != 0) { // Do not switch to parent if Special Selection cell = focus; } if (!e.isConsumed() && cell != null) { Object tmp = cell.getCell(); boolean wasSelected = graph.isCellSelected(tmp); if (!e.isPopupTrigger() || !wasSelected) { selectCellForEvent(tmp, e); focus = cell; postProcessSelection(e, tmp, wasSelected); } } } } finally { handler = null; cell = null; } }
start = current = null; super.mouseReleased(e); if (getGraph()!=null){