public class RichTextEditor extends DefaultGraphCellEditor
DefaultGraphCellEditor.DefaultTextField, DefaultGraphCellEditor.EditorContainerborderSelectionColor, canEdit, editingComponent, editingContainer, editingIcon, font, graph, lastCell, offsetX, offsetY, realEditor| Constructor and Description |
|---|
RichTextEditor()
Constructs a new rich text editor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.Container |
createContainer()
Overriting this so that I could modify an editor container.
|
protected GraphCellEditor |
createGraphCellEditor()
Returns a new RealCellEditor.
|
java.awt.Component |
getGraphCellEditorComponent(JGraph graph,
java.lang.Object cell,
boolean isSelected)
Overriding this in order to set the size of an editor to that of an
edited view.
|
actionPerformed, addCellEditorListener, cancelCellEditing, canEditImmediately, determineOffset, getBorderSelectionColor, getCellEditorValue, getFont, inHitRegion, isCellEditable, prepareForEditing, removeCellEditorListener, setBorderSelectionColor, setFont, setGraph, shouldSelectCell, shouldStartEditingTimer, stopCellEditing, valueChangedpublic java.awt.Component getGraphCellEditorComponent(JGraph graph, java.lang.Object cell, boolean isSelected)
getGraphCellEditorComponent in interface GraphCellEditorgetGraphCellEditorComponent in class DefaultGraphCellEditorgraph - the JGraph that is asking the editor to edit
This parameter can be null.cell - the value of the cell to be edited.isSelected - true if the cell is to be rendered with
selection highlightingprotected GraphCellEditor createGraphCellEditor()
createGraphCellEditor in class DefaultGraphCellEditorprotected java.awt.Container createContainer()
createContainer in class DefaultGraphCellEditorCopyright (C) 2001-2009 JGraph Ltd. All rights reserved.