1 /* -*- Mode: Java; c-basic-offset: 4; tab-width: 20; indent-tabs-mode: nil; -*-
2 * This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 package org
.mozilla
.gecko
.gfx
;
8 import android
.graphics
.PointF
;
9 import android
.view
.MotionEvent
;
10 import android
.view
.View
;
11 import org
.libreoffice
.LibreOfficeMainActivity
;
13 interface PanZoomController
{
16 static PanZoomController
create(LibreOfficeMainActivity context
, PanZoomTarget target
, View view
) {
17 return new JavaPanZoomController(context
, target
, view
);
23 boolean onTouchEvent(MotionEvent event
);
24 boolean onMotionEvent(MotionEvent event
);
25 void notifyDefaultActionPrevented(boolean prevented
);
27 boolean getRedrawHint();
28 PointF
getVelocityVector();
30 void pageRectUpdated();
32 void abortAnimation();
34 void setOverScrollMode(int overscrollMode
);
35 int getOverScrollMode();