Revision 42806 trunk/org.gvsig.desktop/org.gvsig.desktop.compat.cdc/org.gvsig.fmap.dal/org.gvsig.fmap.dal.swing/org.gvsig.fmap.dal.swing.impl/src/main/java/org/gvsig/fmap/dal/swing/impl/featuretable/table/editors/GeometryWKTCellEditor.java
GeometryWKTCellEditor.java | ||
---|---|---|
35 | 35 |
import javax.swing.DefaultCellEditor; |
36 | 36 |
import javax.swing.JOptionPane; |
37 | 37 |
import javax.swing.JTable; |
38 |
|
|
38 | 39 |
import org.apache.commons.lang3.StringUtils; |
39 |
import org.gvsig.fmap.dal.swing.impl.featuretable.table.GeometryToWKTException; |
|
40 |
import org.slf4j.Logger; |
|
41 |
import org.slf4j.LoggerFactory; |
|
40 | 42 |
|
43 |
import org.gvsig.fmap.dal.swing.impl.featuretable.table.renders.GeometryToWKTException; |
|
41 | 44 |
import org.gvsig.fmap.geom.Geometry; |
42 | 45 |
import org.gvsig.fmap.geom.GeometryLocator; |
43 | 46 |
import org.gvsig.fmap.geom.GeometryManager; |
44 | 47 |
import org.gvsig.i18n.Messages; |
45 |
import org.slf4j.Logger; |
|
46 |
import org.slf4j.LoggerFactory; |
|
47 | 48 |
|
48 | 49 |
/** |
49 | 50 |
* Editor for cells of type Geometry in WKT format. |
... | ... | |
51 | 52 |
* If the WKT to represent a Geometry is too big, editing is not allowed, as the |
52 | 53 |
* rendering of that big text is too slow. |
53 | 54 |
* </p> |
54 |
*
|
|
55 |
* |
|
55 | 56 |
* @author <a href="mailto:cordin@disid.com">C�sar Ordi�ana</a> |
56 | 57 |
*/ |
57 | 58 |
public class GeometryWKTCellEditor extends TextAreaCellEditor { |
... | ... | |
60 | 61 |
public static final int DEFAULT_MAX_WKT_LENGTH = 10000; |
61 | 62 |
|
62 | 63 |
private static final long serialVersionUID = -2296004227902843851L; |
63 |
|
|
64 |
|
|
64 | 65 |
private int maxRowHeight; |
65 | 66 |
|
66 | 67 |
/** |
... | ... | |
72 | 73 |
|
73 | 74 |
/** |
74 | 75 |
* Creates a new editor for Geometries in WKT format. |
75 |
*
|
|
76 |
* |
|
76 | 77 |
* @param maxWKTLength |
77 | 78 |
* the maximum WTK length allowed to be edited. |
78 | 79 |
* @param maxRowHeight |
Also available in: Unified diff