Revision 3438
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrVect.java | ||
---|---|---|
267 | 267 |
|
268 | 268 |
|
269 | 269 |
setLayerText(layerText); |
270 |
|
|
270 |
layerText.setCoordTrans(getCoordTrans()); |
|
271 | 271 |
return layerText; |
272 | 272 |
} |
273 | 273 |
|
trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrText.java | ||
---|---|---|
259 | 259 |
} |
260 | 260 |
|
261 | 261 |
Point2D thePoint = (Point2D) m_labels.get(numReg); |
262 |
|
|
263 |
|
|
264 |
FPoint2D theShape = new FPoint2D(thePoint); |
|
265 |
theShape.reProject(this.getCoordTrans()); |
|
266 |
|
|
267 |
|
|
268 |
|
|
262 | 269 |
if (thePoint == null) |
263 | 270 |
continue; |
264 | 271 |
|
265 |
if (elExtent.contains(thePoint.getX(), thePoint.getY())) // TODO: Aqui hay que
|
|
272 |
if (elExtent.contains(theShape.getX(), theShape.getY())) // TODO: Aqui hay que
|
|
266 | 273 |
// ponerle al FLabel un |
267 | 274 |
// getExtent() |
268 | 275 |
{ |
... | ... | |
296 | 303 |
.getFieldValue(numReg, idFieldRotationText); |
297 | 304 |
theLabel.setRotation(rotation.getValue()); |
298 | 305 |
} |
299 |
FPoint2D theShape = new FPoint2D(thePoint); |
|
306 |
|
|
300 | 307 |
FGraphicUtilities.DrawLabel(g, viewPort.getAffineTransform(), |
301 | 308 |
theShape, theSymbol, theLabel); |
302 | 309 |
} |
Also available in: Unified diff