|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The YLocator interface defines the methods needed to
compute the y-coordinate of the base line, ascent line, descent line,
and leading line of a given String displayed in a given
Font using the given anchorY position and this strategy.
| Method Summary | |
float |
getAscentLineY(String string,
Font font,
float anchorY)
Returns the ascent line y-coordinate of the string. |
float |
getBaseLineY(String string,
Font font,
float anchorY)
Returns the base line y-coordinate of the string. |
float |
getDescentLineY(String string,
Font font,
float anchorY)
Returns the descent line y-coordinate of the string. |
float |
getLeadingLineY(String string,
Font font,
float anchorY)
Returns the leading line y-coordinate of the string. |
| Method Detail |
public float getBaseLineY(String string,
Font font,
float anchorY)
string - the string to displayfont - the font to use for the displayanchorY - the y-coordinate of the anchor position
public float getAscentLineY(String string,
Font font,
float anchorY)
string - the string to displayfont - the font to use for the displayanchorY - the y-coordinate of the anchor position
public float getDescentLineY(String string,
Font font,
float anchorY)
string - the string to displayfont - the font to use for the displayanchorY - the y-coordinate of the anchor position
public float getLeadingLineY(String string,
Font font,
float anchorY)
string - the string to displayfont - the font to use for the displayanchorY - the y-coordinate of the anchor position
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||