public class

Rect

extends Object
java.lang.Object
   ↳ com.pspdfkit.api.basic.Rect

Class Overview

A Rect specifies an area in a coordinate space that is enclosed by the Rect object's lower-left point (x,y) in the coordinate space, its width, and its height.

Summary

Public Constructors
Rect(float x, float y, float width, float height)
Constructs a new Rect whose lower-left corner is specified as (x,y) and whose width and height are specified by the arguments of the same name.
Public Methods
float getHeight()
The height of the Rect.
float getWidth()
The width of the Rect.
float getX()
The X coordinate of the lower-left corner of the Rect.
float getY()
The Y coordinate of the lower-left corner of the Rect.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Rect (float x, float y, float width, float height)

Constructs a new Rect whose lower-left corner is specified as (x,y) and whose width and height are specified by the arguments of the same name.

Parameters
x the specified X coordinate
y the specified Y coordinate
width the width of the Rect
height the height of the Rect

Public Methods

public float getHeight ()

The height of the Rect.

Returns
  • the height of the Rect.

public float getWidth ()

The width of the Rect.

Returns
  • the width of the Rect.

public float getX ()

The X coordinate of the lower-left corner of the Rect.

Returns
  • the X coordinate of the lower-left corner of the Rect.

public float getY ()

The Y coordinate of the lower-left corner of the Rect.

Returns
  • the Y coordinate of the lower-left corner of the Rect.