Revision 2623 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/impl/datastruct/DefaultSerialInfo.java

View differences:

DefaultSerialInfo.java
102 102
		}
103 103
	}
104 104
	
105
	/*
106
	 * (non-Javadoc)
107
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#getSerialName()
108
	 */
109 105
	public String getSerialName() {
110 106
		return serialName;
111 107
	}
112 108

  
113
	/*
114
	 * (non-Javadoc)
115
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#setSerialName(java.lang.String)
116
	 */
117 109
	public void setSerialName(String serialName) {
118 110
		this.serialName = serialName;
119 111
	}
120 112

  
121
	/*
122
	 * (non-Javadoc)
123
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#getTime()
124
	 */
125 113
	public ArrayList<?> getTime() {
126 114
		return dataType == DATE ? timeDate : timeNumeric ;
127 115
	}
128 116

  
129
	/*
130
	 * (non-Javadoc)
131
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#setTime(java.util.ArrayList)
132
	 */
133 117
	@SuppressWarnings("unchecked")
134 118
	public void setTime(ArrayList<?> time) {
135 119
		if(dataType == DATE)
......
138 122
			timeNumeric = (ArrayList<Double>)time;
139 123
	}
140 124

  
141
	/*
142
	 * (non-Javadoc)
143
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#getTimeType()
144
	 */
145 125
	public int getTimeType() {
146 126
		return timeType;
147 127
	}
148 128

  
149
	/*
150
	 * (non-Javadoc)
151
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#setTimeType(int)
152
	 */
153 129
	public void setTimeType(int timeType) {
154 130
		this.timeType = timeType;
155 131
	}
156 132
	
157
	/*
158
	 * (non-Javadoc)
159
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#getDataType()
160
	 */
161 133
	public int getDataType() {
162 134
		return dataType;
163 135
	}
164 136

  
165
	/*
166
	 * (non-Javadoc)
167
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#setDataType(int)
168
	 */
169 137
	public void setDataType(int dataType) {
170 138
		this.dataType = dataType;
171 139
	}
172 140
	
173
	/*
174
	 * (non-Javadoc)
175
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#setTimeType(java.lang.String)
176
	 */
177 141
	public void setTimeType(String timeType) {
178 142
		if(timeType.compareTo("Single values") == 0)
179 143
			this.timeType = 0;
......
181 145
			this.timeType = 1;
182 146
	}
183 147
	
184
	/*
185
	 * (non-Javadoc)
186
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#addDate(java.lang.String)
187
	 */
188 148
	public void addValue(String value) throws ParseException {
189 149
		this.dataType = DATE;
190 150
		SimpleDateFormat formatter = new SimpleDateFormat(timeFormat);
......
198 158
		this.timeDate.add(date);
199 159
	}
200 160
	
201
	/*
202
	 * (non-Javadoc)
203
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#addValue(double)
204
	 */
205 161
	public void addValue(double value) {
206 162
		this.dataType = NUMERIC;
207 163
		this.timeNumeric.add(new Double(value));
208 164
	}
209 165
	
210
	/*
211
	 * (non-Javadoc)
212
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#getTimeInfo(int)
213
	 */
214 166
	public String getTimeInfo(int pos) {
215 167
		if(dataType == DATE) {
216 168
			SimpleDateFormat formatter = new SimpleDateFormat(timeFormat);
......
222 174
		return null;
223 175
	}
224 176

  
225
	/*
226
	 * (non-Javadoc)
227
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#getDescription()
228
	 */
229 177
	public String getDescription() {
230 178
		return description;
231 179
	}
232 180

  
233
	/*
234
	 * (non-Javadoc)
235
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#setDescription(java.lang.String)
236
	 */
237 181
	public void setDescription(String description) {
238 182
		this.description = description;
239 183
	}
240 184
	
241
	/*
242
	 * (non-Javadoc)
243
	 * @see org.gvsig.fmap.dal.coverage.datastruct.TimeInfo#isInRange(org.gvsig.fmap.dal.coverage.datastruct.TimeInfo)
244
	 */
245 185
	public boolean isInRange(SerialInfo tInfo) {
246 186
		if(dataType == DATE) {
247 187
			return isInRangeDateType(tInfo);

Also available in: Unified diff