|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgestalt.extension.font.TextLine
public class TextLine
| Constructor Summary | |
|---|---|
TextLine(FontMetrics metrics,
java.awt.Font theFont)
Constructor. |
|
| Method Summary | |
|---|---|
float[] |
getBounds()
Returns the width and height of the whole line in pixels |
Vector2f[] |
getCharacterPositions()
Returns the character positions of the stored text in pixels |
java.awt.Font |
getFont()
|
float |
getFontSize()
|
Vector2f[] |
getFUnitCharacterPositions()
Returns the character positions of the stored text. |
float |
getFUnitPixelSize()
|
FontMetrics |
getMetrics()
|
char[] |
getTextCharacters()
Returns the stored text. |
java.lang.String |
getTextString()
Returns the stored text. |
float |
getTracking()
Returns the current tracking value in 1/1000 em. |
void |
setFontSize(float pointSize)
|
void |
setMetrics(FontMetrics metrics)
|
void |
setTabList(float[] theTabList)
|
void |
setText(char[] chars)
Set the text to be calculated. |
void |
setText(java.lang.String string)
Set the text to be calculated. |
void |
setTracking(float tracking)
Set tracking in 1/1000 em, a unit of measure that is relative to the current type size. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextLine(FontMetrics metrics,
java.awt.Font theFont)
metrics - TypoMetrics| Method Detail |
|---|
public java.awt.Font getFont()
public void setTabList(float[] theTabList)
public void setFontSize(float pointSize)
public float getFontSize()
public void setMetrics(FontMetrics metrics)
public FontMetrics getMetrics()
public float getFUnitPixelSize()
public void setTracking(float tracking)
tracking - intpublic float getTracking()
public void setText(char[] chars)
chars - char[]public void setText(java.lang.String string)
string - Stringpublic char[] getTextCharacters()
public java.lang.String getTextString()
public Vector2f[] getFUnitCharacterPositions()
public Vector2f[] getCharacterPositions()
public float[] getBounds()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||