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()
|
float
|
getWidth()
|
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
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
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
()
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
.