Revision 37328 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/gui/cad/tools/SplitGeometryCADTool.java
SplitGeometryCADTool.java | ||
---|---|---|
58 | 58 |
import org.gvsig.fmap.geom.operation.GeometryOperationNotSupportedException; |
59 | 59 |
import org.gvsig.fmap.geom.primitive.Envelope; |
60 | 60 |
import org.gvsig.fmap.geom.primitive.GeneralPathX; |
61 |
import org.gvsig.fmap.geom.type.GeometryType; |
|
61 | 62 |
import org.gvsig.fmap.geom.util.Converter; |
62 | 63 |
import org.gvsig.fmap.mapcontext.layers.SpatialCache; |
63 | 64 |
import org.gvsig.fmap.mapcontext.layers.vectorial.FLyrVect; |
... | ... | |
100 | 101 |
protected List<Point2D> clickedPoints; |
101 | 102 |
|
102 | 103 |
/** |
103 |
* Default Constructor |
|
104 |
*/ |
|
105 |
public SplitGeometryCADTool() { |
|
106 |
|
|
107 |
} |
|
108 |
|
|
109 |
/** |
|
110 | 104 |
* Initialization method. |
111 | 105 |
*/ |
112 | 106 |
public void init() { |
... | ... | |
126 | 120 |
public void finishDigitizedLine() { |
127 | 121 |
} |
128 | 122 |
|
129 |
// public ArrayList getSelectedRows(){ |
|
130 |
// VectorialLayerEdited vle = getVLE(); |
|
131 |
// ArrayList selection = vle.getSelectedRow(); |
|
132 |
// if( selection.size() == 0){ |
|
133 |
// VectorialEditableAdapter vea = vle.getVEA(); |
|
134 |
// try { |
|
135 |
// FBitSet bitset = vea.getSelection(); |
|
136 |
// for (int j = bitset.nextSetBit(0);j >= 0;j = bitset.nextSetBit(j + 1)){ |
|
137 |
// IRowEdited rowEd = vea.getRow(j); |
|
138 |
// selection.add(rowEd); |
|
139 |
// } |
|
140 |
// } catch (ExpansionFileReadException e) { |
|
141 |
// e.printStackTrace(); |
|
142 |
// } catch (ReadDriverException e) { |
|
143 |
// e.printStackTrace(); |
|
144 |
// } |
|
145 |
// }//selection size |
|
146 |
// return selection; |
|
147 |
// } |
|
148 |
// public ArrayList getSelectedRows(){ |
|
149 |
// return (ArrayList) CADUtil.getSelectedFeatures(getVLE()); |
|
150 |
// } |
|
151 | 123 |
public Coordinate[] getPoint2DAsCoordinates(Point2D[] point2d) { |
152 | 124 |
Coordinate[] solution = new Coordinate[point2d.length]; |
153 | 125 |
for (int i = 0; i < point2d.length; i++) { |
... | ... | |
436 | 408 |
} |
437 | 409 |
} |
438 | 410 |
|
411 |
@Override |
|
412 |
public boolean isApplicable(GeometryType geometryType) { |
|
413 |
return true; |
|
414 |
} |
|
415 |
|
|
416 |
@Override |
|
417 |
protected int[] getSupportedGeometryTypes() { |
|
418 |
return null; |
|
419 |
} |
|
439 | 420 |
} |
Also available in: Unified diff