Revision 12043 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/symbols/SimpleMarkerSymbol.java

View differences:

SimpleMarkerSymbol.java
43 43
*
44 44
* $Id$
45 45
* $Log$
46
* Revision 1.11  2007-05-29 15:46:37  jaume
46
* Revision 1.12  2007-06-07 06:50:40  jaume
47 47
* *** empty log message ***
48 48
*
49
* Revision 1.11  2007/05/29 15:46:37  jaume
50
* *** empty log message ***
51
*
49 52
* Revision 1.10  2007/05/28 15:36:42  jaume
50 53
* *** empty log message ***
51 54
*
......
154 157
		int x, y;
155 158
		Point2D p = new Point2D.Double(((FPoint2D) shp).getX(), ((FPoint2D) shp)
156 159
				.getY());
160
		RenderingHints old = g.getRenderingHints();
161
		g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
157 162

  
158
		int halfSize = (int) getSize()/2;
163
		int halfSize = (int) getSize()/2; // TODO CartographicSupport
159 164
		x = ((int) (p.getX() - getOffset().getX()) - halfSize);
160 165
		y = ((int) (p.getY() - getOffset().getY()) - halfSize);
161 166

  
......
165 170
//			maskShape.draw(g, null, mask.getHaloShape(shp));
166 171
		}
167 172

  
168

  
169 173
		int size = (int) getSize(); // TODO CartographicSupport
170

  
171 174
		g.setColor(getColor());
172 175
		GeneralPathX genPath = null;
173 176

  
......
244 247
				break;
245 248
			}
246 249
		}
250
		g.setRenderingHints(old);
247 251
	}
248 252

  
249 253
	public int getPixExtentPlus(Graphics2D g, AffineTransform affineTransform, Shape shp) {
......
262 266
		xml.putProperty("size", getSize());
263 267
		xml.putProperty("outline", outlined);
264 268
		xml.putProperty("unit", getUnit());
269
		xml.putProperty("referenceSystem", getReferenceSystem());
265 270
		xml.putProperty("markerStyle", getStyle());
266 271

  
267 272
		if (outlined) {
......
295 300
		setSize(xml.getDoubleProperty("size"));
296 301
		setOutlined(xml.getBooleanProperty("outline"));
297 302
		setUnit(xml.getIntProperty("unit"));
303
		setReferenceSystem(xml.getIntProperty("referenceSystem"));
298 304
		setStyle(xml.getIntProperty("markerStyle"));
299 305
		if (hasOutline()) {
300 306
			setOutlineColor(StringUtilities.string2Color(xml.getStringProperty("outlineColor")));

Also available in: Unified diff