Revision 38563

View differences:

trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/styling/labeling/LabelClass.java
452 452
					int height = (int) Math.round(xy[1] - y) ;
453 453

  
454 454
					Rectangle textRect = new Rectangle(x, y, width, height);
455
					Shape oldClip = graphics.getClip();
456
					graphics.setClip(textRect);
455
//					Shape oldClip = graphics.getClip();
456
//					graphics.setClip(textRect);
457 457
					getTextSymbol().drawInsideRectangle(graphics, null, textRect, null);
458
					graphics.setClip(oldClip);
458
//					graphics.setClip(oldClip);
459
//					graphics.draw(textRect);
459 460
				}
460 461
			}
461 462
		} else {
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/symbols/SimpleTextSymbol.java
112 112
		// Para chino hay que escoger una fuente como esta (SimSun)
113 113
//		g.setFont(new Font("SimSun",Font.PLAIN, 12));
114 114

  
115
		g.drawString(getText(), -((int) bounds.getWidth()/2), 0); //(int)-bounds.getY());
115
//		g.drawString(getText(), -((int) bounds.getWidth()/2), 0); //(int)-bounds.getY());
116
		g.drawString(getText(), 0, 0);
116 117
//		g.drawRect(0, 0, 5, 5);
117 118
		g.rotate(-rotation);
118 119
		g.translate(-shpX, -shpY);
......
148 149
		//Only for debugging purpose
149 150
//		g.drawRect((int)r.getX(), (int)r.getY(), (int)r.getWidth(), (int)r.getHeight());
150 151
		if (properties==null)
151
			draw(g, null, new FPoint2D(r.getX(), r.getY()), null);
152
			draw(g, null, new FPoint2D(r.getX(), r.getY() + r.height), null);
152 153
		else
153
			print(g, new AffineTransform(), new FPoint2D(r.getX(), r.getY()), properties);
154
			print(g, new AffineTransform(), new FPoint2D(r.getX(), r.getY() + r.getHeight()), properties);
154 155

  
155 156
	}
156 157

  

Also available in: Unified diff