|
Revision 292, 1.2 kB
(checked in by migurski, 1 year ago)
|
Added Id keywords all over the place
|
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
/* |
|---|
| 2 |
* $Id$ |
|---|
| 3 |
*/ |
|---|
| 4 |
|
|---|
| 5 |
import com.modestmaps.geo.Location; |
|---|
| 6 |
|
|---|
| 7 |
class com.modestmaps.core.MapExtent |
|---|
| 8 |
{ |
|---|
| 9 |
public var north:Number; |
|---|
| 10 |
public var south:Number; |
|---|
| 11 |
public var east:Number; |
|---|
| 12 |
public var west:Number; |
|---|
| 13 |
|
|---|
| 14 |
public function MapExtent(n:Number, s:Number, e:Number, w:Number) |
|---|
| 15 |
{ |
|---|
| 16 |
north = n; |
|---|
| 17 |
south = s; |
|---|
| 18 |
east = e; |
|---|
| 19 |
west = w; |
|---|
| 20 |
} |
|---|
| 21 |
|
|---|
| 22 |
public function get northWest():Location |
|---|
| 23 |
{ |
|---|
| 24 |
return new Location(north, west); |
|---|
| 25 |
} |
|---|
| 26 |
|
|---|
| 27 |
public function get southWest():Location |
|---|
| 28 |
{ |
|---|
| 29 |
return new Location(south, west); |
|---|
| 30 |
} |
|---|
| 31 |
|
|---|
| 32 |
public function get northEast():Location |
|---|
| 33 |
{ |
|---|
| 34 |
return new Location(north, east); |
|---|
| 35 |
} |
|---|
| 36 |
|
|---|
| 37 |
public function get southEast():Location |
|---|
| 38 |
{ |
|---|
| 39 |
return new Location(south, east); |
|---|
| 40 |
} |
|---|
| 41 |
|
|---|
| 42 |
public function set northWest(NW:Location):Void |
|---|
| 43 |
{ |
|---|
| 44 |
north = NW.lat; |
|---|
| 45 |
west = NW.lon; |
|---|
| 46 |
} |
|---|
| 47 |
|
|---|
| 48 |
public function set southWest(SW:Location):Void |
|---|
| 49 |
{ |
|---|
| 50 |
south = SW.lat; |
|---|
| 51 |
west = SW.lon; |
|---|
| 52 |
} |
|---|
| 53 |
|
|---|
| 54 |
public function set northEast(NE:Location):Void |
|---|
| 55 |
{ |
|---|
| 56 |
north = NE.lat; |
|---|
| 57 |
east = NE.lon; |
|---|
| 58 |
} |
|---|
| 59 |
|
|---|
| 60 |
public function set southEast(SE:Location):Void |
|---|
| 61 |
{ |
|---|
| 62 |
south = SE.lat; |
|---|
| 63 |
east = SE.lon; |
|---|
| 64 |
} |
|---|
| 65 |
} |
|---|