org.gvsig.fmap.mapcontrol.dal.feature.swing.table
Class GeometryWKTCellEditor

java.lang.Object
  extended by javax.swing.AbstractCellEditor
      extended by javax.swing.DefaultCellEditor
          extended by org.gvsig.fmap.mapcontrol.dal.feature.swing.table.TextAreaCellEditor
              extended by 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 Class Summary
 
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
javax.swing.DefaultCellEditor.EditorDelegate
 
Field Summary
static int DEFAULT_MAX_WKT_LENGTH
           
 
Fields inherited from class javax.swing.DefaultCellEditor
clickCountToStart, delegate, editorComponent
 
Fields inherited from class javax.swing.AbstractCellEditor
changeEvent, listenerList
 
Constructor Summary
GeometryWKTCellEditor()
          Creates a new editor for Geometries in WKT format.
GeometryWKTCellEditor(int maxWKTLength, int maxRowHeight)
          Creates a new editor for Geometries in WKT format.
 
Method Summary
 java.lang.Object getCellEditorValue()
           
 java.awt.Component getTableCellEditorComponent(javax.swing.JTable table, java.lang.Object value, boolean isSelected, int row, int column)
           
 
Methods inherited from class org.gvsig.fmap.mapcontrol.dal.feature.swing.table.TextAreaCellEditor
getTextArea
 
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
 

Field Detail

DEFAULT_MAX_WKT_LENGTH

public static final int DEFAULT_MAX_WKT_LENGTH
See Also:
Constant Field Values
Constructor Detail

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 Detail

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.