Class RichTextEditor
java.lang.Object
org.jgraph.graph.DefaultGraphCellEditor
com.jgraph.components.labels.RichTextEditor
- All Implemented Interfaces:
ActionListener, Serializable, EventListener, CellEditor, GraphSelectionListener, GraphCellEditor
In-place editor for rich text multiline values.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class DefaultGraphCellEditor
DefaultGraphCellEditor.DefaultTextField, DefaultGraphCellEditor.EditorContainer -
Field Summary
Fields inherited from class DefaultGraphCellEditor
borderSelectionColor, canEdit, editingComponent, editingContainer, editingIcon, font, graph, lastCell, offsetX, offsetY, realEditor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ContainerOverriting this so that I could modify an editor container.protected GraphCellEditorReturns a new RealCellEditor.getGraphCellEditorComponent(JGraph graph, Object cell, boolean isSelected) Overriding this in order to set the size of an editor to that of an edited view.Methods inherited from class DefaultGraphCellEditor
actionPerformed, addCellEditorListener, cancelCellEditing, canEditImmediately, determineOffset, getBorderSelectionColor, getCellEditorValue, getFont, inHitRegion, isCellEditable, prepareForEditing, removeCellEditorListener, setBorderSelectionColor, setFont, setGraph, shouldSelectCell, shouldStartEditingTimer, stopCellEditing, valueChanged
-
Constructor Details
-
RichTextEditor
public RichTextEditor()Constructs a new rich text editor.
-
-
Method Details
-
getGraphCellEditorComponent
Overriding this in order to set the size of an editor to that of an edited view.- Specified by:
getGraphCellEditorComponentin interfaceGraphCellEditor- Overrides:
getGraphCellEditorComponentin classDefaultGraphCellEditor- Parameters:
graph- 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 highlighting- Returns:
- the component for editing
-
createGraphCellEditor
Returns a new RealCellEditor.- Overrides:
createGraphCellEditorin classDefaultGraphCellEditor
-
createContainer
Overriting this so that I could modify an editor container. See also here.- Overrides:
createContainerin classDefaultGraphCellEditor
-