com.jgraph.components.labels
Class RichTextEditor
java.lang.Object
org.jgraph.graph.DefaultGraphCellEditor
com.jgraph.components.labels.RichTextEditor
- All Implemented Interfaces:
- ActionListener, Serializable, EventListener, CellEditor, GraphSelectionListener, GraphCellEditor
public class RichTextEditor
- extends DefaultGraphCellEditor
In-place editor for rich text multiline values.
- See Also:
- Serialized Form
Fields inherited from class org.jgraph.graph.DefaultGraphCellEditor |
borderSelectionColor, canEdit, editingComponent, editingContainer, editingIcon, font, graph, lastCell, offsetX, offsetY, realEditor |
Constructor Summary |
RichTextEditor()
Constructs a new rich text editor. |
Methods inherited from class org.jgraph.graph.DefaultGraphCellEditor |
actionPerformed, addCellEditorListener, cancelCellEditing, canEditImmediately, determineOffset, getBorderSelectionColor, getCellEditorValue, getFont, inHitRegion, isCellEditable, prepareForEditing, removeCellEditorListener, setBorderSelectionColor, setFont, setGraph, shouldSelectCell, shouldStartEditingTimer, stopCellEditing, valueChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RichTextEditor
public RichTextEditor()
- Constructs a new rich text editor.
getGraphCellEditorComponent
public Component getGraphCellEditorComponent(JGraph graph,
Object cell,
boolean isSelected)
- Overriding this in order to set the size of an editor to that of an
edited view.
- Specified by:
getGraphCellEditorComponent
in interface GraphCellEditor
- Overrides:
getGraphCellEditorComponent
in class DefaultGraphCellEditor
- 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
protected GraphCellEditor createGraphCellEditor()
- Returns a new RealCellEditor.
- Overrides:
createGraphCellEditor
in class DefaultGraphCellEditor
createContainer
protected Container createContainer()
- Overriting this so that I could modify an editor container. See also
here.
- Overrides:
createContainer
in class DefaultGraphCellEditor
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.