|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sencha.gxt.core.client.util.PreciseRectangle
public class PreciseRectangle
Represents a double precision area in a coordinate system.
| Constructor Summary | |
|---|---|
PreciseRectangle()
Creates a double precision rectangle. |
|
PreciseRectangle(double x,
double y,
double width,
double height)
Creates a double precision rectangle. |
|
PreciseRectangle(Rectangle rectangle)
Creates a double precision rectangle using the given Rectangle. |
|
| Method Summary | |
|---|---|
boolean |
contains(double x,
double y)
|
boolean |
contains(double x,
double y,
double tolerance)
Returns true if the point is within the rectangle's region. |
boolean |
contains(PrecisePoint p)
Returns true if the point is within the rectangle. |
boolean |
contains(PrecisePoint p,
double tolerance)
|
double |
getHeight()
Returns the height of the rectangle. |
double |
getWidth()
Returns the width of the rectangle. |
double |
getX()
Returns the x-coordinate of the rectangle. |
double |
getY()
Returns the y-coordinate of the rectangle. |
void |
setHeight(double height)
Sets the height of the rectangle. |
void |
setWidth(double width)
Sets the width of the rectangle. |
void |
setX(double x)
Sets the x-coordinate of the rectangle. |
void |
setY(double y)
Sets the y-coordinate of the rectangle. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PreciseRectangle()
public PreciseRectangle(double x,
double y,
double width,
double height)
x - the x-coordinate of the rectangley - the y-coordinate of the rectanglewidth - the width of the rectangleheight - the height of the rectanglepublic PreciseRectangle(Rectangle rectangle)
Rectangle.
rectangle - the rectangle to use as reference| Method Detail |
|---|
public boolean contains(double x,
double y,
double tolerance)
x - the x coordinate valuey - the y coordinate value
public boolean contains(PrecisePoint p)
p - the point
public boolean contains(PrecisePoint p,
double tolerance)
public boolean contains(double x,
double y)
public double getX()
public void setX(double x)
x - the x-coordinate of the rectanglepublic double getY()
public void setY(double y)
y - the y-coordinate of the rectanglepublic double getWidth()
public void setWidth(double width)
width - the width of the rectanglepublic double getHeight()
public void setHeight(double height)
height - the height of the rectanglepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||