Revision 43156 trunk/org.gvsig.desktop/org.gvsig.desktop.library/org.gvsig.symbology/org.gvsig.symbology.lib/org.gvsig.symbology.lib.impl/src/main/java/org/gvsig/symbology/fmap/mapcontext/rendering/legend/styling/TextPath.java

View differences:

TextPath.java
21 21
 * For any additional information, do not hesitate to contact us
22 22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23 23
 */
24
/* CVS MESSAGES:
25
 *
26
 * $Id: TextPath.java 25636 2008-12-01 08:42:11Z vcaballero $
27
 * $Log$
28
 * Revision 1.2  2007-03-09 11:20:57  jaume
29
 * Advanced symbology (start committing)
30
 *
31
 * Revision 1.1.2.3  2007/02/21 07:34:09  jaume
32
 * labeling starts working
33
 *
34
 * Revision 1.1.2.2  2007/02/09 07:47:05  jaume
35
 * Isymbol moved
36
 *
37
 * Revision 1.1.2.1  2007/02/06 17:01:04  jaume
38
 * first version (only lines)
39
 *
40
 *
41
 */
42 24
package org.gvsig.symbology.fmap.mapcontext.rendering.legend.styling;
43 25

  
44 26
import java.awt.Font;
......
47 29
import java.awt.font.GlyphVector;
48 30
import java.awt.geom.Point2D;
49 31

  
50
import org.apache.batik.ext.awt.geom.PathLength;
32
import org.apache.batik.ext.awt.geom.DefaultPathLength;
51 33
import org.gvsig.fmap.geom.Geometry;
52 34
import org.gvsig.fmap.geom.Geometry.SUBTYPES;
53 35
import org.gvsig.fmap.geom.GeometryLocator;
......
60 42
import org.slf4j.LoggerFactory;
61 43

  
62 44
import com.vividsolutions.jts.algorithm.Angle;
45
import org.gvsig.symbology.PathLength;
63 46
/**
64 47
 * <p>Class that represents baseline of a string and allows the baseline to
65 48
 * be composed as contiguous segments with distinct slope each.<br></p>
......
68 51
 * the character at a determined position in the string is placed and
69 52
 * rotated.<br></p>
70 53
 *
71
 * @author jaume dominguez faus - jaume.dominguez@iver.es
72
 *
73 54
 */
74 55
public class TextPath {
75 56
	private static final GeometryManager geomManager = GeometryLocator.getGeometryManager();
......
145 126

  
146 127
		PathLength pl;
147 128
		try {
148
			pl = new PathLength(softenShape(path, gv).getShape());
129
			pl = new DefaultPathLength(softenShape(path, gv).getShape());
149 130
			if (alignment==ITextSymbol.SYMBOL_STYLE_ALIGNMENT_RIGHT) {
150 131
				posList = computeAtRight(gv, pl, text);
151 132
			}
......
164 145

  
165 146
		float interval = (float) gv.getVisualBounds().getWidth()/(gv.getNumGlyphs()*3);
166 147

  
167
		PathLength pl = new PathLength(shape.getShape());
148
		PathLength pl = new DefaultPathLength(shape.getShape());
168 149
		if (pl.lengthOfPath()==0.0f) {
169 150
			return shape; 
170 151
		}

Also available in: Unified diff