java.lang.Object | |
↳ | sun.font.TextLabel |
![]() |
A label. Visual bounds is a rect that encompasses the entire rendered area. Logical bounds is a rect that defines how to position this next to other objects. Align bounds is a rect that defines how to align this to margins. it generally allows some overhang that logical bounds would prevent.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Render the label at x, y in the graphics.
| |||||||||||
A convenience method that renders the label at 0, 0.
| |||||||||||
Return a rectangle that corresponds to the alignment bounds of the text
when this label is rendered at x, y.
| |||||||||||
A convenience method that returns the align bounds when rendered at 0, 0.
| |||||||||||
A convenience method that returns the italic bounds when rendered at 0, 0.
| |||||||||||
Return a rectangle that corresponds to the logical bounds of the text, adjusted
to angle the leading and trailing edges by the italic angle.
| |||||||||||
A convenience method that returns the logical bounds when rendered at 0, 0.
| |||||||||||
Return a rectangle that corresponds to the logical bounds of the text
when this label is rendered at x, y.
| |||||||||||
Return an outline of the characters in the label when rendered at x, y.
| |||||||||||
A convenience method that returns the outline when rendered at 0, 0.
| |||||||||||
Return a rectangle that surrounds the text outline when this label is rendered at x, y.
| |||||||||||
A convenience method that returns the visual bounds when rendered at 0, 0.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Render the label at x, y in the graphics.
Return a rectangle that corresponds to the alignment bounds of the text when this label is rendered at x, y. This rectangle is used when positioning text next to a margin. It differs from the logical bounds in that it does not include leading or trailing whitespace.
A convenience method that returns the align bounds when rendered at 0, 0.
A convenience method that returns the italic bounds when rendered at 0, 0.
Return a rectangle that corresponds to the logical bounds of the text, adjusted to angle the leading and trailing edges by the italic angle.
A convenience method that returns the logical bounds when rendered at 0, 0.
Return a rectangle that corresponds to the logical bounds of the text when this label is rendered at x, y. This rectangle is used when positioning text next to other text.
Return an outline of the characters in the label when rendered at x, y.
Return a rectangle that surrounds the text outline when this label is rendered at x, y.
A convenience method that returns the visual bounds when rendered at 0, 0.