Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/jfreechart/PolygonSeries.java @ 815:22c18083225e
Removed compiler warnings while JavaDoc generation.
gnv-artifacts/trunk@900 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 12 Apr 2010 06:59:33 +0000 |
parents | cdade5005cba |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
814:9d427dd2a96a | 815:22c18083225e |
---|---|
86 this.rings = rings; | 86 this.rings = rings; |
87 this.attributes = attributes; | 87 this.attributes = attributes; |
88 } | 88 } |
89 | 89 |
90 | 90 |
91 /** | |
92 * | |
93 * @param rings | |
94 */ | |
95 public void setRings(CompactXYItems [] rings) { | 91 public void setRings(CompactXYItems [] rings) { |
96 this.rings = rings; | 92 this.rings = rings; |
97 } | 93 } |
98 | 94 |
99 /** | 95 |
100 * | |
101 * @return | |
102 */ | |
103 public CompactXYItems [] getRings() { | 96 public CompactXYItems [] getRings() { |
104 return rings; | 97 return rings; |
105 } | 98 } |
106 | 99 |
107 /** | 100 |
108 * | |
109 * @param newRing | |
110 */ | |
111 public void addRing(CompactXYItems newRing) { | 101 public void addRing(CompactXYItems newRing) { |
112 if (rings == null) { | 102 if (rings == null) { |
113 rings = new CompactXYItems [] { newRing }; | 103 rings = new CompactXYItems [] { newRing }; |
114 } | 104 } |
115 else { | 105 else { |
118 nRings[rings.length] = newRing; | 108 nRings[rings.length] = newRing; |
119 rings = nRings; | 109 rings = nRings; |
120 } | 110 } |
121 } | 111 } |
122 | 112 |
123 /** | 113 |
124 * | |
125 * @param newRings | |
126 */ | |
127 public void addRings(CompactXYItems [] newRings) { | 114 public void addRings(CompactXYItems [] newRings) { |
128 if (newRings == null || newRings.length == 0) { | 115 if (newRings == null || newRings.length == 0) { |
129 return; | 116 return; |
130 } | 117 } |
131 if (rings == null || rings.length == 0) { | 118 if (rings == null || rings.length == 0) { |
138 System.arraycopy(newRings, 0, both, rings.length, newRings.length); | 125 System.arraycopy(newRings, 0, both, rings.length, newRings.length); |
139 rings = both; | 126 rings = both; |
140 } | 127 } |
141 } | 128 } |
142 | 129 |
143 /** | 130 |
144 * | |
145 * @param key | |
146 * @return | |
147 */ | |
148 public Object getAttribute(Object key) { | 131 public Object getAttribute(Object key) { |
149 return attributes.get(key); | 132 return attributes.get(key); |
150 } | 133 } |
151 | 134 |
152 | 135 |
153 /** | |
154 * | |
155 * @param key | |
156 * @param value | |
157 * @return | |
158 */ | |
159 public Object setAttribute(Object key, Object value) { | 136 public Object setAttribute(Object key, Object value) { |
160 return attributes.put(key, value); | 137 return attributes.put(key, value); |
161 } | 138 } |
162 | 139 |
163 | 140 |
164 /** | |
165 * | |
166 * @return | |
167 */ | |
168 public int getItemCount() { | 141 public int getItemCount() { |
169 return rings != null ? rings.length : 0; | 142 return rings != null ? rings.length : 0; |
170 } | 143 } |
171 | 144 |
172 | 145 |
173 /** | |
174 * | |
175 * @param idx | |
176 * @return | |
177 */ | |
178 public CompactXYItems getItem(int idx) { | 146 public CompactXYItems getItem(int idx) { |
179 return rings[idx]; | 147 return rings[idx]; |
180 } | 148 } |
181 | 149 |
182 | 150 |
183 /** | |
184 * | |
185 * @param key | |
186 * @return | |
187 */ | |
188 public Object removeAttribute(Object key) { | 151 public Object removeAttribute(Object key) { |
189 return attributes.remove(key); | 152 return attributes.remove(key); |
190 } | 153 } |
191 | 154 |
192 | 155 |
193 /** | |
194 * | |
195 * @param key | |
196 * @return | |
197 */ | |
198 public boolean hasAttribute(Object key) { | 156 public boolean hasAttribute(Object key) { |
199 return attributes.containsKey(key); | 157 return attributes.containsKey(key); |
200 } | 158 } |
201 | 159 |
202 | 160 |