Revision 39096
branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/impl/OrientablePrimitive2D.java | ||
---|---|---|
400 | 400 |
return gp.getNumCoords(); |
401 | 401 |
} |
402 | 402 |
|
403 |
public void addVertex(Point point) { |
|
404 |
gp.lineTo(point); |
|
403 |
public void addVertex(Point point) { |
|
404 |
if( this.getNumVertices()== 0 ) { |
|
405 |
gp.moveTo(point); |
|
406 |
} else { |
|
407 |
gp.lineTo(point); |
|
408 |
} |
|
405 | 409 |
} |
406 | 410 |
|
407 | 411 |
public void addMoveToVertex(Point point) { |
... | ... | |
413 | 417 |
} |
414 | 418 |
|
415 | 419 |
public void setVertex(int index, Point p) { |
416 |
throw new UnsupportedOperationException("Use setGeneralPathX");
|
|
420 |
throw new UnsupportedOperationException("Method not implemented");
|
|
417 | 421 |
} |
418 | 422 |
|
419 | 423 |
public Point getVertex(int index) { |
Also available in: Unified diff