Class GeometryWKTCellEditor
java.lang.Object
javax.swing.AbstractCellEditor
javax.swing.DefaultCellEditor
org.gvsig.fmap.dal.swing.impl.featuretable.table.editors.TextAreaCellEditor
org.gvsig.fmap.dal.swing.impl.featuretable.table.editors.GeometryWKTCellEditor
- All Implemented Interfaces:
Serializable,CellEditor,TableCellEditor,TreeCellEditor
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
DefaultCellEditor.EditorDelegate -
Field Summary
FieldsFields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponentFields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new editor for Geometries in WKT format.GeometryWKTCellEditor(int maxWKTLength, int maxRowHeight) Creates a new editor for Geometries in WKT format. -
Method Summary
Modifier and TypeMethodDescriptiongetTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) Methods inherited from class org.gvsig.fmap.dal.swing.impl.featuretable.table.editors.TextAreaCellEditor
getTextAreaMethods inherited from class javax.swing.DefaultCellEditor
cancelCellEditing, getClickCountToStart, getComponent, getTreeCellEditorComponent, isCellEditable, setClickCountToStart, shouldSelectCell, stopCellEditingMethods inherited from class javax.swing.AbstractCellEditor
addCellEditorListener, fireEditingCanceled, fireEditingStopped, getCellEditorListeners, removeCellEditorListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.CellEditor
addCellEditorListener, removeCellEditorListener
-
Field Details
-
DEFAULT_MAX_WKT_LENGTH
public static final int DEFAULT_MAX_WKT_LENGTH- See Also:
-
-
Constructor Details
-
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
-
-
Method Details
-
getCellEditorValue
- Specified by:
getCellEditorValuein interfaceCellEditor- Overrides:
getCellEditorValuein classDefaultCellEditor
-
getTableCellEditorComponent
public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) - Specified by:
getTableCellEditorComponentin interfaceTableCellEditor- Overrides:
getTableCellEditorComponentin classDefaultCellEditor
-