Revision 21425 branches/v2_0_0_prep/libraries/libFMap_geometries/src/org/gvsig/fmap/geom/primitive/OrientablePrimitive2D.java

View differences:

OrientablePrimitive2D.java
69 69
 * @author Jorge Piera Llodr? (jorge.piera@iver.es)
70 70
 */
71 71
public abstract class OrientablePrimitive2D extends AbstractPrimitive implements OrientablePrimitive {
72
	
72

  
73 73
	private static final long serialVersionUID = 1L;
74 74
	protected GeneralPathX gp;
75
	
75

  
76 76
	/**
77 77
	 * TODO método creado para dar visibilidad a gp despues de la refactorización
78 78
	 * @return
......
80 80
	public GeneralPathX getGeneralPathX() {
81 81
		return gp;
82 82
	}
83
	
83

  
84 84
	/**
85 85
	 * Crea un nuevo FPolyline2D.
86 86
	 *
......
388 388
			gp.getPointCoords()[index*2+1]=y;
389 389
		}
390 390
	}
391
	
391

  
392 392
	/*
393 393
	 * (non-Javadoc)
394 394
	 * @see org.gvsig.geometries.iso.GM_Object#coordinateDimension()
......
396 396
	public int getCoordinateDimension() {
397 397
		return 2;
398 398
	}
399

  
400
	public Envelope getEnvelope() {
401
		Rectangle2D r=gp.getBounds2D();
402
		return new DefaultEnvelope(2,new double[]{r.getX(),r.getY()},new double[]{r.getMaxX(),r.getMaxY()});
403
	}
399 404
}

Also available in: Unified diff