|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFont
This class defines a custom monospaced font.
Method Summary | |
---|---|
void |
draw(javax.microedition.lcdui.Graphics g,
java.lang.String text,
int start,
int end,
int y)
Draw the given characters. |
void |
drawEmptySelection(javax.microedition.lcdui.Graphics g,
int start,
int end,
int y)
Draw the given number of spaces as selection. |
void |
drawSelection(javax.microedition.lcdui.Graphics g,
java.lang.String text,
int start,
int end,
int y)
Draw the given characters as selection. |
int |
getHeight()
Retrieve the height of a character. |
int |
getWidth()
Retrieve the width of a character. |
Method Detail |
---|
int getWidth()
int getHeight()
void draw(javax.microedition.lcdui.Graphics g, java.lang.String text, int start, int end, int y)
The character at the end position should not be drawn.
g
- the graphics to usetext
- the text to draw a subpart ofstart
- the start position in the textend
- the end position in the texty
- the line number to draw the text atvoid drawSelection(javax.microedition.lcdui.Graphics g, java.lang.String text, int start, int end, int y)
The character at the end position should not be drawn.
g
- the graphics to usetext
- the text to draw a subpart ofstart
- the start position in the textend
- the end position in the texty
- the line number to draw the text atvoid drawEmptySelection(javax.microedition.lcdui.Graphics g, int start, int end, int y)
The character at the end position should not be drawn.
g
- the graphics to usestart
- the start position in the textend
- the end position in the texty
- the line number to draw the text at
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |