com.jgraph.components.labels

Class RichTextEditor

public class RichTextEditor extends DefaultGraphCellEditor

In-place editor for rich text multiline values.
Constructor Summary
RichTextEditor()
Constructs a new rich text editor.
Method Summary
protected ContainercreateContainer()
Overriting this so that I could modify an editor container.
protected GraphCellEditorcreateGraphCellEditor()
Returns a new RealCellEditor.
ComponentgetGraphCellEditorComponent(JGraph graph, Object cell, boolean isSelected)
Overriding this in order to set the size of an editor to that of an edited view.

Constructor Detail

RichTextEditor

public RichTextEditor()
Constructs a new rich text editor.

Method Detail

createContainer

protected Container createContainer()
Overriting this so that I could modify an editor container. See also here.

createGraphCellEditor

protected GraphCellEditor createGraphCellEditor()
Returns a new RealCellEditor.

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.
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.