Revision 2304 trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/fframes/FFrameGraphics.java

View differences:

FFrameGraphics.java
180 180
	public void draw(Graphics2D g, AffineTransform at, Rectangle2D rv,
181 181
		BufferedImage imgBase) {
182 182
		Rectangle2D.Double rect = getBoundingBox(at);
183

  
183
		g.rotate(Math.toRadians(getRotation()), rect.x + (rect.width / 2),
184
				rect.y + (rect.height / 2));
184 185
		if (intersects(rv, rect)) {
185 186
			g.setColor(Color.black);
186 187

  
......
261 262
					break;
262 263
			}
263 264
		}
265
		g.rotate(Math.toRadians(-getRotation()),
266
				rect.x + (rect.width / 2), rect.y + (rect.height / 2));
264 267
	}
265 268

  
266 269
	/**
......
278 281
		xml.putProperty("type", Layout.GRAPHICS);
279 282
		xml.putProperty("m_type", m_type);
280 283
		xml.putProperty("tag", getTag());
284
		xml.putProperty("m_rotation",getRotation());
281 285
		xml.addChild(m_symbol.getXMLEntity());
282 286
		return xml;
283 287
	}
......
323 327
	public void setXMLEntity(XMLEntity xml, Layout p) {
324 328
		m_Selected=xml.getIntProperty("m_Selected");
325 329
		m_type=xml.getIntProperty("m_type");
330
		setRotation(xml.getDoubleProperty("m_rotation"));
326 331
		m_symbol=FSymbol.createFromXML(xml.getChild(0));
327 332
	}
328 333

  

Also available in: Unified diff