Inheritance diagram for org.jgraph.graph.DefaultGraphCellEditor:
Public Member Functions | |
DefaultGraphCellEditor () | |
DefaultGraphCellEditor (GraphCellEditor editor) | |
void | setBorderSelectionColor (Color newColor) |
Color | getBorderSelectionColor () |
void | setFont (Font font) |
Font | getFont () |
Component | getGraphCellEditorComponent (JGraph graph, Object cell, boolean isSelected) |
Object | getCellEditorValue () |
boolean | isCellEditable (EventObject event) |
boolean | shouldSelectCell (EventObject event) |
boolean | stopCellEditing () |
void | cancelCellEditing () |
void | addCellEditorListener (CellEditorListener l) |
void | removeCellEditorListener (CellEditorListener l) |
void | valueChanged (GraphSelectionEvent e) |
void | actionPerformed (ActionEvent e) |
Protected Member Functions | |
void | setGraph (JGraph newGraph) |
boolean | shouldStartEditingTimer (EventObject event) |
boolean | canEditImmediately (EventObject event) |
boolean | inHitRegion (double x, double y) |
void | determineOffset (JGraph graph, Object value, boolean isSelected) |
void | prepareForEditing () |
Container | createContainer () |
GraphCellEditor | createGraphCellEditor () |
Protected Attributes | |
GraphCellEditor | realEditor |
Container | editingContainer |
transient Component | editingComponent |
boolean | canEdit |
transient int | offsetX |
transient int | offsetY |
transient JGraph | graph |
transient Object | lastCell |
Color | borderSelectionColor |
transient Icon | editingIcon |
Font | font |
Private Member Functions | |
void | writeObject (ObjectOutputStream s) throws IOException |
void | readObject (ObjectInputStream s) throws IOException, ClassNotFoundException |
Classes | |
class | DefaultTextField |
class | EditorContainer |
|
Constructs a DefaultTreeCellEditor object for a JGraph using the specified renderer and a default editor. (Use this constructor for normal editing.) |
|
Constructs a DefaultTreeCellEditor object for a JTree using the specified renderer and the specified editor. (Use this constructor for specialized editing.)
|
|
Messaged when the timer fires, this will start the editing session. |
|
Adds the CellEditorListener. |
|
Messages cancelCellEditing to the realEditor and removes it from this instance. |
|
Returns true if |
|
Creates the container to manage placement of editingComponent. |
|
This is invoked if a TreeCellEditor is not supplied in the constructor. It returns a TextField editor. |
|
|
|
Returns the color the border is drawn. |
|
Returns the value currently being edited. |
|
Gets the font used for editing.
|
|
Configures the editor. Passed onto the realEditor. Implements org.jgraph.graph.GraphCellEditor. |
|
Should return true if the passed in location is a valid mouse location to start editing from. This is implemented to return false if |
|
If the realEditor returns true to this message, prepareForEditing is messaged and true is returned. |
|
Invoked just before editing is to start. Will add the |
|
|
|
Removes the previously added CellEditorListener l. |
|
Sets the color to use for the border. |
|
Sets the font to edit with.
|
|
Sets the tree currently editing for. This is needed to add a selection listener. |
|
Messages the realEditor for the return value. |
|
Returns true if |
|
If the realEditor will allow editing to stop, the realEditor is removed and true is returned, otherwise false is returned. |
|
Resets lastPath. Implements org.jgraph.event.GraphSelectionListener. |
|
|
|
True if the border selection color should be drawn. |
|
Internal Note, maybe isCellEditable return true. This is set in configure based on the path being edited and the selected selected path. |
|
Component used in editing, obtained from the editingContainer. |
|
Editing container, will contain the editorComponent. |
|
Icon to use when editing. |
|
Font to paint with, null indicates font of renderer is to be used. |
|
JTree instance listening too. |
|
last path that was selected. |
|
Used in editing. Indicates position to place editingComponent. |
|
|
|
Editor handling the editing. |