Revision 10993 trunk/libraries/libFMap/src/com/iver/cit/gvsig/fmap/rendering/styling/AttrInTableLabeling.java

View differences:

AttrInTableLabeling.java
1 1
package com.iver.cit.gvsig.fmap.rendering.styling;
2 2

  
3
import java.awt.Color;
3 4
import java.awt.Graphics2D;
5
import java.awt.geom.NoninvertibleTransformException;
4 6
import java.awt.image.BufferedImage;
5 7
import java.util.logging.Level;
6 8
import java.util.logging.Logger;
......
91 93
				// limit the labeling to the visible extent
92 94
				FBitSet bs = layer.queryByRect(viewPort.getAdjustedExtent());
93 95

  
94
				ReadableVectorial source = (ReadableVectorial) layer.getSource();
96
				ReadableVectorial source = layer.getSource();
95 97
				SelectableDataSource recordSet = source.getRecordset();
96 98

  
97 99
				for(int i=bs.nextSetBit(0); i>=0; i=bs.nextSetBit(i+1)) {
......
135 137
					IGeometry geom = source.getShape(i);
136 138
					sym.setText(vv[idTextField].toString());
137 139
					sym.setRotation(rotation);
138

  
140
					
139 141
					FLabel[] aux = geom.createLabels(0, true);
140 142
					for (int j = 0; j < aux.length; j++) {
141
						sym.draw(g, viewPort.getAffineTransform(), new FPoint2D(aux[j].getOrig()));
143
						FPoint2D p = new FPoint2D(aux[j].getOrig());
144
						sym.draw(g, viewPort.getAffineTransform(), p);
142 145
					}
143 146

  
144 147
				}

Also available in: Unified diff