Package org.jfree.chart.text
Interface TextMeasurer
-
- All Known Implementing Classes:
G2TextMeasurer
public interface TextMeasurer
An object that can measure text.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description float
getStringWidth(java.lang.String text, int start, int end)
Calculates the width of aString
in the currentGraphics
context.
-
-
-
Method Detail
-
getStringWidth
float getStringWidth(java.lang.String text, int start, int end)
Calculates the width of aString
in the currentGraphics
context.- Parameters:
text
- the text.start
- the start position of the substring to be measured.end
- the position of the last character to be measured.- Returns:
- The width of the string in Java2D units.
-
-