Revision 40412

View differences:

branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/GeneralPathX.java
13 13
/**
14 14
 * 
15 15
 * This class is deprecated.
16
 * Use the API of Geometry to manipulate the geonetry,
16
 * Use the API of Geometry to manipulate the geometry,
17 17
 * 
18 18
 * @deprecated use the geometry methods
19 19
 */
......
44 44
    
45 45
    private GeneralPathX implementation = null;
46 46
    
47
    protected GeneralPathX(boolean nouse) {
48
    	super();
49
    }
50

  
51
    /**
52
     * @deprecated to create a GeneralPathX use GeometryManager.createGeneralPath
53
     */
47 54
    public GeneralPathX() {
48 55
    	this.implementation = GeometryLocator.getGeometryManager().createGeneralPath(WIND_EVEN_ODD, null);
49 56
    }
50 57

  
58
    /**
59
     * @deprecated to create a GeneralPathX use GeometryManager.createGeneralPath
60
     */
51 61
    public GeneralPathX(int rule) {
52 62
    	this.implementation = GeometryLocator.getGeometryManager().createGeneralPath(rule, null);
53 63
    }
54 64

  
65
    /**
66
     * @deprecated to create a GeneralPathX use GeometryManager.createGeneralPath
67
     */
55 68
    public GeneralPathX(int rule, int initialCapacity) {
56 69
    	this.implementation = GeometryLocator.getGeometryManager().createGeneralPath(rule, null);
57 70
    }
58 71

  
72
    /**
73
     * @deprecated to create a GeneralPathX use GeometryManager.createGeneralPath
74
     */
59 75
    public GeneralPathX(PathIterator pathIterator) {
60 76
    	this.implementation = GeometryLocator.getGeometryManager().createGeneralPath(WIND_EVEN_ODD, pathIterator);
61 77
    }
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/DefaultGeneralPathX.java
51 51
import java.awt.geom.PathIterator;
52 52
import java.awt.geom.Point2D;
53 53
import java.awt.geom.Rectangle2D;
54
import java.io.Serializable;
55 54
import java.util.ArrayList;
56 55
import java.util.List;
57 56

  
58
import com.vividsolutions.jts.algorithm.CGAlgorithms;
59
import com.vividsolutions.jts.geom.Coordinate;
60
import com.vividsolutions.jts.geom.CoordinateList;
61
import com.vividsolutions.jts.geom.CoordinateSequences;
62
import com.vividsolutions.jts.geom.impl.CoordinateArraySequence;
63

  
64 57
import org.cresques.cts.ICoordTrans;
65
import org.slf4j.Logger;
66
import org.slf4j.LoggerFactory;
67

  
68 58
import org.gvsig.fmap.geom.Geometry;
69 59
import org.gvsig.fmap.geom.GeometryLocator;
70 60
import org.gvsig.fmap.geom.GeometryManager;
71 61
import org.gvsig.fmap.geom.exception.CreateGeometryException;
72 62
import org.gvsig.jdk.GeomUtilities;
63
import org.slf4j.Logger;
64
import org.slf4j.LoggerFactory;
73 65

  
66
import com.vividsolutions.jts.algorithm.CGAlgorithms;
67
import com.vividsolutions.jts.geom.Coordinate;
68
import com.vividsolutions.jts.geom.CoordinateList;
69
import com.vividsolutions.jts.geom.CoordinateSequences;
70
import com.vividsolutions.jts.geom.impl.CoordinateArraySequence;
71

  
74 72
/**
75 73
 * The <code>GeneralPathX</code> class represents a geometric path
76 74
 * constructed from straight lines, and quadratic and cubic
......
117 115
    static final int EXPAND_MAX = 500;
118 116

  
119 117
    private  DefaultGeneralPathX() {
120
        this(WIND_EVEN_ODD);
118
    	super(true);
119
        setWindingRule(WIND_EVEN_ODD);
121 120
    }
122 121
    /**
123 122
     * Constructs a new <code>GeneralPathX</code> object with the specified
......
130 129
     * @see #WIND_NON_ZERO
131 130
     */
132 131
    public DefaultGeneralPathX(int rule) {
132
    	super(true);
133 133
        setWindingRule(rule);
134 134
    }
135 135

  

Also available in: Unified diff