|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.graph.DefaultGraphCellEditor
com.jgraph.components.labels.RichTextEditor
public class RichTextEditor
In-place editor for rich text multiline values.
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 |
---|
public RichTextEditor()
Method Detail |
---|
public java.awt.Component getGraphCellEditorComponent(JGraph graph, java.lang.Object cell, boolean isSelected)
getGraphCellEditorComponent
in interface GraphCellEditor
getGraphCellEditorComponent
in class DefaultGraphCellEditor
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
protected GraphCellEditor createGraphCellEditor()
createGraphCellEditor
in class DefaultGraphCellEditor
protected java.awt.Container createContainer()
createContainer
in class DefaultGraphCellEditor
|
JGraph
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |