|
Revision 292, 1.1 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.core.Coordinate; |
|---|
| 6 |
import com.modestmaps.mapproviders.IMapProvider; |
|---|
| 7 |
import com.stamen.twisted.DelayedCall; |
|---|
| 8 |
|
|---|
| 9 |
class com.modestmaps.core.TilePaintCall |
|---|
| 10 |
extends com.stamen.twisted.DelayedCall |
|---|
| 11 |
{ |
|---|
| 12 |
// Events |
|---|
| 13 |
public static var EVENT_CANCELLED : String = "TilePaintCall cancelled"; |
|---|
| 14 |
|
|---|
| 15 |
private var __call:DelayedCall; |
|---|
| 16 |
private var __mapProvider:IMapProvider; |
|---|
| 17 |
private var __tileCoord:Coordinate; |
|---|
| 18 |
|
|---|
| 19 |
public function TilePaintCall(call:DelayedCall, provider:IMapProvider, coord:Coordinate) |
|---|
| 20 |
{ |
|---|
| 21 |
__call = call; |
|---|
| 22 |
__mapProvider = provider; |
|---|
| 23 |
__tileCoord = coord; |
|---|
| 24 |
} |
|---|
| 25 |
|
|---|
| 26 |
public function toString():String |
|---|
| 27 |
{ |
|---|
| 28 |
return __mapProvider.toString() + ', ' + __tileCoord.toString(); |
|---|
| 29 |
} |
|---|
| 30 |
|
|---|
| 31 |
public function match(provider:IMapProvider, coord:Coordinate):Boolean |
|---|
| 32 |
{ |
|---|
| 33 |
return (__mapProvider == provider) |
|---|
| 34 |
&& (__tileCoord.toString() == coord.toString()); |
|---|
| 35 |
} |
|---|
| 36 |
|
|---|
| 37 |
public function pending():Boolean |
|---|
| 38 |
{ |
|---|
| 39 |
return __call.pending(); |
|---|
| 40 |
} |
|---|
| 41 |
|
|---|
| 42 |
public function cancel():Void |
|---|
| 43 |
{ |
|---|
| 44 |
__call.cancel(); |
|---|
| 45 |
} |
|---|
| 46 |
} |
|---|