Search
TextRenderer.measureText Method
See Also
 






Calculates how much space is needed to display specified text.

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