public abstract class HeavyWeightCellEditor
extends java.lang.Object
implements com.mxgraph.swing.view.mxICellEditor
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
CANCEL_EDITING |
protected javax.swing.AbstractAction |
cancelEditingAction |
protected java.lang.Object |
currentEditor |
protected java.lang.Object |
edgeEditor |
protected java.lang.Object |
editingCell |
protected static java.lang.String |
INSERT_BREAK |
protected javax.swing.event.MouseInputListener |
movementHandler |
protected GraphPresenter |
presenter |
protected static java.lang.String |
SUBMIT_TEXT |
protected javax.swing.AbstractAction |
textSubmitAction |
protected java.util.EventObject |
trigger |
protected java.lang.Object |
vertexEditor |
Constructor and Description |
---|
HeavyWeightCellEditor(GraphPresenter presenter) |
Modifier and Type | Method and Description |
---|---|
protected void |
buildEditors() |
protected void |
checkBounds(java.awt.Rectangle bounds) |
protected void |
configEditorComponent(javax.swing.JComponent editorComponent) |
protected abstract java.lang.Object |
createEdgeEditor() |
protected abstract java.lang.Object |
createVertexEditor() |
java.awt.Rectangle |
getCellBounds(com.mxgraph.view.mxCellState state,
double scale)
Returns the bounds to be used for the editor.
|
java.lang.Object |
getEdgeEditor() |
java.lang.Object |
getEditingCell() |
java.awt.Rectangle |
getEditorBounds(java.awt.Rectangle cellBounds) |
protected abstract javax.swing.JComponent |
getEditorComponent(java.lang.Object editor) |
GraphPresenter |
getPresenter() |
java.lang.Object |
getVertexEditor() |
protected abstract void |
initEdgeEditor(java.lang.Object value) |
protected abstract void |
initVertexEditor(java.lang.Object value) |
protected void |
installActions(javax.swing.JComponent editor) |
protected abstract void |
readEdgeEditor(java.lang.Object cell) |
protected abstract void |
readVertexEditor(java.lang.Object cell) |
void |
startEditing(java.lang.Object cell,
java.util.EventObject evt) |
void |
stopEditing(boolean cancel) |
protected boolean |
useLabelBounds(com.mxgraph.view.mxCellState state)
Returns true if the label bounds of the state should be used for the
editor.
|
protected static final java.lang.String CANCEL_EDITING
protected static final java.lang.String INSERT_BREAK
protected static final java.lang.String SUBMIT_TEXT
protected final GraphPresenter presenter
protected transient java.lang.Object editingCell
protected transient java.util.EventObject trigger
protected transient java.lang.Object vertexEditor
protected transient java.lang.Object edgeEditor
protected transient java.lang.Object currentEditor
protected javax.swing.AbstractAction cancelEditingAction
protected javax.swing.AbstractAction textSubmitAction
protected javax.swing.event.MouseInputListener movementHandler
public HeavyWeightCellEditor(GraphPresenter presenter)
protected void buildEditors()
protected abstract javax.swing.JComponent getEditorComponent(java.lang.Object editor)
protected void configEditorComponent(javax.swing.JComponent editorComponent)
protected void installActions(javax.swing.JComponent editor)
protected abstract java.lang.Object createVertexEditor()
protected abstract java.lang.Object createEdgeEditor()
protected void checkBounds(java.awt.Rectangle bounds)
public GraphPresenter getPresenter()
public java.lang.Object getVertexEditor()
public java.lang.Object getEdgeEditor()
public java.lang.Object getEditingCell()
getEditingCell
in interface com.mxgraph.swing.view.mxICellEditor
mxICellEditor.getEditingCell()
public void startEditing(java.lang.Object cell, java.util.EventObject evt)
startEditing
in interface com.mxgraph.swing.view.mxICellEditor
mxICellEditor.startEditing(java.lang.Object,
java.util.EventObject)
protected abstract void initVertexEditor(java.lang.Object value)
protected abstract void initEdgeEditor(java.lang.Object value)
public void stopEditing(boolean cancel)
stopEditing
in interface com.mxgraph.swing.view.mxICellEditor
mxICellEditor.stopEditing(boolean)
protected abstract void readVertexEditor(java.lang.Object cell)
protected abstract void readEdgeEditor(java.lang.Object cell)
protected boolean useLabelBounds(com.mxgraph.view.mxCellState state)
public java.awt.Rectangle getCellBounds(com.mxgraph.view.mxCellState state, double scale)
public java.awt.Rectangle getEditorBounds(java.awt.Rectangle cellBounds)