|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jfree.text.G2TextMeasurer
public class G2TextMeasurer
A TextMeasurer
based on a Graphics2D
.
Constructor Summary | |
---|---|
G2TextMeasurer(java.awt.Graphics2D g2)
Creates a new text measurer. |
Method Summary | |
---|---|
float |
getStringWidth(java.lang.String text,
int start,
int end)
Returns the string width. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public G2TextMeasurer(java.awt.Graphics2D g2)
g2
- the graphics device.Method Detail |
---|
public float getStringWidth(java.lang.String text, int start, int end)
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |