org.jfree.text
Class G2TextMeasurer
java.lang.Objectorg.jfree.text.G2TextMeasurer
- TextMeasurer
float | getStringWidth(String text, int start, int end)- Returns the string width.
|
G2TextMeasurer
public G2TextMeasurer(Graphics2D g2)
Creates a new text measurer.
g2 - the graphics device.
getStringWidth
public float getStringWidth(String text,
int start,
int end) Returns the string width.
- getStringWidth in interface TextMeasurer
text - the text.start - the index of the first character to measure.end - the index of the last character to measure.