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:
- Serializable, CellEditor, TableCellEditor, 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 Object getCellEditorValue()
- Specified by:
getCellEditorValue in interface CellEditor- Overrides:
getCellEditorValue in class DefaultCellEditor
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table,
Object value,
boolean isSelected,
int row,
int column)
- Specified by:
getTableCellEditorComponent in interface TableCellEditor- Overrides:
getTableCellEditorComponent in class DefaultCellEditor
Copyright © 2004-2013 gvSIG. All Rights Reserved.