org.freedesktop.cairo
public class Rectangle extends java.lang.Object
Constructor and Description |
---|
Rectangle()
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Rectangle(double x1,
double y1,
double x2,
double y2)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Rectangle(Point upperLeft,
Point lowerRight)
Deprecated.
Superceeded by java-gnome 4.0; this method or constant
will no doubt exist conceptually, but it may have a different
name or signature in order that the presented API is an
algorithmic mapping of the underlying native libraries.
|
Rectangle(Rectangle r) |
Modifier and Type | Method and Description |
---|---|
double |
getHeight() |
double |
getWidth() |
double |
getX() |
double |
getX1()
Deprecated.
This method is deprecated in favor of
getX() . |
double |
getX2()
Deprecated.
This method is deprecated in favor of
getWidth() . |
double |
getY() |
double |
getY1()
Deprecated.
This method is deprecated in favor of
getY() . |
double |
getY2()
Deprecated.
This method is deprecated in favor of
getHeight() . |
void |
setHeight(double height) |
void |
setOrigin(Point origin) |
void |
setSize(Point size) |
void |
setWidth(double width) |
void |
setX(double x) |
void |
setX1(double x1)
Deprecated.
This method is deprecated in favor of
setX(double) . |
void |
setX2(double x2)
Deprecated.
This method is deprecated in favor of
setWidth(double) . |
void |
setY(double y) |
void |
setY1(double y1)
Deprecated.
This method is deprecated in favor of
setY(double) . |
void |
setY2(double y2)
Deprecated.
This method is deprecated in favor of
setHeight(double) . |
public Rectangle(double x1, double y1, double x2, double y2)
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 rectanglepublic Rectangle(Point upperLeft, Point lowerRight)
upperLeft
- x coordinate of the upper-left point of the rectanglelowerRight
- y coordinate of the lower-right point of the rectanglepublic Rectangle()
public Rectangle(Rectangle r)
public double getWidth()
public void setWidth(double width)
public double getHeight()
public void setHeight(double height)
public void setSize(Point size)
public double getX()
public void setX(double x)
public double getY()
public void setY(double y)
public void setOrigin(Point origin)
public double getX1()
getX()
.getX()
public void setX1(double x1)
setX(double)
.setX(double)
public double getX2()
getWidth()
.getWidth()
public void setX2(double x2)
setWidth(double)
.setWidth(double)
public double getY1()
getY()
.getY()
public void setY1(double y1)
setY(double)
.setY(double)
public double getY2()
getHeight()
.getHeight()
public void setY2(double y2)
setHeight(double)
.setHeight(double)