org.jgraph.graph

Class DefaultRealEditor

Implemented Interfaces:
CellEditor, GraphCellEditor

public class DefaultRealEditor
extends DefaultCellEditor
implements GraphCellEditor

The default editor for graph cells.

Constructor Summary

DefaultRealEditor(JCheckBox checkBox)
Constructs a DefaultCellEditor object that uses a check box.
DefaultRealEditor(JComboBox comboBox)
Constructs a DefaultCellEditor object that uses a combo box.
DefaultRealEditor(JTextField textField)
Constructs a DefaultCellEditor that uses a text field.

Method Summary

Component
getGraphCellEditorComponent(JGraph graph, Object value, boolean isSelected)

Constructor Details

DefaultRealEditor

public DefaultRealEditor(JCheckBox checkBox)
Constructs a DefaultCellEditor object that uses a check box.
Parameters:
checkBox - a JCheckBox object

DefaultRealEditor

public DefaultRealEditor(JComboBox comboBox)
Constructs a DefaultCellEditor object that uses a combo box.
Parameters:
comboBox - a JComboBox object

DefaultRealEditor

public DefaultRealEditor(JTextField textField)
Constructs a DefaultCellEditor that uses a text field.
Parameters:
textField - a JTextField object used as the editor

Method Details

getGraphCellEditorComponent

public Component getGraphCellEditorComponent(JGraph graph,
                                             Object value,
                                             boolean isSelected)
Specified by:
getGraphCellEditorComponent in interface GraphCellEditor

Copyright (C) 2001-2006 Gaudenz Alder. All rights reserved.