public class Rectangle


Simple rect class

Summary

Public fields

int
int
int
int

Public constructors

Public methods

boolean
contains(int x, int y)
int
int
void
setBounds(int x, int y, int width, int height)

Public fields

height

Added in 1.1.0
public int height

width

Added in 1.1.0
public int width

x

Added in 1.1.0
public int x

y

Added in 1.1.0
public int y

Public constructors

Rectangle

Added in 1.1.0
public Rectangle()

Public methods

contains

Added in 1.1.0
public boolean contains(int x, int y)

getCenterX

Added in 1.1.0
public int getCenterX()

getCenterY

Added in 1.1.0
public int getCenterY()

setBounds

Added in 1.1.0
public void setBounds(int x, int y, int width, int height)