LibreOffice Module android (master) 1
PanZoomController.java
Go to the documentation of this file.
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/. */
5
6package org.mozilla.gecko.gfx;
7
8import android.graphics.PointF;
9import android.view.MotionEvent;
10import android.view.View;
12
13interface PanZoomController {
14
15 class Factory {
16 static PanZoomController create(LibreOfficeMainActivity context, PanZoomTarget target, View view) {
17 return new JavaPanZoomController(context, target, view);
18 }
19 }
20
21 void destroy();
22
23 boolean onTouchEvent(MotionEvent event);
24 boolean onMotionEvent(MotionEvent event);
25 void notifyDefaultActionPrevented(boolean prevented);
26
27 boolean getRedrawHint();
28 PointF getVelocityVector();
29
30 void pageRectUpdated();
31 void abortPanning();
32 void abortAnimation();
33
34 void setOverScrollMode(int overscrollMode);
35 int getOverScrollMode();
36}
Main activity of the LibreOffice App.