Revision 3035 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/FLyrText.java

View differences:

FLyrText.java
64 64

  
65 65
import java.util.ArrayList;
66 66

  
67
import org.geotools.resources.geometry.XRectangle2D;
67 68

  
69

  
68 70
/**
69 71
 * Capa de texto.
70 72
 *
......
99 101
	private void drawLabels(BufferedImage image, Graphics2D g,
100 102
		ViewPort viewPort, Cancellable cancel) {
101 103
		int numReg;
102
		Rectangle2D elExtent = viewPort.getExtent();
104
		Rectangle2D elExtent = viewPort.getAdjustedExtent();
103 105

  
104 106
		//int anchoMapa;
105 107
		//int altoMapa;
......
116 118

  
117 119
			FLabel theLabel = (FLabel) m_labels.get(numReg);
118 120
			if ((theLabel == null) || (theLabel.getOrig() == null)) continue;
121
            
119 122
			if (elExtent.contains(theLabel.getOrig())) // TODO: Aqui hay que ponerle al FLabel un getExtent()
120 123
			 {
121 124
				theSymbol = getLegend().getDefaultSymbol();

Also available in: Unified diff