Revision 28879 branches/v2_0_0_prep/libraries/libFMap_mapcontext/src/org/gvsig/fmap/mapcontext/rendering/symbols/AbstractMarkerSymbol.java
AbstractMarkerSymbol.java | ||
---|---|---|
243 | 243 |
try { |
244 | 244 |
if (properties==null) |
245 | 245 |
draw(g, scaleInstance, geomManager.createPoint(r.getCenterX(), r.getCenterY(), SUBTYPES.GEOM2D), null); |
246 |
else |
|
246 |
else{ |
|
247 |
double originalSize = getSize(); |
|
248 |
double size=originalSize; |
|
249 |
PrintQuality pq = (PrintQuality) properties.get(PrintQuality.class); |
|
250 |
if (pq.equals(PrintQuality.NORMAL)){ |
|
251 |
size *= (double) 300/72; |
|
252 |
}else if (pq.equals(PrintQuality.HIGH)){ |
|
253 |
size *= (double) 600/72; |
|
254 |
}else if (pq.equals(PrintQuality.DRAFT)){ |
|
255 |
// unitFactor *= 72; (which is the same than doing nothing) |
|
256 |
} |
|
257 |
setSize(size); |
|
247 | 258 |
print(g, scaleInstance, geomManager.createPoint(r.getCenterX(), r.getCenterY(), SUBTYPES.GEOM2D), properties); |
259 |
setSize(originalSize); |
|
260 |
} |
|
261 |
|
|
262 |
|
|
263 |
|
|
248 | 264 |
} catch (CreateGeometryException e) { |
249 | 265 |
throw new SymbolDrawingException(TYPES.POINT); |
250 | 266 |
} |
Also available in: Unified diff