y.view
Interface NodeCellEditor
- All Superinterfaces:
- CellEditor
public interface NodeCellEditor
- extends CellEditor
This interface is designed to behave like Swing's TableCellEditor
and TreeCellEditor.
It serves as a callback for CellEditorMode, e.g., which will query this interface for
a suitable JComponent that can be used to edit the node's value.
-
-
getNodeCellEditorComponent
JComponent getNodeCellEditorComponent(Graph2DView view,
NodeRealizer context,
Object value,
boolean isSelected)
- Callback method that prepares and returns a JComponent that can be used to
visually edit the node's data inside the Graph2DView.
- Parameters:
view - the view that contains the nodecontext - the node's realizervalue - the value that should be edited by this editorisSelected - whether the component should be rendered as selected
- Returns:
- a JComponent to use for editing the node's value