Revision 30055 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/enhanced/EnhancedTocMenuEntry.java
EnhancedTocMenuEntry.java | ||
---|---|---|
25 | 25 |
import org.gvsig.fmap.raster.layers.IRasterLayerActions; |
26 | 26 |
import org.gvsig.raster.IProcessActions; |
27 | 27 |
import org.gvsig.raster.RasterProcess; |
28 |
import org.gvsig.raster.datastruct.Histogram; |
|
28 | 29 |
import org.gvsig.raster.gui.IGenericToolBarMenuItem; |
29 | 30 |
import org.gvsig.raster.util.RasterToolsUtil; |
30 | 31 |
import org.gvsig.rastertools.enhanced.ui.EnhancedDialog; |
32 |
import org.gvsig.rastertools.histogram.HistogramProcess; |
|
31 | 33 |
import org.gvsig.rastertools.statistics.StatisticsProcess; |
32 | 34 |
|
33 | 35 |
import com.iver.cit.gvsig.fmap.layers.FLayer; |
... | ... | |
153 | 155 |
* Lanzamos la ventana al final del proceso de calculo de estad?sticas. |
154 | 156 |
*/ |
155 | 157 |
public void end(Object param) { |
156 |
EnhancedDialog enhancedDialog = new EnhancedDialog(lyr, 760, 421); |
|
157 |
RasterToolsUtil.addWindow(enhancedDialog); |
|
158 |
if(param == null || param instanceof FLyrRasterSE) { |
|
159 |
RasterProcess histogramProcess = new HistogramProcess(); |
|
160 |
histogramProcess.setActions(this); |
|
161 |
histogramProcess.addParam("histogramable", this.lyr.getDataSource()); |
|
162 |
histogramProcess.start(); |
|
163 |
} |
|
164 |
if(param instanceof Histogram) { |
|
165 |
EnhancedDialog enhancedDialog = new EnhancedDialog(lyr, 760, 421); |
|
166 |
RasterToolsUtil.addWindow(enhancedDialog); |
|
167 |
} |
|
158 | 168 |
} |
159 | 169 |
|
160 | 170 |
public void interrupted() { |
Also available in: Unified diff