Search
TextRenderer.drawText Method
See Also
 






Draws the specified text in the provided layout rectangle with the specified Font and Align.

Namespace: com.mindfusion.charting
File: com.mindfusion.charting

 Syntax

Java  Copy Code

public static void drawText (
    Graphics2D graphics,
    String text,
    Rectangle2D rect,
    Font font,
    Align alignment,
    Align verticalAlignment,
    float maxWidth
)

 Parameters

graphics

A Graphics2D instance.

text

The text to draw.

rect

The layout rectangle here the text will be drawn.

font

The Font used for the text drawing.

alignment

One of the Align enumeration values.

verticalAlignment

One of the Align enumeration values that specifies the vertical alignment of the text.

maxWidth

A float value. The maximum width the text is allowed to have.

 See Also