public class PointRect extends Object
Modifier and Type | Field and Description |
---|---|
double |
height |
double |
width |
double |
x |
double |
y |
Constructor and Description |
---|
PointRect() |
PointRect(double x,
double y) |
PointRect(double x,
double y,
double width,
double height) |
Modifier and Type | Method and Description |
---|---|
PointRect |
cache() |
PointRect |
getAddition(PointRect r2,
PointRect dest) |
static PointRect |
getCached() |
static PointRect |
getCached(double x,
double y,
double width,
double height) |
PointRect |
getIntersection(PointRect r,
PointRect dest) |
boolean |
isWithin(double x,
double y,
double width,
double height)
Returns true if the specified rectangle in Points intersects with this PageRect.
|
PointRect |
set(double x,
double y)
Sets the x and y of this PointRect, the others are set to zero and returns itself.
|
PointRect |
set(double x,
double y,
double width,
double height)
Sets the dimensions of this PointRect and returns itself.
|
String |
toString()
Return a String representation of this object.
|
public double x
public double y
public double width
public double height
public PointRect()
public PointRect(double x, double y)
public PointRect(double x, double y, double width, double height)
public PointRect set(double x, double y, double width, double height)
public PointRect set(double x, double y)
public boolean isWithin(double x, double y, double width, double height)
x
- the x co-ordinate in Points (1/72 of an inch).y
- the y co-ordinate in Points (1/72 of an inch).width
- the width in Points (1/72 of an inch).height
- the height in Points (1/72 of an inch).public String toString()
Object
public static PointRect getCached()
public static PointRect getCached(double x, double y, double width, double height)
public PointRect cache()