2103210421052106210721082109211021112112
* @return true if the user is currently editing a cell * @see #getSelectionCell * */ public boolean isEditing() { GraphUI graph = getUI(); if (graph != null) return graph.isEditing(this); return false; }
2122212321242125212621272128212921302131
* * @return true if editing was in progress and is now stopped, false if * editing was not in progress */ public boolean stopEditing() { GraphUI graph = getUI(); if (graph != null) return graph.stopEditing(this); return false; }
213321342135213621372138213921402141
/** * Cancels the current editing session. Has no effect if the graph isn't * being edited. */ public void cancelEditing() { GraphUI graph = getUI(); if (graph != null) graph.cancelEditing(this); }
214421452146214721482149215021512152
* Selects the specified cell and initiates editing. The edit-attempt fails * if the <code>CellEditor</code> does not allow editing for the specified * item. */ public void startEditingAtCell(Object cell) { GraphUI graph = getUI(); if (graph != null) graph.startEditingAtCell(this, cell); }
2155215621572158215921602161216221632164
* Returns the cell that is currently being edited. * * @return the cell being edited */ public Object getEditingCell() { GraphUI graph = getUI(); if (graph != null) return graph.getEditingCell(this); return null; }
217218219220221222223224225226
r[i] = new Rectangle2D.Double(); invalidate(); } public boolean isConstrainedSizeEvent(MouseEvent e) { GraphUI ui = graph.getUI(); if (ui instanceof BasicGraphUI) return ((BasicGraphUI) ui).isConstrainedMoveEvent(e); return false; }
628629630631632633634635636637
} return false; } public boolean isConstrainedMoveEvent(MouseEvent e) { GraphUI ui = graph.getUI(); if (ui instanceof BasicGraphUI) return ((BasicGraphUI) ui).isConstrainedMoveEvent(e); return false; }
1143114411451146114711481149115011511152
237238239240241242243244245246
2923292429252926292729282929293029312932