Debian Codegraph @

src/uk/me/parabola/imgfmt/app/trergn/SubdivData.java

raw symbols SCIP
1 /*
2 * Copyright (C) 2009.
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 3 or
6 * version 2 as published by the Free Software Foundation.
7 *
8 * This program is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 * General Public License for more details.
12 */
13
14 package uk.me.parabola.imgfmt.app.trergn;
15
16 /**
17 * Used to initialise a subdivision when we are reading it from a file,
18 * rather than creating it out of thin air.
19 */
20 public class SubdivData {
21 private final int flags;
22 private final int lat;
23 private final int lon;
24 private final int width;
25 private final int height;
26 private final int rgnPointer;
27 private final int endRgnOffset;
28
29 public SubdivData(int flags, int lat, int lon, int width, int height, int rgnPointer, int endRgnOffset) {
30 this.flags = flags;
31 this.lat = lat;
32 this.lon = lon;
33 this.width = width;
34 this.height = height;
35 this.rgnPointer = rgnPointer;
36 this.endRgnOffset = endRgnOffset;
37 }
38
39 public int getFlags() {
40 return flags;
41 }
42
43 public int getLat() {
44 return lat;
45 }
46
47 public int getLon() {
48 return lon;
49 }
50
51 public int getWidth() {
52 return width;
53 }
54
55 public int getHeight() {
56 return height;
57 }
58
59 public int getRgnPointer() {
60 return rgnPointer;
61 }
62
63 public int getEndRgnOffset() {
64 return endRgnOffset;
65 }
66 }