Search
TextRenderer.measureText Method
See Also
 






Measure the specified text using the specified Font and RenderContext.

Namespace: com.mindfusion.charting
File: 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