|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gzz.vob.TextStyle
A style to draw text in. To get an instance suited for the current graphics API, call gzz.client.GraphicsAPI.getTextStyle()
Field Summary | |
static java.lang.String |
rcsid
|
Constructor Summary | |
TextStyle()
|
Method Summary | |
abstract float |
getAscent(float scale)
|
abstract float |
getDescent(float scale)
|
abstract float |
getHeight(float scale)
|
abstract float |
getLeading(float scale)
|
int |
getOffsetInText(char[] chars,
int offs,
int len,
float scale,
float x)
Return the offset in the string which corresponds to the x coordinate given. |
int |
getOffsetInText(java.lang.String s,
float scale,
float x)
Return the offset in the string which corresponds to the x coordinate given. |
abstract float |
getScaleByHeight(float h)
Get the scale to use to get a font in this style of height h. |
abstract float |
getWidth(char[] chars,
int offs,
int len,
float scale)
|
abstract float |
getWidth(java.lang.String s,
float scale)
|
float |
getX(char[] chars,
int offs,
int len,
float scale,
int xoffs)
Deprecated. Just use getWidth(substring) |
float |
getX(java.lang.String s,
float scale,
int offs)
Deprecated. Just use getWidth(substring) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String rcsid
Constructor Detail |
public TextStyle()
Method Detail |
public abstract float getScaleByHeight(float h)
public abstract float getWidth(java.lang.String s, float scale)
public abstract float getWidth(char[] chars, int offs, int len, float scale)
public abstract float getHeight(float scale)
public abstract float getAscent(float scale)
public abstract float getDescent(float scale)
public abstract float getLeading(float scale)
public float getX(java.lang.String s, float scale, int offs)
public float getX(char[] chars, int offs, int len, float scale, int xoffs)
public int getOffsetInText(java.lang.String s, float scale, float x)
public int getOffsetInText(char[] chars, int offs, int len, float scale, float x)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |