public final class Rectangle extends Boxed
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.
Modifier and Type | Method and Description |
---|---|
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() |
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