|
java-gnome version 4.0.19 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.gnome.glib.Boxed
org.gnome.pango.Rectangle
public final class Rectangle
Information about the size of an area rendered by Pango. These are returned
by the various extents methods in Layout and related classes. See
LayoutLine's getExtentsLogical()
for
an example.
The origin of a Rectangle is the base line of the rendered glyphs, with
positive directions being to the right and down. This means that in
left-to-right text, a Rectangle representing a glyph that lies above the
base line (which most do) will have a negative y
value.
Method Summary | |
---|---|
double |
getAscent()
Get the ascent, which is the distance that this Rectangle [describing one or more glyphs] rises above the font's base line. |
double |
getDescent()
Get the descent, which is the distance that this Rectangle [describing one or more glyphs] descends below the font's base line. |
double |
getHeight()
The height of the box described by this Rectangle. |
double |
getWidth()
The width of the box described by this Rectangle. |
double |
getX()
The horizontal co-ordinate of the top left corner of the box described by this Rectangle. |
double |
getY()
The vertical co-ordinate of the box described by this Rectangle. |
String |
toString()
|
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public double getAscent()
public double getDescent()
public double getHeight()
public double getWidth()
public double getX()
public double getY()
public String toString()
toString
in class org.freedesktop.bindings.Pointer
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |