/* * Copyright (C) 2012 www.amsoft.cn * * 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 com.ab.view.chart; import android.view.MotionEvent; // TODO: Auto-generated Javadoc /** * 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); /** * 控制器的滑动事件. * * @param event the touch event * @return true if the event was handled */ boolean handleTouchControl(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); }