Package org.jfree.chart.text
Class G2TextMeasurer
java.lang.Object
org.jfree.chart.text.G2TextMeasurer
- All Implemented Interfaces:
TextMeasurer
A
TextMeasurer based on a Graphics2D.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetStringWidth(String text, int start, int end) Returns the string width.
-
Constructor Details
-
G2TextMeasurer
Creates a new text measurer.- Parameters:
g2- the graphics device.
-
-
Method Details
-
getStringWidth
Returns the string width.- Specified by:
getStringWidthin interfaceTextMeasurer- Parameters:
text- the text.start- the index of the first character to measure.end- the index of the last character to measure.- Returns:
- The string width.
-