Revision 38563 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/symbols/SimpleTextSymbol.java
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