~ubuntu-branches/ubuntu/oneiric/mkgmap/oneiric

« back to all changes in this revision

Viewing changes to src/uk/me/parabola/imgfmt/app/trergn/MapObject.java

  • Committer: Bazaar Package Importer
  • Author(s): Francesco Paolo Lovergine, Andreas Putzo, Francesco Paolo Lovergine
  • Date: 2009-07-16 11:10:16 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20090716111016-yycxqya1f26xmti7
Tags: 0.0.0+svn1067-1
[ Andreas Putzo ]
* New upstream snapshot.
* Added ${misc:Depends} among dependencies to fix a lintian warning.
* Bumped debhelper compatibility level to 7.
* Updated long description.
* Updated Homepage in debian/control, debian/copyright, debian/watch.
* Added numerous files from /doc to debian/docs.
* Mentioned Bernhard Heibler in debian/copyright and updated copyright
  year of software and packaging.
* Bumped policy to 3.8.2, without changes.
* Added DM-Upload-Allowed to debian/control.

[ Francesco Paolo Lovergine ]
* Added me as Uploader to avoid possible inappropriate NMU notices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
package uk.me.parabola.imgfmt.app.trergn;
18
18
 
19
19
import uk.me.parabola.imgfmt.app.Label;
20
 
import uk.me.parabola.imgfmt.app.WriteStrategy;
 
20
import uk.me.parabola.imgfmt.app.ImgFileWriter;
 
21
 
 
22
import java.util.ArrayList;
 
23
import java.util.List;
21
24
 
22
25
/**
23
26
 * An object that appears in a map.  One of point, polyline, polygon or indexed
35
38
        // the division.
36
39
        private Subdivision subdiv;
37
40
 
38
 
        // The lable for this object
 
41
        // The label(s) for this object
39
42
        private Label label;
 
43
        private List<Label> refLabels;
40
44
 
41
45
        // The type of road etc.
42
46
        private int type;
51
55
         *
52
56
         * @param file The file to write to. It is usually the RGN file.
53
57
         */
54
 
        public abstract void write(WriteStrategy file);
 
58
        public abstract void write(ImgFileWriter file);
55
59
 
56
60
        int getDeltaLat() {
57
61
                return deltaLat;
65
69
                this.label = label;
66
70
        }
67
71
 
 
72
        public void addRefLabel(Label refLabel) {
 
73
                if(refLabels == null)
 
74
                        refLabels = new ArrayList<Label>();
 
75
                refLabels.add(refLabel);
 
76
        }
 
77
 
68
78
        protected int getType() {
69
79
                return type;
70
80
        }
126
136
        protected Label getLabel() {
127
137
                return label;
128
138
        }
 
139
 
 
140
        public List<Label> getRefLabels() {
 
141
                return refLabels;
 
142
        }
129
143
}