org.jgraph.graph.GraphCellEditor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ingeniasjgraphmod Show documentation
Show all versions of ingeniasjgraphmod Show documentation
A modified version of some JGraph files
The newest version!
/*
* @(#)GraphCellEditor.java 1.0 03-JUL-04
*
* Copyright (c) 2001-2004 Gaudenz Alder
*
*/
package org.jgraph.graph;
import java.awt.Component;
import javax.swing.CellEditor;
import org.jgraph.JGraph;
/**
* Adds to CellEditor the extensions necessary to configure an editor
* in a graph.
*
* @version 1.0 1/1/02
* @author Gaudenz Alder
*/
public interface GraphCellEditor extends CellEditor {
/**
* 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.
*
* @param graph the JGraph that is asking the editor to edit
* This parameter can be null.
* @param value the value of the cell to be edited.
* @param isSelected true if the cell is to be rendered with
* selection highlighting
* @return the component for editing
*/
Component getGraphCellEditorComponent(
JGraph graph,
Object value,
boolean isSelected);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy