Revision 7310 trunk/libraries/libCq CMS for java.old/src/org/cresques/cts/IProjection.java
IProjection.java | ||
---|---|---|
28 | 28 |
import java.awt.Color; |
29 | 29 |
import java.awt.Graphics2D; |
30 | 30 |
import java.awt.geom.Point2D; |
31 |
import java.awt.geom.Rectangle2D; |
|
31 | 32 |
|
32 | 33 |
|
33 | 34 |
/** |
... | ... | |
35 | 36 |
* @author "Luis W. Sevilla" (sevilla_lui@gva.es) |
36 | 37 |
*/ |
37 | 38 |
public interface IProjection { |
38 |
|
|
39 |
|
|
39 | 40 |
public IDatum getDatum(); |
40 | 41 |
|
41 | 42 |
public Point2D createPoint(double x, double y); |
... | ... | |
48 | 49 |
public void setGridColor(Color c); |
49 | 50 |
|
50 | 51 |
public Color getGridColor(); |
51 |
|
|
52 |
|
|
52 | 53 |
/** |
53 | 54 |
* Crea un ICoordTrans para transformar coordenadas |
54 | 55 |
* desde el IProjection actual al dest. |
55 | 56 |
* @param dest |
56 | 57 |
* @return |
57 | 58 |
*/ |
58 |
|
|
59 |
|
|
59 | 60 |
public ICoordTrans getCT(IProjection dest); |
60 | 61 |
|
61 | 62 |
public Point2D toGeo(Point2D pt); |
62 | 63 |
|
63 | 64 |
public Point2D fromGeo(Point2D gPt, Point2D mPt); |
64 |
|
|
65 |
|
|
65 | 66 |
public boolean isProjected(); |
66 | 67 |
|
67 | 68 |
public double getScale(double minX, double maxX, double width, double dpi); |
69 |
public Rectangle2D getExtent(Rectangle2D extent,double scale,double wImage,double hImage,double changeUnits,double dpi); |
|
68 | 70 |
} |
Also available in: Unified diff