Revision 42646 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/symbol/fill/impl/AbstractFillSymbol.java

View differences:

AbstractFillSymbol.java
43 43

  
44 44
/**
45 45
 * Abstract class that any FILL SYMBOL should extend
46
 * 
46
 *
47 47
 * @author 2005-2008 jaume dominguez faus - jaume.dominguez@iver.es
48 48
 * @author 2009-     <a href="cordinyana@gvsig.org">C?sar Ordi?ana</a> - gvSIG team
49 49
 */
......
78 78
	}
79 79

  
80 80
	public boolean isSuitableFor(Geometry geom) {
81
		return geom.getType() == Geometry.TYPES.SURFACE;
81
	       switch(geom.getType()) {
82
	        case Geometry.TYPES.SURFACE:
83
	        case Geometry.TYPES.POLYGON:
84
	            return true;
85
	        }
86
	        return false;
82 87
	}
83 88

  
84 89
	public int getOnePointRgb() {
......
183 188

  
184 189
	public Object clone() throws CloneNotSupportedException {
185 190
		IFillSymbol copy = (IFillSymbol) super.clone();
186
		
191

  
187 192
		// Clone outline
188 193
		ILineSymbol outline = copy.getOutline();
189 194
		if (outline != null) {
......
191 196
		}
192 197
		return copy;
193 198
	}
194
	
199

  
195 200
	public void loadFromState(PersistentState state)
196 201
			throws PersistenceException {
197 202
		// Set parent symbol properties
......
222 227
						AbstractFillSymbol.class,
223 228
						FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME,
224 229
						FILL_SYMBOL_PERSISTENCE_DEFINITION_NAME+" Persistence definition",
225
						null, 
230
						null,
226 231
						null
227 232
				);
228 233

  
......
240 245
			}
241 246
			return Boolean.TRUE;
242 247
		}
243
		
248

  
244 249
	}
245 250

  
246 251
}

Also available in: Unified diff