Java java.awt.font TextLayout fields, constructors, methods, implement or subclass

Example usage for Java java.awt.font TextLayout fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt.font TextLayout.

The text is from its open source code.

Constructor

TextLayout(String string, Font font, FontRenderContext frc)
Constructs a TextLayout from a String and a Font .
TextLayout(String string, Map attributes, FontRenderContext frc)
Constructs a TextLayout from a String and an attribute set.
TextLayout(AttributedCharacterIterator text, FontRenderContext frc)
Constructs a TextLayout from an iterator over styled text.

Method

voiddraw(Graphics2D g2, float x, float y)
Renders this TextLayout at the specified location in the specified java.awt.Graphics2D Graphics2D context.
floatgetAdvance()
Returns the advance of this TextLayout .
floatgetAscent()
Returns the ascent of this TextLayout .
Rectangle2DgetBounds()
Returns the bounds of this TextLayout .
intgetCharacterCount()
Returns the number of characters represented by this TextLayout .
floatgetDescent()
Returns the descent of this TextLayout .
TextLayoutgetJustifiedLayout(float justificationWidth)
Creates a copy of this TextLayout justified to the specified width.
floatgetLeading()
Returns the leading of the TextLayout .
ShapegetOutline(AffineTransform tx)
Returns a Shape representing the outline of this TextLayout .
floatgetVisibleAdvance()
Returns the advance of this TextLayout , minus trailing whitespace.
booleanisLeftToRight()
Returns true if this TextLayout has a left-to-right base direction or false if it has a right-to-left base direction.