1 package tim.prune.threedee;
4 * Holds the definition of the image to use
5 * (whether or not to use an image, and the source index and zoom)
7 public class ImageDefinition
9 private boolean _useImage = false;
10 private int _sourceIndex = 0;
11 private int _zoom = 0;
15 * Empty constructor specifying no image
17 public ImageDefinition()
24 * @param inUse true to use an image
25 * @param inSourceIndex index of map source
26 * @param inZoom zoom level
28 public ImageDefinition(boolean inUse, int inSourceIndex, int inZoom)
30 setUseImage(inUse, inSourceIndex, inZoom);
35 * @param inUse true to use an image
36 * @param inSourceIndex index of map source
37 * @param inZoom zoom level
39 public void setUseImage(boolean inUse, int inSourceIndex, int inZoom)
42 _sourceIndex = inSourceIndex;
47 * @return true if image should be used, false otherwise
49 public boolean getUseImage() {
50 return _useImage && _sourceIndex >= 0 && _zoom > 2;
54 * @return source index
56 public int getSourceIndex() {
63 public int getZoom() {