JGraph
v5.13.0.4


com.jgraph.components.labels
Class RichTextEditor

java.lang.Object
  extended by org.jgraph.graph.DefaultGraphCellEditor
      extended by com.jgraph.components.labels.RichTextEditor
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.util.EventListener, javax.swing.CellEditor, GraphSelectionListener, GraphCellEditor

public class RichTextEditor
extends DefaultGraphCellEditor

In-place editor for rich text multiline values.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jgraph.graph.DefaultGraphCellEditor
DefaultGraphCellEditor.DefaultTextField, DefaultGraphCellEditor.EditorContainer
 
Field Summary
 
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.
 
Method Summary
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.
 
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
 

Constructor Detail

RichTextEditor

public RichTextEditor()
Constructs a new rich text editor.

Method Detail

getGraphCellEditorComponent

public 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.

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 java.awt.Container createContainer()
Overriting this so that I could modify an editor container. See also here.

Overrides:
createContainer in class DefaultGraphCellEditor

JGraph
v5.13.0.4


Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.