~berthold-daum/zora/trunk

« back to all changes in this revision

Viewing changes to com.bdaum.zoom.gps/src/com/bdaum/zoom/gps/widgets/IMapComponent.java

  • Committer: bdaum
  • Date: 2015-12-26 10:21:51 UTC
  • Revision ID: berthold.daum@bdaum.de-20151226102151-44f1j5113167thb9
VersionĀ 2.4.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import com.bdaum.zoom.gps.CoordinatesListener;
29
29
import com.bdaum.zoom.gps.MaptypeChangedListener;
30
30
import com.bdaum.zoom.gps.geonames.Place;
 
31
import com.bdaum.zoom.ui.gps.Trackpoint;
31
32
 
32
33
public interface IMapComponent {
33
34
 
34
35
        /**
35
36
         * Creates the map component
36
 
         * 
 
37
         *
37
38
         * @param parent
38
39
         *            - parent container
 
40
         * @param header
 
41
         *            - true if a header with pin, explanation and search field is required
39
42
         */
40
 
        void createComponent(Composite parent);
 
43
        void createComponent(Composite parent, boolean header);
41
44
 
42
45
        /**
43
46
         * Display a location
48
51
         */
49
52
        int ADDLOCATION = -2;
50
53
        /**
 
54
         * Display a track
 
55
         */
 
56
        int TRACK = -3;
 
57
        /**
 
58
         * Display a track
 
59
         */
 
60
        int BLANK = -4;
 
61
        /**
51
62
         * No image with geo tags
52
63
         */
53
64
        int NONE = 0;
62
73
 
63
74
        /**
64
75
         * Sets input position and markers
65
 
         * 
 
76
         *
66
77
         * @param mapPosition
67
78
         *            - map position
68
79
         * @param initialZoomLevel
69
80
         *            - zoom level 1-14
70
81
         * @param markerPositions
71
82
         *            - marker positions
 
83
         * @param trackpoints
 
84
         *                        - trackpoints to display
72
85
         * @param mode
73
86
         *            - map mode
74
87
         */
75
88
        void setInput(Place mapPosition, int initialZoomLevel,
76
 
                        Place[] markerPositions, int mode);
 
89
                        Place[] markerPositions, Trackpoint[] trackpoints, int mode);
77
90
 
78
91
        /**
79
92
         * Add a progress listener
80
 
         * 
 
93
         *
81
94
         * @param listener
82
95
         *            - progress listener
83
96
         */
85
98
 
86
99
        /**
87
100
         * Add a status listener
88
 
         * 
 
101
         *
89
102
         * @param listener
90
103
         *            - progress listener
91
104
         */
93
106
 
94
107
        /**
95
108
         * Remove a progress listener
96
 
         * 
 
109
         *
97
110
         * @param listener
98
111
         *            - progress listener
99
112
         */
101
114
 
102
115
        /**
103
116
         * Remove a status listener
104
 
         * 
 
117
         *
105
118
         * @param listener
106
119
         *            - progress listener
107
120
         */
109
122
 
110
123
        /**
111
124
         * Set focus to composite control
112
 
         * 
 
125
         *
113
126
         * @return - true in case of success
114
127
         */
115
128
        boolean setFocus();
116
129
 
117
130
        /**
118
131
         * Return composite control
119
 
         * 
 
132
         *
120
133
         * @return composite control
121
134
         */
122
135
        Control getControl();
152
165
 
153
166
        /**
154
167
         * Sets the initial map type
155
 
         * 
 
168
         *
156
169
         * @param maptype
157
170
         *            - map type name
158
171
         */
163
176
         */
164
177
        void refresh();
165
178
 
 
179
 
166
180
}
 
 
b'\\ No newline at end of file'