JGraph
v5.13.0.0


com.jgraph.components.labels
Class RichTextEditor

java.lang.Object
  extended byorg.jgraph.graph.DefaultGraphCellEditor
      extended bycom.jgraph.components.labels.RichTextEditor
All Implemented Interfaces:
ActionListener, CellEditor, EventListener, GraphCellEditor, GraphSelectionListener, Serializable

public class RichTextEditor
extends DefaultGraphCellEditor

In-place editor for rich text multiline values.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes 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  Container createContainer()
          Overriting this so that I could modify an editor container.
protected  GraphCellEditor createGraphCellEditor()
          Returns a new RealCellEditor.
 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.
 
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 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

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

JGraph
v5.13.0.0


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