Examples of UserInterface


Examples of application.ui.UserInterface

  public UserInterface ui;
 
  public void run() {
    try {
      db = new Database("test.db");
      ui = new UserInterface(db);
     
      ui.show();
           
    } catch (Exception e) {
      System.err.println(e.getClass().getName()+": "+e.getMessage());
View Full Code Here

Examples of cero.ui.UserInterface

    // must be created before the game
    //UserInterface launcher1 = manager.getNewUserInterface("Cero incomplete command line interface :P");
   
    //this could work as well with any other interface
    UserInterface launcher2 = manager.getNewUserInterface("Cero Devint interface");

    for (InterfaceModule mod : launcher2.getInterfaceModules())
      launcher2.activateInterfaceModule(mod);

    // UserInterface sound =
    // manager.getInterfaceLoader().getPlugin("sound").newInterfaceInstance();
    // must be created after the interface (doh!)

    // sound.setActivated(true);
    launcher2.setActivated(true);
  }
View Full Code Here

Examples of cero.ui.UserInterface

        founduip = uip;
    }
    if (founduip == null)
      return null;

    UserInterface uiinst = founduip.newInterfaceInstance();
    for (InterfaceModulePlugin imp : uiPluginModules) {
      if (imp.getInterfaceType().isInstance(uiinst))
        try {
          uiinst.addInterfaceModule(imp.newModuleInstance());
        } catch (UnsupportedPluginException e) {
          // TODO we should inform the user the plugin is
          // incoherent with the interface
        }
    }
View Full Code Here

Examples of de.zelosfan.timedstrategy.gameStates.instances.UserInterface

        redTeam = new Team(Color.RED, true);
        blueTeam = new Team(Color.BLUE, false);

        world = new World(Main.mapObjectMap.get("map" + mapID));
        Main.gameStateManager.instanceHashMap.put("MapDisplay", new MapDisplay());
        Main.gameStateManager.instanceHashMap.put("UserInterface", new UserInterface());

        Main.gameStateManager.setCurrentGameState(new IngamePlanning(Main.gameStateManager, true));
    }
View Full Code Here

Examples of games.stendhal.client.gui.UserInterface

   * @return <code>true</code> if was handled.
   */
  public boolean execute(final String[] params, final String remainder) {
    if (params[0] == null) {
      float volume = ClientSingletonRepository.getSound().getVolume();
      UserInterface ui = ClientSingletonRepository.getUserInterface();
      ui.addEventLine(new StandardEventLine("Please use /volume <name> <value> to adjust the volume."));
      ui.addEventLine(new HeaderLessEventLine("<name> is an item from the following list. \"master\" refers to the global volume setting.", NotificationType.CLIENT));
      ui.addEventLine(new HeaderLessEventLine("<value> is in the range from 0 to 100 but may be set higher.", NotificationType.CLIENT));
      ui.addEventLine(new HeaderLessEventLine("master -> " + Numeric.floatToInt(volume, 100.0f), NotificationType.CLIENT));

      for (String name : ClientSingletonRepository.getSound().getGroupNames()) {
        volume = ClientSingletonRepository.getSound().getGroup(name).getVolume();
        ui.addEventLine(new HeaderLessEventLine(name + " -> " + Numeric.floatToInt(volume, 100.0f), NotificationType.CLIENT));
      }
    } else if (params[1] != null) {
      changeVolume(params[0], params[1]);
    } else {
      ClientSingletonRepository.getUserInterface().addEventLine(
View Full Code Here

Examples of it.timehero.slick.ui.UserInterface

    // inizializzo modello mondo
    world = new WorldEngine();

    // crep l'interfaccia utente
    ui = new UserInterface();

    // inizializzazione gestione input utente
    userInputController = new UserInputController(world);

    // -----------------------------------------------------------------------------------
View Full Code Here

Examples of it.timehero.slick.ui.UserInterface

      throws SlickException {

    Log.info("Init Slick");
    try {
      // creo l'interfaccia utente
      ui = new UserInterface(container);
     
      // inizializzo modello mondo
      world = new WorldEngine(ui);
 
      // inizializzazione gestione input utente
View Full Code Here

Examples of it.timehero.slick.ui.UserInterface

        // inizializzo modello mondo
        world = new WorldEngine();

        // crep l'interfaccia utente
        ui = new UserInterface();
       
        // inizializzazione gestione input utente
        userInputController = new UserInputController(world);

        //-----------------------------------------------------------------------------------
View Full Code Here

Examples of org.scijava.ui.UserInterface

    if (canQuit) {
      super.quit();
    } else {
      final UIService uiService = getContext().getService(UIService.class);
      if (uiService.isVisible()) {
        UserInterface ui = uiService.getDefaultUI();
        logService.info("Quit action: hide the application frame");
        ui.getApplicationFrame().setVisible(false);
      } else {
        logService.info("Quit action: do nothing");
      }
    }
  }
View Full Code Here

Examples of org.tc65sh.ui.UserInterface

    public void exec(String[] args) throws Exception {
        String portname = DEFAULT_PORTNAME;
        Log.logLevel = Log.LOG_INFO;
        Log.info("tc65sh v" + VERSION_STRING);
        UserInterface ui = null;
        for (int i = 0; i < args.length; i++) {
            if (args[i].equals("-p") || args[i].equals("--portname")) {
                portname = args[i + 1];
            } else if (args[i].equals("-b") || args[i].equals("--baudrate")) {
                baudrate = Integer.parseInt(args[i + 1]);
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.