X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=android-libraries%2Fachartengine%2Fsrc%2Forg%2Fachartengine%2FITouchHandler.java;fp=android-libraries%2Fachartengine%2Fsrc%2Forg%2Fachartengine%2FITouchHandler.java;h=4debe9649324c2095ea7ea94ac44b1daf06ef7e8;hb=dfe153139b917cc91dddc1efa0298d4204616462;hp=0000000000000000000000000000000000000000;hpb=a2fe0ba2c348102bb0c6486b201be097523c2c9a;p=debian%2Fopenrocket diff --git a/android-libraries/achartengine/src/org/achartengine/ITouchHandler.java b/android-libraries/achartengine/src/org/achartengine/ITouchHandler.java new file mode 100644 index 00000000..4debe964 --- /dev/null +++ b/android-libraries/achartengine/src/org/achartengine/ITouchHandler.java @@ -0,0 +1,63 @@ +/** + * Copyright (C) 2009 - 2012 SC 4ViewSoft SRL + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.achartengine; + +import org.achartengine.tools.PanListener; +import org.achartengine.tools.ZoomListener; + +import android.view.MotionEvent; + +/** + * The interface to be implemented by the touch handlers. + */ +public interface ITouchHandler { + /** + * Handles the touch event. + * + * @param event the touch event + * @return true if the event was handled + */ + boolean handleTouch(MotionEvent event); + + /** + * Adds a new zoom listener. + * + * @param listener zoom listener + */ + void addZoomListener(ZoomListener listener); + + /** + * Removes a zoom listener. + * + * @param listener zoom listener + */ + void removeZoomListener(ZoomListener listener); + + /** + * Adds a new pan listener. + * + * @param listener pan listener + */ + void addPanListener(PanListener listener); + + /** + * Removes a pan listener. + * + * @param listener pan listener + */ + void removePanListener(PanListener listener); + +} \ No newline at end of file