X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=src%2Ftim%2Fprune%2Fgui%2Fmap%2FMapTile.java;fp=src%2Ftim%2Fprune%2Fgui%2Fmap%2FMapTile.java;h=36a494d839954da4f169fa90c2f349238d163abd;hp=0000000000000000000000000000000000000000;hb=ce6f2161b8596f7018d6a76bff79bc9e571f35fd;hpb=2d8cb72e84d5cc1089ce77baf1e34ea3ea2f8465 diff --git a/src/tim/prune/gui/map/MapTile.java b/src/tim/prune/gui/map/MapTile.java new file mode 100644 index 0000000..36a494d --- /dev/null +++ b/src/tim/prune/gui/map/MapTile.java @@ -0,0 +1,32 @@ +package tim.prune.gui.map; + +import java.awt.Image; + +/** + * Simple wrapper to hold an image for a map tile + * and a boolean flag to show whether it's expired or not + */ +public class MapTile +{ + /** Image or null if no image available */ + private Image _image = null; + /** True if image expired, false if still fresh */ + private boolean _expired = false; + + /** Constructor */ + public MapTile(Image inImage, boolean inExpired) + { + _image = inImage; + _expired = inExpired; + } + + /** Get the image */ + public Image getImage() { + return _image; + } + + /** Return true if image is too old */ + public boolean isExpired() { + return _expired; + } +}