Search in sources :

Example 1 with Font

use of javax.microedition.lcdui.Font in project J2ME-Loader by nikita36078.

the class VirtualKeyboard method paint.

@Override
public void paint(Graphics g) {
    if (visible) {
        if (obscuresVirtualScreen && overlayAlpha <= 250) {
            if (offscreenChanged) {
                offgraphics.clear(0);
                for (VirtualKey aKeypad : keypad) {
                    aKeypad.paint(offgraphics);
                }
                offscreenChanged = false;
            }
            g.drawImage(offscreen, 0, 0, -1, -1, false, overlayAlpha);
        } else {
            Font prevFont = g.getFont();
            for (VirtualKey aKeypad : keypad) {
                aKeypad.paint(g);
            }
            g.setFont(prevFont);
        }
    }
}
Also used : Font(javax.microedition.lcdui.Font)

Aggregations

Font (javax.microedition.lcdui.Font)1