9package org.libreoffice;
11import android.graphics.Rect;
12import android.graphics.RectF;
43 float cssX =
x /
zoom;
44 float cssY =
y /
zoom;
47 return new RectF(cssX, cssY, cssX + cssSizeW, cssY + cssSizeH);
54 float cssX =
x /
zoom;
55 float cssY =
y /
zoom;
59 (
int) cssX, (
int) cssY,
61 (
int) (cssY + sizeH) );
66 if (
this == o)
return true;
67 if (o ==
null ||
getClass() != o.getClass())
return false;
71 if (
x != that.
x)
return false;
72 if (
y != that.
y)
return false;
Identifies the tile by its position (x and y coordinate on the document), zoom and tile size (current...
RectF getRectF()
Returns a rectangle of the tiles position in scaled coordinates.
RectF getCSSRectF()
Returns a rectangle of the tiles position in non-scaled coordinates (coordinates as the zoom would be...
Rect getCSSRect()
Returns an integer rectangle of the tiles position in non-scaled and rounded coordinates (coordinates...
TileIdentifier(int x, int y, float zoom, IntSize size)
PyRef getClass(const OUString &name, const Runtime &runtime)