public class

TileBoard.TileInfo

extends java.lang.Object

 java.lang.Object

↳androidx.pdf.util.TileBoard.TileInfo

Overview

Specifies one tile of the board, by coordinates (row, column) or index in a tiles matrix. Also offers information about dimensions and position of this tile.

Summary

Fields
protected final intmCol

protected final intmRow

Constructors
protectedTileInfo(int index)

Methods
public booleanbelongsTo(TileBoard board)

public booleanequals(java.lang.Object o)

public RectgetBounds()

Returns a new @link{Rect} matching the bounds of this tile.

public DimensionsgetExactSize()

Returns the exact size of this tile, cropped to the page's bounds.

public intgetIndex()

public PointgetOffset()

public DimensionsgetSize()

Returns the standard size of a tile.

public inthashCode()

public java.lang.StringtoString()

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait

Fields

protected final int mRow

protected final int mCol

Constructors

protected TileInfo(int index)

Methods

public boolean belongsTo(TileBoard board)

public int getIndex()

public Dimensions getSize()

Returns the standard size of a tile.

public Dimensions getExactSize()

Returns the exact size of this tile, cropped to the page's bounds.

public Point getOffset()

public Rect getBounds()

Returns a new @link{Rect} matching the bounds of this tile. The Rect is not linked to this tile anymore.

public boolean equals(java.lang.Object o)

public int hashCode()

public java.lang.String toString()