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:
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

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.DefaultCellEditor
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
 Object getCellEditorValue()
           
 Component getTableCellEditorComponent(JTable table, 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 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.