|
Apime v1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.java4ever.apime.ui.IFont
com.java4ever.apime.ui.font.NativeFont
Fuente nativa.
| Constructor Summary | |
NativeFont(int face,
int style,
int size)
Crea la fuente. |
|
| Method Summary | |
int |
charWidth(char c)
Devuelve el ancho de un caracter. |
void |
drawSubstring(javax.microedition.lcdui.Graphics g,
java.lang.String s,
int offset,
int length,
int x,
int y,
int anchor)
Dibuja una subcadena de texto (1 línea). |
int |
getHeight()
Devuelve la altura de la fuente. |
int |
getLeading()
Devuelve el espacio entre líneas. |
int |
substringWidth(java.lang.String s,
int offset,
int length)
Devuelve el ancho en pixels de una subcadena de texto. |
| Methods inherited from class com.java4ever.apime.ui.IFont |
addFont, calculateLines, drawString, drawString, drawString, getFont, getLineHeight, getName, removeFont, stringWidth |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NativeFont(int face,
int style,
int size)
face - Tipostyle - Estilosize - TamañoFont| Method Detail |
public int substringWidth(java.lang.String s,
int offset,
int length)
IFont
substringWidth in class IFonts - Subcadena de textooffset - Indice del primer caracterlength - Longitud de la subcadenapublic int charWidth(char c)
IFont
charWidth in class IFontc - Caracterpublic int getHeight()
IFont
getHeight in class IFontpublic int getLeading()
IFont
getLeading in class IFont
public void drawSubstring(javax.microedition.lcdui.Graphics g,
java.lang.String s,
int offset,
int length,
int x,
int y,
int anchor)
IFont
drawSubstring in class IFontg - Contexto gráficos - Subcadena de textooffset - Indice del primer caracterlength - Longitud de la subcadenax - Coordenada Xy - Coordenada Yanchor - Punto de referenciaGraphics
|
Apime v1.0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||