|
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.ImageFont
Fuente generada a partir de una imagen.
| Constructor Summary | |
ImageFont(javax.microedition.lcdui.Image image,
byte[] widths,
int height,
int leading,
char init,
char end)
Crea la fuente. |
|
ImageFont(javax.microedition.lcdui.Image image,
int width,
int height,
int leading,
char init,
char end)
Crea la fuente (monospaced). |
|
| 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 ImageFont(javax.microedition.lcdui.Image image,
int width,
int height,
int leading,
char init,
char end)
image - Imagenwidth - Ancho de cada caracterheight - Alto de cada caracterleading - Espacio entre líneasinit - Código del primer caracterend - Código del último caracter
public ImageFont(javax.microedition.lcdui.Image image,
byte[] widths,
int height,
int leading,
char init,
char end)
image - Imagenwidths - Array con el ancho de cada caracterheight - Alto de cada caracterleading - Espacio entre líneasinit - Código del primer caracterend - Código del último caracter| 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 | ||||||||||