org.gnu.pango

Class Rectangle

public class Rectangle extends MemStruct

Deprecated: This class is part of the java-gnome 2.x family of libraries, which, due to their inefficiency and complexity, are no longer being maintained and have been abandoned by the java-gnome project. This class may exist in java-gnome 4.0; look out for org.gnome.pango.Rectangle. As this package was never fully implemented in java-gnome 2.x, however, any new code written will have a considerably different public API.

The PangoRectangle structure represents a rectangle. It is frequently used to represent the logical or ink extents of a single glyph or section of text.
Constructor Summary
Rectangle()
Create a new rectangle with x=y=width=height=0.
Rectangle(int x, int y, int width, int height)
Create a new rectangle with the given x, y, width and height parameters.
Method Summary
intgetHeight()
Returns height of the rectangle.
intgetWidth()
Returns width of the rectangle.
intgetX()
Returns X coordinate of the left side of the rectangle.
intgetY()
Returns Y coordinate of the the top side of the rectangle.

Constructor Detail

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.

Create a new rectangle with x=y=width=height=0.

Rectangle

public Rectangle(int x, int y, int width, int height)

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.

Create a new rectangle with the given x, y, width and height parameters.

Method Detail

getHeight

public int getHeight()

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.

Returns height of the rectangle.

getWidth

public int getWidth()

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.

Returns width of the rectangle.

getX

public int getX()

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.

Returns X coordinate of the left side of the rectangle.

getY

public int getY()

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.

Returns Y coordinate of the the top side of the rectangle.