Revision 12881 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/SingleSymbolLegend.java

View differences:

SingleSymbolLegend.java
80 80

  
81 81

  
82 82
	public void setDefaultSymbol(ISymbol s) {
83
		if (s == null) throw new NullPointerException("Default symbol cannot be null");
83 84
		setShapeType(s.getSymbolType());
84 85
		defaultSymbol = s;
85 86
	}
......
90 91
	}
91 92

  
92 93
	public ISymbol getDefaultSymbol() {
94
		if(defaultSymbol==null)//mio
95
			defaultSymbol=SymbologyFactory.createDefaultFillSymbol();//mio
93 96
		return defaultSymbol;
94 97
	}
95 98

  
......
211 214
    }
212 215

  
213 216

  
217
	public String getClassName() {
218
		return getClass().getName();
219
	}
220

  
221

  
214 222
}

Also available in: Unified diff