Revision 37514 branches/v2_0_0_prep/extensions/extEditing/src/org/gvsig/editing/gui/cad/tools/ComplexSelectionCADTool.java
ComplexSelectionCADTool.java | ||
---|---|---|
110 | 110 |
if (status.equals("Selection.FirstPoint")) { |
111 | 111 |
firstPoint = new Point2D.Double(x, y); |
112 | 112 |
pointsPolygon.add(firstPoint); |
113 |
} else |
|
114 |
if (status.equals("Selection.SecondPoint")) { |
|
113 |
} else if (status.equals("Selection.SecondPoint")) { |
|
115 | 114 |
|
116 |
} else |
|
117 |
if (status.equals("Selection.WithSelectedFeatures")) { |
|
115 |
} else if (status.equals("Selection.WithSelectedFeatures")) { |
|
118 | 116 |
|
119 |
} else
|
|
120 |
if (status.equals("Selection.WithHandlers")) {
|
|
121 |
FeatureStore featureStore = null;
|
|
122 |
try {
|
|
123 |
VectorialLayerEdited vle = getVLE();
|
|
124 |
featureStore = vle.getFeatureStore();
|
|
125 |
addPointWithHandlers(x, y, featureStore,
|
|
126 |
vle.getSelectedHandler());
|
|
127 |
} catch (ReadException e) {
|
|
128 |
LOG.error("Error getting the feature store");
|
|
129 |
}
|
|
130 |
} else
|
|
131 |
if (status.equals("Selection.NextPointPolygon")) {
|
|
132 |
pointsPolygon.add(new Point2D.Double(x, y));
|
|
133 |
}
|
|
117 |
} else if (status.equals("Selection.WithHandlers")) {
|
|
118 |
FeatureStore featureStore = null;
|
|
119 |
try {
|
|
120 |
VectorialLayerEdited vle = getVLE();
|
|
121 |
featureStore = vle.getFeatureStore();
|
|
122 |
addPointWithHandlers(x, y, featureStore,
|
|
123 |
vle.getSelectedHandler());
|
|
124 |
} catch (ReadException e) {
|
|
125 |
LOG.error("Error getting the feature store");
|
|
126 |
}
|
|
127 |
} else if (status.equals("Selection.NextPointPolygon")) {
|
|
128 |
pointsPolygon.add(new Point2D.Double(x, y));
|
|
129 |
} else if (status.equals("Selection.SecondPointCircle")) {
|
|
130 |
selectWithCircle(x, y, event);
|
|
131 |
} |
|
134 | 132 |
} |
135 | 133 |
|
136 | 134 |
/** |
Also available in: Unified diff