MindFusion.Java Package Programmer's Guide
TextRenderer.measureText Method (String, Single, Font, Graphics2D)
See Also
 






Calculates how much space is needed to display specified text.

Namespace: com.mindfusion.charting
Package: com.mindfusion.charting

 Syntax

Java  Copy Code

public static XDimension2D.Double measureText (
    String text,
    float maxWidth,
    Font font,
    Graphics2D graphics
)

 Parameters

text

The text to measure.

maxWidth

The maximum width available.

font

A Font instance.

graphics

A Graphics2D where the text will be rendered.

 Return Value

A XDimension2D.Double instance containing measured size.

 See Also

measureText Method Overload List
TextRenderer Members
TextRenderer Class
com.mindfusion.charting Namespace