2 * Copyright (C) 2009 - 2012 SC 4ViewSoft SRL
\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
8 * http://www.apache.org/licenses/LICENSE-2.0
\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
16 package org.achartengine;
\r
18 import org.achartengine.tools.PanListener;
\r
19 import org.achartengine.tools.ZoomListener;
\r
21 import android.view.MotionEvent;
\r
24 * The interface to be implemented by the touch handlers.
\r
26 public interface ITouchHandler {
\r
28 * Handles the touch event.
\r
30 * @param event the touch event
\r
31 * @return true if the event was handled
\r
33 boolean handleTouch(MotionEvent event);
\r
36 * Adds a new zoom listener.
\r
38 * @param listener zoom listener
\r
40 void addZoomListener(ZoomListener listener);
\r
43 * Removes a zoom listener.
\r
45 * @param listener zoom listener
\r
47 void removeZoomListener(ZoomListener listener);
\r
50 * Adds a new pan listener.
\r
52 * @param listener pan listener
\r
54 void addPanListener(PanListener listener);
\r
57 * Removes a pan listener.
\r
59 * @param listener pan listener
\r
61 void removePanListener(PanListener listener);
\r