LibreOffice Module android (master) 1
DynamicTileLayer.java
Go to the documentation of this file.
1package org.mozilla.gecko.gfx;
2
3import android.content.Context;
4import android.graphics.RectF;
5
6public class DynamicTileLayer extends ComposedTileLayer {
7 public DynamicTileLayer(Context context) {
8 super(context);
9 }
10
11 @Override
12 protected RectF getViewPort(ImmutableViewportMetrics viewportMetrics) {
13 RectF rect = viewportMetrics.getViewport();
15 }
16
17 @Override
18 protected float getZoom(ImmutableViewportMetrics viewportMetrics) {
19 return viewportMetrics.zoomFactor;
20 }
21
22 @Override
23 protected int getTilePriority() {
24 return 0;
25 }
26
28 return new IntSize(tileSize.width*2, tileSize.height*4);
29 }
30}
static RectF roundToTileSize(RectF input, IntSize tileSize)
static RectF inflate(RectF rect, IntSize inflateSize)
RectF getViewPort(ImmutableViewportMetrics viewportMetrics)
float getZoom(ImmutableViewportMetrics viewportMetrics)
ImmutableViewportMetrics are used to store the viewport metrics in way that we can access a version o...