Revision 31656
trunk/libraries/libTopology/.classpath | ||
---|---|---|
24 | 24 |
<classpathentry kind="lib" path="lib/jai_core.jar"/> |
25 | 25 |
<classpathentry kind="lib" path="/libFMap/lib/vecmath-1.3.jar"/> |
26 | 26 |
<classpathentry kind="lib" path="/libFMap/lib/jts-1.9.jar"/> |
27 |
<classpathentry kind="lib" path="/libFMap/lib/geoutils.jar"/> |
|
27 | 28 |
<classpathentry kind="output" path="bin"/> |
28 | 29 |
</classpath> |
trunk/libraries/libTopology/src/com/graphbuilder/curve/ShapeMultiPath.java | ||
---|---|---|
3 | 3 |
import java.awt.*; |
4 | 4 |
import java.awt.geom.*; |
5 | 5 |
import com.graphbuilder.geom.Geom; |
6 |
import sun.awt.geom.Curve; |
|
7 | 6 |
|
8 | 7 |
/** |
9 | 8 |
The ShapeMultiPath is-a MultiPath and implements the java.awt.Shape interface. |
... | ... | |
215 | 214 |
Returns true if the point is contained inside the shape. Otherwise false is returned. |
216 | 215 |
*/ |
217 | 216 |
public boolean contains(double x, double y) { |
218 |
int cross = Curve.crossingsForPath(getPathIterator(null), x, y);
|
|
217 |
int cross = org.gvsig.geoutils.sun.awt.geom.Curve.pointCrossingsForPath(getPathIterator(null), x, y);
|
|
219 | 218 |
|
220 | 219 |
if (windingRule == PathIterator.WIND_NON_ZERO) |
221 | 220 |
return cross != 0; |
Also available in: Unified diff