| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.freedesktop.cairo.Rectanglepublic class Rectangleextends java.lang.ObjectConstructor Summary | |
| |
| |
Method Summary | |
double | |
double |
|
double |
|
double | |
double |
|
double |
|
double | |
double |
|
void |
|
void | |
void | |
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
void |
|
public Rectangle()
Constructs a new Rectangle object with position and size set to 0.
public Rectangle(double x1,
double y1,
double x2,
double y2)Constructs a new Rectangle object defined by four bounding coordinates, (x1, y1) and (x2, y2)
- Parameters:
x1- x coordinate of the upper-left point of the rectangley1- y coordinate of the upper-left point of the rectanglex2- x coordinate of the lower-right point of the rectangley2- y coordinate of the lower-right point of the rectangle
public Rectangle(Point upperLeft, Point lowerRight)
Constructs a new Rectangle object defined by two Point objects, which specify the upper-left and lower-right coordinates of the rectangle
- Parameters:
upperLeft- x coordinate of the upper-left point of the rectanglelowerRight- y coordinate of the lower-right point of the rectangle
public double getHeight()
public double getWidth()
public double getX()
public double getX2()
Deprecated. This method is deprecated in favor of
getWidth().
- See Also:
getWidth()
public double getY()
public double getY2()
Deprecated. This method is deprecated in favor of
getHeight().
- See Also:
getHeight()
public void setHeight(double height)
public void setWidth(double width)
public void setX(double x)
public void setX1(double x1)
Deprecated. This method is deprecated in favor of
setX(double).
- See Also:
setX(double)
public void setX2(double x2)
Deprecated. This method is deprecated in favor of
setWidth(double).
- See Also:
setWidth(double)
public void setY(double y)
public void setY1(double y1)
Deprecated. This method is deprecated in favor of
setY(double).
- See Also:
setY(double)
public void setY2(double y2)
Deprecated. This method is deprecated in favor of
setHeight(double).
- See Also:
setHeight(double)