public class GeometryWKTCellEditor extends TextAreaCellEditor
If the WKT to represent a Geometry is too big, editing is not allowed, as the rendering of that big text is too slow.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_MAX_WKT_LENGTH |
| Constructor and Description |
|---|
GeometryWKTCellEditor()
Creates a new editor for Geometries in WKT format.
|
GeometryWKTCellEditor(int maxWKTLength,
int maxRowHeight)
Creates a new editor for Geometries in WKT format.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getCellEditorValue() |
java.awt.Component |
getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column) |
getTextAreacancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditingaddCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerpublic static final int DEFAULT_MAX_WKT_LENGTH
public GeometryWKTCellEditor()
public GeometryWKTCellEditor(int maxWKTLength,
int maxRowHeight)
maxWKTLength - the maximum WTK length allowed to be edited.maxRowHeight - the maximum row height for the rows with cells rendered with
this componentpublic java.lang.Object getCellEditorValue()
getCellEditorValue in interface javax.swing.CellEditorgetCellEditorValue in class javax.swing.DefaultCellEditorpublic java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
getTableCellEditorComponent in interface javax.swing.table.TableCellEditorgetTableCellEditorComponent in class javax.swing.DefaultCellEditor