Revision 20778 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/AbstractIntervalLegend.java

View differences:

AbstractIntervalLegend.java
168 168
	public void addSymbol(Object key, ISymbol symbol) {
169 169
		symbols.put(key, symbol);
170 170
		keys.add(key);
171
		fireClassifiedSymbolChangeEvent(new SymbolLegendEvent(null, symbol));
171 172
	}
172 173

  
173 174
	/*
......
179 180
		ISymbol theSymbol = getSymbolByInterval(interval);
180 181

  
181 182

  
182

  
183
//
184
//		if (shapeType == FShape.POLYGON && theSymbol instanceof IMarkerSymbol) {
185
//			// transform it to a fill symbol
186
//			MarkerFillSymbol aux = new MarkerFillSymbol();
187
//			// tell the fill style to draw the IMarkerSymbol
188
//			// as a IFillSymbol centering it in the shape polygon
189
//			// centroid and applying offset (if any).
190
//			aux.setMarker((IMarkerSymbol) theSymbol);
191
//			SimpleMarkerFillPropertiesStyle p = new SimpleMarkerFillPropertiesStyle();
192
//			p.setFillStyle(SimpleMarkerFillPropertiesStyle.SINGLE_CENTERED_SYMBOL);
193
//			aux.setMarkerFillProperties(p);
194
//			theSymbol = aux;
195
//		}
196

  
197 183
		if (theSymbol != null) {
198 184
			return theSymbol;
199 185
		} else if (useDefaultSymbol) {
......
501 487
	}
502 488

  
503 489
	public void setDefaultSymbol(ISymbol s) {
490
	    ISymbol old = defaultSymbol;
504 491
		if (s == null) throw new NullPointerException("Default symbol cannot be null");
505 492
		defaultSymbol = s;
493
		fireDefaultSymbolChangedEvent(new SymbolLegendEvent(old, defaultSymbol));
506 494
	}
507 495

  
508 496
	public void setClassifyingFieldNames(String[] fieldNames) {
......
567 555
	public void delSymbol(Object obj) {
568 556
		keys.remove(obj);
569 557
		symbols.remove(obj);
558
		fireClassifiedSymbolChangeEvent(
559
				new SymbolLegendEvent(
560
						symbols.remove(obj),
561
						null));
570 562
	}
571 563

  
572 564
	

Also available in: Unified diff