org.gvsig.fmap.mapcontrol.dal.feature.swing.table
Class GeometryWKTCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
org.gvsig.fmap.mapcontrol.dal.feature.swing.table.TextAreaCellEditor
org.gvsig.fmap.mapcontrol.dal.feature.swing.table.GeometryWKTCellEditor
- All Implemented Interfaces:
- java.io.Serializable, javax.swing.CellEditor, javax.swing.table.TableCellEditor, javax.swing.tree.TreeCellEditor
public class GeometryWKTCellEditor
- extends TextAreaCellEditor
Editor for cells of type Geometry in WKT format.
If the WKT to represent a Geometry is too big, editing is not allowed, as the
rendering of that big text is too slow.
- Author:
- C�sar Ordi�ana
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor |
javax.swing.DefaultCellEditor.EditorDelegate |
| Fields inherited from class javax.swing.DefaultCellEditor |
clickCountToStart, delegate, editorComponent |
| Fields inherited from class javax.swing.AbstractCellEditor |
changeEvent, listenerList |
| Methods inherited from class javax.swing.DefaultCellEditor |
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditing |
| Methods inherited from class javax.swing.AbstractCellEditor |
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListener |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.swing.CellEditor |
addCellEditorListener, removeCellEditorListener |
DEFAULT_MAX_WKT_LENGTH
public static final int DEFAULT_MAX_WKT_LENGTH
- See Also:
- Constant Field Values
GeometryWKTCellEditor
public GeometryWKTCellEditor()
- Creates a new editor for Geometries in WKT format.
GeometryWKTCellEditor
public GeometryWKTCellEditor(int maxWKTLength,
int maxRowHeight)
- Creates a new editor for Geometries in WKT format.
- Parameters:
maxWKTLength - the maximum WTK length allowed to be edited.maxRowHeight - the maximum row height for the rows with cells rendered with
this component
getCellEditorValue
public java.lang.Object getCellEditorValue()
- Specified by:
getCellEditorValue in interface javax.swing.CellEditor- Overrides:
getCellEditorValue in class javax.swing.DefaultCellEditor
getTableCellEditorComponent
public java.awt.Component getTableCellEditorComponent(javax.swing.JTable table,
java.lang.Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent in interface javax.swing.table.TableCellEditor- Overrides:
getTableCellEditorComponent in class javax.swing.DefaultCellEditor
Copyright © 2014 gvSIG Association. All Rights Reserved.