|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides functionality for drawing fixed space text on the graphical display. This interface is also referenced as "text renderer" for the MJCVirtualDisplay.
Method Summary | |
void |
drawChar(char c,
int x,
int y,
java.awt.Color f,
java.awt.Color b,
java.awt.Graphics g)
Draws the specified character (c) at the specified position (x,y: lower left corner) with the specified foregroung (f) and background (b) colors on the specified Graphics (g). |
int |
getHeight()
Returns the charHeight of a single character. |
java.lang.String |
getTextName()
Returns the MJC name of the MJCText. |
java.lang.String |
getTextVersion()
Returns the MJC version of the MJCText. |
int |
getWidth()
Returns the charWidth of a single character. |
void |
init(int sX,
int sY,
java.io.InputStream is)
Initializes the MJCText by specifying charWith, charHeight and an InputStream for configuration processing. |
Method Detail |
public java.lang.String getTextName()
public java.lang.String getTextVersion()
public void init(int sX, int sY, java.io.InputStream is)
int
- sX: the charWith in pixelsint
- sY: the charheight in pixelsInputStream
- is: the configuration InputStreampublic int getWidth()
public int getHeight()
public void drawChar(char c, int x, int y, java.awt.Color f, java.awt.Color b, java.awt.Graphics g)
char
- c: the char to be drawnint
- x: the left X coordinate of the charint
- y: the lower Y coordinate of the charColor
- f: the foreground color of the charColor
- b: the background color of the charGraphics
- g: the Graphics on that the char is drawn
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |