org.jfree.text
Interface TextMeasurer
- G2TextMeasurer
An object that can measure text.
float | getStringWidth(String text, int start, int end) - Calculates the width of a
String in the current
Graphics context.
|
getStringWidth
public float getStringWidth(String text,
int start,
int end)
Calculates the width of a String
in the current
Graphics
context.
text
- the text.start
- the start position of the substring to be measured.end
- the position of the last character to be measured.
- The width of the string in Java2D units.