Interface GraphCellEditor

  • All Superinterfaces:
    javax.swing.CellEditor
    All Known Implementing Classes:
    DefaultGraphCellEditor, DefaultRealEditor

    public interface GraphCellEditor
    extends javax.swing.CellEditor
    Adds to CellEditor the extensions necessary to configure an editor in a graph.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.Component getGraphCellEditorComponent​(JGraph graph, java.lang.Object value, boolean isSelected)
      Sets an initial value for the editor.
      • Methods inherited from interface javax.swing.CellEditor

        addCellEditorListener, cancelCellEditing, getCellEditorValue, isCellEditable, removeCellEditorListener, shouldSelectCell, stopCellEditing
    • Method Detail

      • getGraphCellEditorComponent

        java.awt.Component getGraphCellEditorComponent​(JGraph graph,
                                                       java.lang.Object value,
                                                       boolean isSelected)
        Sets an initial value for the editor. This will cause the editor to stopEditing and lose any partially edited value if the editor is editing when this method is called.

        Returns the component that should be added to the client's Component hierarchy. Once installed in the client's hierarchy this component will then be able to draw and receive user input.

        Parameters:
        graph - the JGraph that is asking the editor to edit This parameter can be null.
        value - the value of the cell to be edited.
        isSelected - true if the cell is to be rendered with selection highlighting
        Returns:
        the component for editing