DroidDiagram Programmer's Guide
Diagram.measureString Method
See Also
 






Measures a text taking into consideration the current affine transform of the diagram.

Namespace: com.mindfusion.diagramming
Package: com.mindfusion.diagramming

 Syntax

Java  Copy Code

public Dimension measureString (
    String text,
    Font font
)

 Parameters

text

The String to measure.

font

A Font that will be used to render the text.

 Return Value

This method returns a Dimension object that represents the size of the string text when drawn with the font parameter and the string parameter.

 See Also

Diagram Members
Diagram Class
com.mindfusion.diagramming Namespace