Revision 19535 trunk/extensions/extRasterTools-SE/src/org/gvsig/rastertools/enhanced/graphics/HistogramGraphicBase.java

View differences:

HistogramGraphicBase.java
150 150
	 */
151 151
	public final static int    DRAWED            = 4;
152 152

  
153
	/**
154
	 * Constantes que identifican el tipo Standard/Cumulative
155
	 */
156
	public final static int    STANDARD        = 0;
157
	public final static int    CUMULATIVE      = 1;
158

  
159 153
	protected GCanvas          canvas          = null;
160 154

  
161 155
	protected HistogramStatus  histogramRed    = null;
......
319 313
	 * @param type Tipo de histograma. El valor est? definido en las constantes de esta clase
320 314
	 */
321 315
	public void setHistogramType(int type) {
322
		// TODO: FUNCIONALIDAD: Sin implementar el tipo de histograma
323
		switch (type) {
324
			case STANDARD:
325
				break;
326
			case CUMULATIVE:
327
				break;
328
		}
316
		if (histogramRed != null)
317
			histogramRed.getGraphicHistogram().setTypeViewed(type);
318
		if (histogramGreen != null)
319
			histogramGreen.getGraphicHistogram().setTypeViewed(type);
320
		if (histogramBlue != null)
321
			histogramBlue.getGraphicHistogram().setTypeViewed(type);
322
		if (histogramGray != null)
323
			histogramGray.getGraphicHistogram().setTypeViewed(type);
329 324
	}
330 325
	
331 326
	/**

Also available in: Unified diff