Revision 32881
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/styling/labeling/AttrInTableLabelingStrategy.java | ||
---|---|---|
216 | 216 |
for (int j = 0; j < aux.length; j++) { |
217 | 217 |
FPoint2D p = new FPoint2D(aux[j].getOrig()); |
218 | 218 |
p.transform(viewPort.getAffineTransform()); |
219 |
if (properties==null) |
|
219 |
if (idRotationField == -1) |
|
220 |
sym.setRotation(aux[j].getRotation()); |
|
221 |
|
|
222 |
if (properties==null) { |
|
220 | 223 |
sym.draw(g, null, p, cancel); |
224 |
} |
|
221 | 225 |
else |
222 | 226 |
sym.print(g, null, p, properties); |
223 | 227 |
} |
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/core/symbols/SimpleTextSymbol.java | ||
---|---|---|
107 | 107 |
// Antes tomabamos el resultado de getBounds pero ya se le hab?a aplicado |
108 | 108 |
// la rotaci?n, con lo que no obten?amos el la altura correcta de la fuente. |
109 | 109 |
|
110 |
// Alineamos el texto de manera que la parte superior
|
|
110 |
// Alineamos el texto de manera que la parte inferior
|
|
111 | 111 |
// izquierda de la primera letra est? en (0,0). |
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(), 0, (int)-bounds.getY()); |
|
115 |
g.drawString(getText(), -((int) bounds.getWidth()/2), 0); //(int)-bounds.getY()); |
|
116 |
// g.drawRect(0, 0, 5, 5); |
|
116 | 117 |
g.rotate(-rotation); |
117 | 118 |
g.translate(-shpX, -shpY); |
118 | 119 |
} |
Also available in: Unified diff