org.freedesktop.cairo
Class Rectangle

java.lang.Object
  extended by org.freedesktop.cairo.Rectangle

public class Rectangle
extends java.lang.Object


Constructor Summary
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)
           
 
Method Summary
 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).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Rectangle

public 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.

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 rectangle
y1 - y coordinate of the upper-left point of the rectangle
x2 - x coordinate of the lower-right point of the rectangle
y2 - y coordinate of the lower-right point of the rectangle

Rectangle

public 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.

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 rectangle
lowerRight - y coordinate of the lower-right point of the rectangle

Rectangle

public 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.

Constructs a new Rectangle object with position and size set to 0.


Rectangle

public Rectangle(Rectangle r)
Method Detail

getWidth

public double getWidth()

setWidth

public void setWidth(double width)

getHeight

public double getHeight()

setHeight

public void setHeight(double height)

setSize

public void setSize(Point size)

getX

public double getX()

setX

public void setX(double x)

getY

public double getY()

setY

public void setY(double y)

setOrigin

public void setOrigin(Point origin)

getX1

public double getX1()
Deprecated. This method is deprecated in favor of getX().

See Also:
getX()

setX1

public void setX1(double x1)
Deprecated. This method is deprecated in favor of setX(double).

See Also:
setX(double)

getX2

public double getX2()
Deprecated. This method is deprecated in favor of getWidth().

See Also:
getWidth()

setX2

public void setX2(double x2)
Deprecated. This method is deprecated in favor of setWidth(double).

See Also:
setWidth(double)

getY1

public double getY1()
Deprecated. This method is deprecated in favor of getY().

See Also:
getY()

setY1

public void setY1(double y1)
Deprecated. This method is deprecated in favor of setY(double).

See Also:
setY(double)

getY2

public double getY2()
Deprecated. This method is deprecated in favor of getHeight().

See Also:
getHeight()

setY2

public void setY2(double y2)
Deprecated. This method is deprecated in favor of setHeight(double).

See Also:
setHeight(double)