|
JGraph X 0.15.0.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mxgraph.swing.view.mxCellEditor
public class mxCellEditor
Field Summary | |
---|---|
static int |
DEFAULT_MIN_HEIGHT
|
static int |
DEFAULT_MIN_WIDTH
|
static double |
DEFAULT_MINIMUM_EDITOR_SCALE
|
protected Object |
editingCell
|
protected JEditorPane |
editorPane
Holds the editor for HTML editing. |
protected mxGraphComponent |
graphComponent
|
protected KeyAdapter |
keyListener
|
protected double |
minimumEditorScale
Defines the minimum scale to be used for the editor. |
protected int |
minimumHeight
|
protected int |
minimumWidth
|
protected boolean |
returnEnabled
Specifies if the enter keystroke should stop editing and accept the new value. |
protected JScrollPane |
scrollPane
|
protected JTextArea |
textArea
Holds the editor for plain text editing. |
protected EventObject |
trigger
|
Constructor Summary | |
---|---|
mxCellEditor(mxGraphComponent graphComponent)
|
Method Summary | |
---|---|
String |
getCurrentValue()
|
Object |
getEditingCell()
Returns the cell that is currently being edited. |
Component |
getEditor()
Returns the current editor or null if no editing is in progress. |
Rectangle |
getEditorBounds(mxCellState state)
|
String |
getInitialValue(mxCellState state)
|
double |
getMinimumEditorScale()
|
int |
getMinimumHeight()
|
int |
getMinimumWidth()
|
boolean |
isReturnEnabled()
|
void |
setMinimumEditorScale(double minimumEditorScale)
|
void |
setMinimumHeight(int minimumHeight)
|
void |
setMinimumWidth(int minimumWidth)
|
void |
setReturnEnabled(boolean returnEnabled)
|
void |
startEditing(Object cell,
EventObject trigger)
Starts editing the given cell. |
void |
stopEditing(boolean cancel)
Stops the current editing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int DEFAULT_MIN_WIDTH
public static int DEFAULT_MIN_HEIGHT
public static double DEFAULT_MINIMUM_EDITOR_SCALE
protected mxGraphComponent graphComponent
protected boolean returnEnabled
protected double minimumEditorScale
protected int minimumWidth
protected int minimumHeight
protected transient Object editingCell
protected transient EventObject trigger
protected transient JScrollPane scrollPane
protected transient JTextArea textArea
protected transient JEditorPane editorPane
protected transient KeyAdapter keyListener
Constructor Detail |
---|
public mxCellEditor(mxGraphComponent graphComponent)
Method Detail |
---|
public void setReturnEnabled(boolean returnEnabled)
public boolean isReturnEnabled()
public Component getEditor()
public Rectangle getEditorBounds(mxCellState state)
public String getInitialValue(mxCellState state)
public String getCurrentValue()
public void startEditing(Object cell, EventObject trigger)
mxICellEditor
startEditing
in interface mxICellEditor
public void stopEditing(boolean cancel)
mxICellEditor
stopEditing
in interface mxICellEditor
public Object getEditingCell()
mxICellEditor
getEditingCell
in interface mxICellEditor
public double getMinimumEditorScale()
public void setMinimumEditorScale(double minimumEditorScale)
minimumEditorScale
- the minimumEditorScale to setpublic int getMinimumWidth()
public void setMinimumWidth(int minimumWidth)
minimumWidth
- the minimumWidth to setpublic int getMinimumHeight()
public void setMinimumHeight(int minimumHeight)
minimumHeight
- the minimumHeight to set
|
JGraph X 0.15.0.3 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |