LibreOffice Module android (master) 1
Public Member Functions | Public Attributes | List of all members
org.libreoffice.TileIdentifier Class Reference

Identifies the tile by its position (x and y coordinate on the document), zoom and tile size (currently static) More...

Collaboration diagram for org.libreoffice.TileIdentifier:
[legend]

Public Member Functions

 TileIdentifier (int x, int y, float zoom, IntSize size)
 
RectF getRectF ()
 Returns a rectangle of the tiles position in scaled coordinates. More...
 
RectF getCSSRectF ()
 Returns a rectangle of the tiles position in non-scaled coordinates (coordinates as the zoom would be 1). More...
 
Rect getCSSRect ()
 Returns an integer rectangle of the tiles position in non-scaled and rounded coordinates (coordinates as the zoom would be 1). More...
 
boolean equals (Object o)
 
int hashCode ()
 
String toString ()
 

Public Attributes

final int x
 
final int y
 
final float zoom
 
final IntSize size
 

Detailed Description

Identifies the tile by its position (x and y coordinate on the document), zoom and tile size (currently static)

Definition at line 19 of file TileIdentifier.java.

Constructor & Destructor Documentation

◆ TileIdentifier()

org.libreoffice.TileIdentifier.TileIdentifier ( int  x,
int  y,
float  zoom,
IntSize  size 
)
inline

Member Function Documentation

◆ equals()

boolean org.libreoffice.TileIdentifier.equals ( Object  o)
inline

◆ getCSSRect()

Rect org.libreoffice.TileIdentifier.getCSSRect ( )
inline

Returns an integer rectangle of the tiles position in non-scaled and rounded coordinates (coordinates as the zoom would be 1).

Definition at line 53 of file TileIdentifier.java.

References org.mozilla.gecko.gfx.IntSize.height, Rect, org.libreoffice.TileIdentifier.size, org.mozilla.gecko.gfx.IntSize.width, org.libreoffice.TileIdentifier.x, org.libreoffice.TileIdentifier.y, and org.libreoffice.TileIdentifier.zoom.

◆ getCSSRectF()

RectF org.libreoffice.TileIdentifier.getCSSRectF ( )
inline

Returns a rectangle of the tiles position in non-scaled coordinates (coordinates as the zoom would be 1).

Definition at line 42 of file TileIdentifier.java.

References org.mozilla.gecko.gfx.IntSize.height, org.libreoffice.TileIdentifier.size, org.mozilla.gecko.gfx.IntSize.width, org.libreoffice.TileIdentifier.x, org.libreoffice.TileIdentifier.y, and org.libreoffice.TileIdentifier.zoom.

◆ getRectF()

RectF org.libreoffice.TileIdentifier.getRectF ( )
inline

◆ hashCode()

int org.libreoffice.TileIdentifier.hashCode ( )
inline

◆ toString()

String org.libreoffice.TileIdentifier.toString ( )
inline

Member Data Documentation

◆ size

final IntSize org.libreoffice.TileIdentifier.size

◆ x

final int org.libreoffice.TileIdentifier.x

◆ y

final int org.libreoffice.TileIdentifier.y

◆ zoom

final float org.libreoffice.TileIdentifier.zoom

The documentation for this class was generated from the following file: