Package javax.microedition.lcdui

Examples of javax.microedition.lcdui.Graphics.drawString()


                    status = ResourceManager.getResource( "rowSetListView.noData" );
                }
                y = height - fontHeight - 2;
                g.setColor( color );
                g.drawLine( 1, y, getWidth() - 2, y );
                g.drawString(
                        status != null ? status : "",
                        1,
                        height - fontHeight + font.getBaselinePosition(),
                        Graphics.LEFT | Graphics.BASELINE
                );
View Full Code Here


            button.image = Image.createImage( width, height );
            final Graphics g = button.image.getGraphics();
            g.setColor( 0xD0D0D0 );
            g.fillRect( 0, 0, width, height );
            g.setColor( color );
            g.drawString(
                    button.text,
                    1,
                    1 + font.getBaselinePosition(),
                    Graphics.LEFT | Graphics.BASELINE
            );
View Full Code Here

        if(card.getNumber() != Card.NO_NUMBER) {
           gCard.setColor(255, 255, 255);
           String numbers = Integer.toString(card.getNumber());
           //Draw top number
           gCard.setFont(Font.getFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
           gCard.drawString(numbers, 2, 2, Graphics.TOP|Graphics.LEFT);
           gCard.setColor(colors[card.getColor()]);
           //Draw center number
           gCard.setFont(Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_BOLD, Font.SIZE_MEDIUM));
           gCard.drawString(numbers, 11, 11, Graphics.TOP|Graphics.LEFT);
        }
View Full Code Here

           gCard.setFont(Font.getFont(Font.FACE_SYSTEM, Font.STYLE_PLAIN, Font.SIZE_SMALL));
           gCard.drawString(numbers, 2, 2, Graphics.TOP|Graphics.LEFT);
           gCard.setColor(colors[card.getColor()]);
           //Draw center number
           gCard.setFont(Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_BOLD, Font.SIZE_MEDIUM));
           gCard.drawString(numbers, 11, 11, Graphics.TOP|Graphics.LEFT);
        }

        return newCard;
    }
View Full Code Here

           if (!bgame.getAtualPlayer().isLocalPlayer()) {

               //Choose red color
               g.setColor(255, 0, 0);
               g.setFont(Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_BOLD, Font.SIZE_LARGE));
               g.drawString(String.valueOf(bgame.getAtualPlayer().getNumberOfCards()),
                            DIRECTION_POSX + 10, DIRECTION_POSY + 35, 0); //Anchor 0 is default
           }
       } else {
      
           players = bgame.getAllPlayers();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.