root/trunk/ArialMap.java
| Revision 3, 0.6 kB (checked in by dpaola2, 1 week ago) |
|---|
| Line | |
|---|---|
| 1 | /** |
| 2 | * UiucMap.java |
| 3 | * |
| 4 | * This is a very specific implementation of a TiledMap which is perfect for |
| 5 | * making a map out of images in the form |
| 6 | * |
| 7 | * images/uiucmap/(row as a letter)(column as a non-padded number) |
| 8 | * |
| 9 | * scale of 1.17 m/px. (source for scale: 3130px=3.67km) |
| 10 | * |
| 11 | * For the first time in code, "real" coordinates are in meters. |
| 12 | */ |
| 13 | |
| 14 | import java.awt.geom.*; |
| 15 | import java.net.*; |
| 16 | |
| 17 | public class ArialMap extends TiledMap { |
| 18 | |
| 19 | public ArialMap() { |
| 20 | super(20, 18, 200, 200, AffineTransform.getScaleInstance(1.17,1.17)); |
| 21 | setTreeUri("images/arialmap/"); |
| 22 | setExtension("jpg"); |
| 23 | } |
| 24 | } |
Note: See TracBrowser for help on using the browser.
