root / branches / Mobile_Compatible_Hito_1 / libFMap / src / es / prodevelop / gvsig / mobile / fmap / driver / raster / tile / RemoteTile.java @ 21606
History | View | Annotate | Download (1.19 KB)
1 | 21606 | jldominguez | package es.prodevelop.gvsig.mobile.fmap.driver.raster.tile; |
---|---|---|---|
2 | |||
3 | import java.awt.geom.Rectangle2D; |
||
4 | import java.net.URL; |
||
5 | |||
6 | import org.apache.log4j.Logger; |
||
7 | |||
8 | /**
|
||
9 | * This interface must be implemented by all tile objects.
|
||
10 | *
|
||
11 | * @author jldominguez
|
||
12 | *
|
||
13 | */
|
||
14 | public abstract class RemoteTile implements Cloneable { |
||
15 | |||
16 | public static double SEMI_EQUATOR_LENGTH = 180.0; |
||
17 | |||
18 | protected static Logger logger = Logger.getLogger(RemoteTile.class); |
||
19 | |||
20 | public static final int PATH_TYPE_LEFT_TOP = 0; |
||
21 | public static final int PATH_TYPE_QUAD_TREE = 1; |
||
22 | |||
23 | protected Rectangle2D.Double extent = null; |
||
24 | |||
25 | protected RemoteTile() { }
|
||
26 | |||
27 | /**
|
||
28 | * Gets path location.
|
||
29 | *
|
||
30 | * @return
|
||
31 | */
|
||
32 | public abstract URL getURL(); |
||
33 | // {
|
||
34 | //
|
||
35 | // URL resp = null;
|
||
36 | //
|
||
37 | // switch (pathType) {
|
||
38 | // case PATH_TYPE_LEFT_TOP:
|
||
39 | // resp = new URL();
|
||
40 | // break;
|
||
41 | //
|
||
42 | // case PATH_TYPE_QUAD_TREE:
|
||
43 | // resp = new URL();
|
||
44 | // break;
|
||
45 | // }
|
||
46 | //
|
||
47 | // logger.error("Unknown tile path type: " + pathType);
|
||
48 | // return null;
|
||
49 | // }
|
||
50 | |||
51 | public abstract RemoteTile getParentTile(); |
||
52 | public abstract RemoteTile getTileToTheEast(); |
||
53 | public abstract RemoteTile getTileToTheSouth(); |
||
54 | |||
55 | public Rectangle2D getExtent() { |
||
56 | return extent;
|
||
57 | } |
||
58 | |||
59 | public abstract Object clone(); |
||
60 | |||
61 | } |