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






Measure the specified text using the specified Font and RenderContext.

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

 Syntax

Java  Copy Code

public static XDimension2D.Double measureText (
    String text,
    float maxWidth,
    Font font,
    RenderContext context
)

 Parameters

text

A string that specifies the text to measure.

maxWidth

The maximum width of the rectangle that contains the specified text.

font

The Font used for rendering the text.

context

A RenderContext.

 Return Value

An instance of the XDimension2D.Double.

 See Also

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