Revision 8235 trunk/extensions/extGeoProcessing/src/com/iver/cit/gvsig/geoprocess/impl/convexhull/ConvexHullGeoprocessController.java
ConvexHullGeoprocessController.java | ||
---|---|---|
45 | 45 |
* |
46 | 46 |
* $Id$ |
47 | 47 |
* $Log$ |
48 |
* Revision 1.4 2006-08-11 16:20:24 azabala |
|
48 |
* Revision 1.5 2006-10-23 10:28:55 caballero |
|
49 |
* ancho y alto del panel |
|
50 |
* |
|
51 |
* Revision 1.4 2006/08/11 16:20:24 azabala |
|
49 | 52 |
* *** empty log message *** |
50 | 53 |
* |
51 | 54 |
* Revision 1.3 2006/07/21 09:10:34 azabala |
... | ... | |
100 | 103 |
public class ConvexHullGeoprocessController extends |
101 | 104 |
AbstractGeoprocessController { |
102 | 105 |
|
103 |
|
|
106 |
|
|
104 | 107 |
private ConvexHullPanelIF geoProcessingConvexHullPanel; |
105 | 108 |
private ConvexHullGeoprocess convexHull; |
106 | 109 |
public void setView(IGeoprocessPanel viewPanel) { |
107 |
this.geoProcessingConvexHullPanel =
|
|
110 |
this.geoProcessingConvexHullPanel = |
|
108 | 111 |
(ConvexHullPanelIF) viewPanel; |
109 | 112 |
} |
110 | 113 |
public IGeoprocess getGeoprocess() { |
... | ... | |
149 | 152 |
String errorDescription = PluginServices.getText(this, "Error_preparar_escritura_resultados"); |
150 | 153 |
geoProcessingConvexHullPanel.error(errorDescription, error); |
151 | 154 |
return false; |
152 |
}
|
|
155 |
} |
|
153 | 156 |
convexHull.setResultLayerProperties(writer, schemaManager); |
154 | 157 |
HashMap params = new HashMap(); |
155 | 158 |
boolean onlySelected = geoProcessingConvexHullPanel |
... | ... | |
161 | 164 |
IMonitorableTask task1 = convexHull.createTask(); |
162 | 165 |
if(task1 == null){ |
163 | 166 |
return false; |
164 |
|
|
167 |
|
|
165 | 168 |
} |
166 | 169 |
AddResultLayerTask task2 = new AddResultLayerTask(convexHull); |
167 | 170 |
task2.setLayers(layers); |
... | ... | |
169 | 172 |
task2); |
170 | 173 |
if (globalTask.preprocess()) |
171 | 174 |
PluginServices.cancelableBackgroundExecution(globalTask); |
172 |
|
|
175 |
|
|
173 | 176 |
} catch (GeoprocessException e) { |
174 | 177 |
String error = PluginServices.getText(this, "Error_ejecucion"); |
175 | 178 |
String errorDescription = PluginServices.getText(this, "Error_fallo_geoproceso"); |
... | ... | |
178 | 181 |
} |
179 | 182 |
return true; |
180 | 183 |
} |
184 |
public int getWidth() { |
|
185 |
return 700; |
|
186 |
} |
|
181 | 187 |
|
188 |
public int getHeight() { |
|
189 |
return 200; |
|
190 |
} |
|
182 | 191 |
} |
183 | 192 |
|
Also available in: Unified diff