]> gitweb.fperrin.net Git - GpsPrune.git/blob - tim/prune/gui/map/MapTile.java
36a494d839954da4f169fa90c2f349238d163abd
[GpsPrune.git] / tim / prune / gui / map / MapTile.java
1 package tim.prune.gui.map;
2
3 import java.awt.Image;
4
5 /**
6  * Simple wrapper to hold an image for a map tile
7  * and a boolean flag to show whether it's expired or not
8  */
9 public class MapTile
10 {
11         /** Image or null if no image available */
12         private Image _image = null;
13         /** True if image expired, false if still fresh */
14         private boolean _expired = false;
15
16         /** Constructor */
17         public MapTile(Image inImage, boolean inExpired)
18         {
19                 _image = inImage;
20                 _expired = inExpired;
21         }
22
23         /** Get the image */
24         public Image getImage() {
25                 return _image;
26         }
27
28         /** Return true if image is too old */
29         public boolean isExpired() {
30                 return _expired;
31         }
32 }