create changelog entry
[debian/openrocket] / android-libraries / achartengine / src / org / achartengine / ITouchHandler.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;\r
17 \r
18 import org.achartengine.tools.PanListener;\r
19 import org.achartengine.tools.ZoomListener;\r
20 \r
21 import android.view.MotionEvent;\r
22 \r
23 /**\r
24  * The interface to be implemented by the touch handlers.\r
25  */\r
26 public interface ITouchHandler {\r
27   /**\r
28    * Handles the touch event.\r
29    * \r
30    * @param event the touch event\r
31    * @return true if the event was handled\r
32    */\r
33   boolean handleTouch(MotionEvent event);\r
34   \r
35   /**\r
36    * Adds a new zoom listener.\r
37    * \r
38    * @param listener zoom listener\r
39    */\r
40   void addZoomListener(ZoomListener listener);\r
41 \r
42   /**\r
43    * Removes a zoom listener.\r
44    * \r
45    * @param listener zoom listener\r
46    */\r
47   void removeZoomListener(ZoomListener listener);\r
48   \r
49   /**\r
50    * Adds a new pan listener.\r
51    * \r
52    * @param listener pan listener\r
53    */\r
54   void addPanListener(PanListener listener);\r
55 \r
56   /**\r
57    * Removes a pan listener.\r
58    * \r
59    * @param listener pan listener\r
60    */\r
61   void removePanListener(PanListener listener);\r
62 \r
63 }