Revision 11756 branches/v10/extensions/extAnnotations/src/com/iver/cit/gvsig/fmap/operation/strategies/Annotation_Strategy.java

View differences:

Annotation_Strategy.java
81 81
import com.iver.cit.gvsig.fmap.operations.strategies.DefaultStrategy;
82 82
import com.iver.cit.gvsig.fmap.operations.strategies.VisitException;
83 83
import com.iver.cit.gvsig.fmap.rendering.Annotation_Legend;
84
import com.iver.cit.gvsig.project.documents.view.legend.CreateSpatialIndexMonitorableTask;
84 85
import com.iver.utiles.swing.threads.Cancellable;
85 86
import com.vividsolutions.jts.geom.Geometry;
86 87
import com.vividsolutions.jts.geom.IntersectionMatrix;
......
354 355

  
355 356
                // sym.setDescription(vv[idTextField].toString());
356 357
                // sym.setRotation((int) rotation);
357
                FLabel[] aux = geom.createLabels(0, true);
358
                Rectangle2D r=geom.getBounds2D();
359
                FLabel[] aux = new FLabel[]{new FLabel()};//geom.createLabels(0, true);
360
                aux[0].setOrig(new Point2D.Double(r.getX(),r.getY()));
358 361
                aux[0].setHeight(size);
359 362
                aux[0].setRotation((int) rotation);
360 363
                aux[0].setString(vv[idTextField].toString());

Also available in: Unified diff