Revision 11756 branches/v10/extensions/extAnnotations/src/com/iver/cit/gvsig/fmap/layers/Annotation_Layer.java

View differences:

Annotation_Layer.java
994 994
        Point2D p = null;
995 995
        // FLabel[] lbls = geom.createLabels(0, true);
996 996
        Rectangle2D r=geom.getBounds2D();
997
       	p=new Point2D.Double(r.getCenterX(),r.getCenterY());
997
        if (geom.getInternalShape() instanceof FPolygon2D){
998
        	r=new Rectangle2D.Double(r.getX()-r.getWidth()/2,r.getY()-r.getHeight()/2,r.getWidth(),r.getHeight());
999
        }
1000
        p=new Point2D.Double(r.getCenterX(),r.getCenterY());
998 1001

  
999 1002
        // assuming FShape is a point with the starting position of the text
1000 1003
        // Font font = symbol.getFont();

Also available in: Unified diff