Revision 23598 trunk/libraries/libAnimation/src/com/iver/cit/gvsig/animation/interval/AnimationDatedInterval.java
AnimationDatedInterval.java | ||
---|---|---|
1 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
|
2 |
* |
|
3 |
* Copyright (C) 2005 IVER T.I. and Generalitat Valenciana. |
|
4 |
* |
|
5 |
* This program is free software; you can redistribute it and/or |
|
6 |
* modify it under the terms of the GNU General Public License |
|
7 |
* as published by the Free Software Foundation; either version 2 |
|
8 |
* of the License, or (at your option) any later version. |
|
9 |
* |
|
10 |
* This program is distributed in the hope that it will be useful, |
|
11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 |
* GNU General Public License for more details. |
|
14 |
* |
|
15 |
* You should have received a copy of the GNU General Public License |
|
16 |
* along with this program; if not, write to the Free Software |
|
17 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA. |
|
18 |
*/ |
|
19 |
|
|
1 | 20 |
package com.iver.cit.gvsig.animation.interval; |
2 | 21 |
|
3 | 22 |
import java.sql.Date; |
... | ... | |
6 | 25 |
import java.util.Locale; |
7 | 26 |
|
8 | 27 |
import com.iver.cit.gvsig.animation.IAnimationType; |
9 |
import com.iver.cit.gvsig.animation.dateFilter.DateFilter; |
|
10 | 28 |
import com.iver.utiles.DateTime; |
11 | 29 |
import com.iver.utiles.IPersistence; |
12 | 30 |
import com.iver.utiles.XMLEntity; |
... | ... | |
23 | 41 |
|
24 | 42 |
private String sFormat = new String("Y-m-d"); |
25 | 43 |
|
26 |
private String className; |
|
27 |
|
|
28 | 44 |
static final SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy"); |
29 | 45 |
|
30 | 46 |
public Date getBeginDateInterval() { |
... | ... | |
74 | 90 |
|
75 | 91 |
public void setIntervalTime(double time) { |
76 | 92 |
// TODO generate method to calculate interval time |
77 |
|
|
78 | 93 |
} |
79 | 94 |
|
80 | 95 |
public void apply(double tini, double tend, IAnimationType animationType, |
... | ... | |
145 | 160 |
} |
146 | 161 |
|
147 | 162 |
public void setXMLEntity(XMLEntity xml) { |
148 |
|
|
149 |
if (xml.contains("class_name")) |
|
150 |
className = xml.getStringProperty("class_name"); |
|
151 | 163 |
if (xml.contains("begin_date")) |
152 | 164 |
beginDateString = xml.getStringProperty("begin_date"); |
153 | 165 |
if (xml.contains("end_date")) |
Also available in: Unified diff