create changelog entry
[debian/openrocket] / android-libraries / achartengine / src / org / achartengine / model / TimeSeries.java
1 /**\r
2  * Copyright (C) 2009 - 2012 SC 4ViewSoft SRL\r
3  *  \r
4  * Licensed under the Apache License, Version 2.0 (the "License");\r
5  * you may not use this file except in compliance with the License.\r
6  * You may obtain a copy of the License at\r
7  *  \r
8  *      http://www.apache.org/licenses/LICENSE-2.0\r
9  *  \r
10  * Unless required by applicable law or agreed to in writing, software\r
11  * distributed under the License is distributed on an "AS IS" BASIS,\r
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
13  * See the License for the specific language governing permissions and\r
14  * limitations under the License.\r
15  */\r
16 package org.achartengine.model;\r
17 \r
18 import java.util.Date;\r
19 \r
20 /**\r
21  * A series for the date / time charts.\r
22  */\r
23 public class TimeSeries extends XYSeries {\r
24 \r
25   /**\r
26    * Builds a new date / time series.\r
27    * \r
28    * @param title the series title\r
29    */\r
30   public TimeSeries(String title) {\r
31     super(title);\r
32   }\r
33 \r
34   /**\r
35    * Adds a new value to the series.\r
36    * \r
37    * @param x the date / time value for the X axis\r
38    * @param y the value for the Y axis\r
39    */\r
40   public synchronized void add(Date x, double y) {\r
41     super.add(x.getTime(), y);\r
42   }\r
43 }\r