X-Git-Url: http://gitweb.fperrin.net/?p=GpsPrune.git;a=blobdiff_plain;f=tim%2Fprune%2Fgui%2Fmap%2FMapTile.java;fp=tim%2Fprune%2Fgui%2Fmap%2FMapTile.java;h=36a494d839954da4f169fa90c2f349238d163abd;hp=0000000000000000000000000000000000000000;hb=79f3ca2954d7feb6052c21b3aa974c89b2b101d6;hpb=c055cf54834e2e5c32276b5b354e777ee8a828c1 diff --git a/tim/prune/gui/map/MapTile.java b/tim/prune/gui/map/MapTile.java new file mode 100644 index 0000000..36a494d --- /dev/null +++ b/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; + } +}