Revision 2316

View differences:

trunk/applications/appgvSIG/src/com/iver/cit/gvsig/gui/layout/fframes/FFrame.java
594 594
	 */
595 595
	public void drawDraft(Graphics2D g) {
596 596
		Rectangle2D r = getBoundingBox(null);
597
		g.rotate(Math.toRadians(getRotation()), r.getX() + (r.getWidth() / 2),
598
				r.getY() + (r.getHeight() / 2));
599

  
600
		
597
			
601 598
		g.setColor(Color.lightGray);
602 599
		g.fillRect((int) r.getX(), (int) r.getY(), (int) r.getWidth(), (int) r.getHeight());
603 600
		g.setColor(Color.black);
......
608 605
		g.drawString(getName(),
609 606
			(int) (r.getCenterX() - ((getName().length() * scale) / 4)),
610 607
			(int) (r.getCenterY()));
611
		g.rotate(Math.toRadians(-getRotation()),
612
				r.getX() + (r.getWidth() / 2), r.getY() + (r.getHeight() / 2));
613 608
	
614 609
	}
615 610

  
......
630 625
	 */
631 626
	public void drawEmpty(Graphics2D g) {
632 627
		Rectangle2D r = getBoundingBox(null);
633
		g.rotate(Math.toRadians(getRotation()), r.getX() + (r.getWidth() / 2),
634
				r.getY() + (r.getHeight() / 2));
635 628
		g.setColor(Color.lightGray);
636 629
		g.fillRect((int) r.getX(), (int) r.getY(), (int) r.getWidth(), (int) r.getHeight());
637 630
		g.setColor(Color.black);
......
645 638

  
646 639
		g.drawString(s, (int) (r.getCenterX() - ((s.length() * scale) / 4)),
647 640
			(int) (r.getCenterY()));
648
		g.rotate(Math.toRadians(-getRotation()),
649
				r.getX() + (r.getWidth() / 2), r.getY() + (r.getHeight() / 2));
650 641
	}
651 642

  
652 643
	/**

Also available in: Unified diff