Package gr.bluevibe.fire.components

Examples of gr.bluevibe.fire.components.Panel


        // Thirdly we initialize the FireScreen.
        screen = FireScreen.getScreen(Display.getDisplay(this));
        screen.setFullScreenMode(true); // set the FireScreen to full screen mode.
        screen.setOrientationChangeKey(new Integer(Canvas.KEY_STAR))// no preset key is the default. You can reset that by setting null key.
        screen.setInteractiveBusyMode(false); // false is the default value.
        Panel main = createMainPanel();
//      screen.setCurrent(new Cave(this)); // set the current panel on the FireScreen.
      screen.setCurrent(main); // set the current panel on the FireScreen.
 
  }
View Full Code Here


  }
 
  private Panel createGamePanel()
  {
   
    Panel res = new Panel();
    res.setShowBorderDecorations(false);
    World w = new World(this);
    w.addCommand(new Command("",Command.OK,1));
    w.setCommandListener(this);
    w.setSelected(true)

    res.add(w);
    res.resetPointer();
    return res;
   
  }
View Full Code Here

  }
 
 
  private Panel createMainPanel()
  {
    Panel main= new Panel();
    main.setCommandListener(this);
    main.addCommand(exitCommand);
   
    Row sep = new Row();
    sep.setFilled(new Integer(FireScreen.defaultFilledRowColor));
    main.add(sep);
   
    sep = new Row("Highest Score: "+highestScore);
    sep.setFilled(new Integer(FireScreen.defaultFilledRowColor));
    main.add(sep);
   
    sep = new Row();
    sep.setFilled(new Integer(FireScreen.defaultFilledRowColor));
    main.add(sep);
   
   
    Row start = new Row(FireIO.getLocalImage("lightbulb"), Lang.get("Start new game"));
    int strWidth = start.getFont().stringWidth(start.getText())+10;
    start.setFullSizeHighlight(true);
    start.setCommandListener(this);
    start.addCommand(startCommand);
    start.setAlignment(FireScreen.CENTRE);
    start.setForcedTextWidth(new Integer(strWidth));
    main.add(start);
    return main;

  }
View Full Code Here

TOP

Related Classes of gr.bluevibe.fire.components.Panel

Copyright © 2018 www.massapicom. 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.