com.mxgraph.swing.view
Class mxCellEditor
- java.lang.Object
-
- com.mxgraph.swing.view.mxCellEditor
-
- All Implemented Interfaces:
- mxICellEditor
public class mxCellEditor extends java.lang.Object implements mxICellEditor
To control this editor, use mxGraph.invokesStopCellEditing, mxGraph. enterStopsCellEditing and mxGraph.escapeEnabled.
-
-
Field Summary
Fields Modifier and Type Field and Description static intDEFAULT_MIN_HEIGHTstatic intDEFAULT_MIN_WIDTHstatic doubleDEFAULT_MINIMUM_EDITOR_SCALE
-
Constructor Summary
Constructors Constructor and Description mxCellEditor(mxGraphComponent graphComponent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.StringgetCurrentValue()Returns the current editing value.java.lang.ObjectgetEditingCell()Returns the cell that is currently being edited.java.awt.ComponentgetEditor()Returns the current editor or null if no editing is in progress.java.awt.RectanglegetEditorBounds(mxCellState state, double scale)Returns the bounds to be used for the editor.doublegetMinimumEditorScale()intgetMinimumHeight()intgetMinimumWidth()booleanisExtractHtmlBody()Returns replaceHtmlLinefeedsbooleanisReplaceHtmlLinefeeds()Returns replaceHtmlLinefeedsbooleanisShiftEnterSubmitsText()Returns shiftEnterSubmitsTextvoidsetExtractHtmlBody(boolean value)Sets extractHtmlBodyvoidsetMinimumEditorScale(double minimumEditorScale)voidsetMinimumHeight(int minimumHeight)voidsetMinimumWidth(int minimumWidth)voidsetReplaceHtmlLinefeeds(boolean value)Sets replaceHtmlLinefeedsvoidsetShiftEnterSubmitsText(boolean value)Sets shiftEnterSubmitsTextvoidstartEditing(java.lang.Object cell, java.util.EventObject evt)Starts editing the given cell.voidstopEditing(boolean cancel)Stops the current editing.
-
-
-
Field Detail
-
DEFAULT_MIN_WIDTH
public static int DEFAULT_MIN_WIDTH
-
DEFAULT_MIN_HEIGHT
public static int DEFAULT_MIN_HEIGHT
-
DEFAULT_MINIMUM_EDITOR_SCALE
public static double DEFAULT_MINIMUM_EDITOR_SCALE
-
-
Constructor Detail
-
mxCellEditor
public mxCellEditor(mxGraphComponent graphComponent)
-
-
Method Detail
-
isExtractHtmlBody
public boolean isExtractHtmlBody()
Returns replaceHtmlLinefeeds
-
setExtractHtmlBody
public void setExtractHtmlBody(boolean value)
Sets extractHtmlBody
-
isReplaceHtmlLinefeeds
public boolean isReplaceHtmlLinefeeds()
Returns replaceHtmlLinefeeds
-
setReplaceHtmlLinefeeds
public void setReplaceHtmlLinefeeds(boolean value)
Sets replaceHtmlLinefeeds
-
isShiftEnterSubmitsText
public boolean isShiftEnterSubmitsText()
Returns shiftEnterSubmitsText
-
setShiftEnterSubmitsText
public void setShiftEnterSubmitsText(boolean value)
Sets shiftEnterSubmitsText
-
getEditor
public java.awt.Component getEditor()
Returns the current editor or null if no editing is in progress.
-
getEditorBounds
public java.awt.Rectangle getEditorBounds(mxCellState state, double scale)
Returns the bounds to be used for the editor.
-
startEditing
public void startEditing(java.lang.Object cell, java.util.EventObject evt)Description copied from interface:mxICellEditorStarts editing the given cell.- Specified by:
startEditingin interfacemxICellEditor
-
stopEditing
public void stopEditing(boolean cancel)
Description copied from interface:mxICellEditorStops the current editing.- Specified by:
stopEditingin interfacemxICellEditor
-
getCurrentValue
public java.lang.String getCurrentValue()
Returns the current editing value.
-
getEditingCell
public java.lang.Object getEditingCell()
Description copied from interface:mxICellEditorReturns the cell that is currently being edited.- Specified by:
getEditingCellin interfacemxICellEditor
-
getMinimumEditorScale
public double getMinimumEditorScale()
- Returns:
- the minimumEditorScale
-
setMinimumEditorScale
public void setMinimumEditorScale(double minimumEditorScale)
- Parameters:
minimumEditorScale- the minimumEditorScale to set
-
getMinimumWidth
public int getMinimumWidth()
- Returns:
- the minimumWidth
-
setMinimumWidth
public void setMinimumWidth(int minimumWidth)
- Parameters:
minimumWidth- the minimumWidth to set
-
getMinimumHeight
public int getMinimumHeight()
- Returns:
- the minimumHeight
-
setMinimumHeight
public void setMinimumHeight(int minimumHeight)
- Parameters:
minimumHeight- the minimumHeight to set
-
-
DataMelt 3.0 © DataMelt by jWork.ORG