Examples of Scene


Examples of javafx.scene.Scene

                public Object call(Class<?> aClass) {
                    return controller;
                }
            });
            controller.setDialog(this);
            setScene(new Scene((Parent) loader.load()));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of javafx.scene.Scene

    public void setPrimaryStage(Stage primaryStage) {
        this.primaryStage = primaryStage;
    }

    public void showScreen(Parent screen) {
        primaryStage.setScene(new Scene(screen, 777, 500));
        primaryStage.show();
    }
View Full Code Here

Examples of javafx.scene.Scene

        (new LogUtils()).setupLogger();
        Utils.printVersion();
       
        Parent root = FXMLLoader.load(getClass().getResource("ui/MainUI.fxml"));
       
        Scene scene = new Scene(new BorderPane(), 1, 1);
        scene.setFill(null);
       
        stage.initStyle(StageStyle.TRANSPARENT);
        stage.setScene(scene);
        stage.show();
       
View Full Code Here

Examples of javafx.scene.Scene

        grid.add(sField, 6, 4);
        grid.add(msSeparator, 7, 4);
        grid.add(msField, 8, 4);
        grid.add(hbBtn, 1, 6, 8, 1);
       
        Scene scene = new Scene(grid, 300, 250);
       
        scene.getStylesheets().add("org/livesub/styles/GlobalStyle.css");
       
        primaryStage.setResizable(false);
        primaryStage.setTitle("Go To");
        primaryStage.setScene(scene);
        primaryStage.show();
View Full Code Here

Examples of javafx.scene.Scene

        root.setCenter(table);
        root.setBottom(bottomBox);
       
        initListeners();
       
        scene = new Scene(root, 500, 600);
        scene.getStylesheets().add("org/livesub/styles/DownloaderUIStyle.css");
       
        primaryStage.setTitle("Find Subtitles Online");
        primaryStage.setScene(scene);
        primaryStage.show();
View Full Code Here

Examples of limelight.ui.model.Scene

  private void establishButtonGroup(String name)
  {
    if(radioButtonGroup != null)
      radioButtonGroup.remove(this);
    final Scene scene = getRoot();
    if(scene != null)
    {
      final RadioButtonGroup group = scene.getButtonGroups().get(name);
      group.add(this);
    }
  }
View Full Code Here

Examples of main.scenario.Scene

  Player p;
  Scene scene;
 
  @Override
  public void load() {
    scene = new Scene();
    p = new Player(10, 0, 50, 100){
      @Override
      public void render(Graphics2D g){
        g.setColor(Color.white);
        g.fillRect(x, y, width, height);
View Full Code Here

Examples of net.cloudcodex.server.data.Data.Scene

          tx.commit();

          /*
           * Init some scenes and messages.
           */
          Scene scene = messageService.startScene(context, "You're talking to the Guard chief", ulrich, inigo, guardChief);
          scene.setAlias(guardChief.getKey().getId() + "", "Global Alias for Guard Chief");
          scene.setAlias(ulrich.getKey().getId() + "", "Global Alias for Ulrich");
          scene.setAlias(ulrich.getKey().getId() + "-" + inigo.getKey().getId(), "My friend");
          dao.save(context, scene);
          messageService.postSpeech(context, null, ulrich, "Have you seen the mayor ?");
          messageService.postSpeech(context, null, ulrich, "Guy, I'm talking to you !");
          messageService.postSpeech(context, scene.getKey(), guardChief, "No, Not the last days. I'm worried.");
          messageService.postSpeech(context, null, inigo, "I'm sure he's gone with the town gold !");
          messageService.postSpeech(context, scene.getKey(), guardChief, "I'm going right now to check the bank !");
          scene = messageService.startScene(context, "Guard chief is gone, you're alone in the street", ulrich, inigo);
          messageService.postSpeech(context, null, inigo, "OK, wat a stupid guy ...");
          messageService.postSpeech(context, null, ulrich, "Yes, we can now deliver our friend from the jail.");
          messageService.postSpeech(context, null, inigo, "Let's go ! I'm going to search Hektor");
          scene = messageService.startScene(context, "Hektor, Inigo is coming to you at the inn", hektor, inigo);
          messageService.postSpeech(context, null, inigo, "You ! Come with me !");
          messageService.postSpeech(context, null, hektor, "Huh ?!? OK ...");
         
          // now ulrich scene
          messageService.postOFF(context, null, ulrich.getKey(), null, "Is it to late to go to the market ?");
          messageService.postOFF(context, null, null, ulrich.getKey(), "No, you can.");
          messageService.postOFF(context, null, ulrich.getKey(), null, "So I go to the market");
          messageService.postOFF(context, null, null, ulrich.getKey(), "When arriving to market, you see Olukun.");
          messageService.postOFF(context, null, ulrich.getKey(), null, "I go talk to him");
          scene = messageService.startScene(context, "Olukun, Ulrich is here.", ulrich, olukun);
          messageService.postSpeech(context, null, olukun, "Hey ! How do you do ?");
         
          // ...
          scene = messageService.startScene(context, "Everybody is here ...", ulrich, olukun, hektor, inigo);
          messageService.postSpeech(context, null, inigo, "OK Let's go to the jail !");
          messageService.postSpeech(context, null, olukun, "Huh ... wait a minute ...");
         
          {
            List<Scene> scenes = dao.asListOfScenes(null, dao.queryScene(campaign.getKey()), null);
            if(scenes != null) {
              for(Scene seq : scenes) {
                System.err.println(seq.getEntity());
                final List<Message> messages =
                  dao.asListOfMessages(null,
                    dao.queryMessage(seq.getKey()), null,
                    Message.Properties.TIMESTAMP);
                if(messages != null) {
                  for(Message msg : messages) {
                    System.err.println(msg.getEntity());
                  }
                }
              }
            }
          }
         
          {
            System.err.println("----------- Inigo messages");
            final Context context2 = new Context(romain);
            final List<SceneSDO> scenes = messageService.getMessages(context2,
                campaign.getKey().getId(),
                inigo.getKey().getId(), null, null);
           
            if(scenes != null) {
              for(SceneSDO sdo : scenes) {
                final Scene seq = sdo.getScene();
                System.err.println(seq.getEntity());
                final List<Message> messages = sdo.getMessages();
                if(messages != null) {
                  for(Message msg : messages) {
                    System.err.println(msg.getEntity());
                  }
                }
              }
            }
          }

          {
            System.err.println("----------- Ulrich messages");
            final Context context2 = new Context(xavier);
            final List<SceneSDO> scenes = messageService.getMessages(context2,
                campaign.getKey().getId(),
                ulrich.getKey().getId(), null, null);
           
            if(scenes != null) {
              for(SceneSDO sdo : scenes) {
                final Scene seq = sdo.getScene();
                System.err.println(seq.getEntity());
                final List<Message> messages = sdo.getMessages();
                if(messages != null) {
                  for(Message msg : messages) {
                    System.err.println(msg.getEntity());
                  }
                }
              }
            }
          }
         
          {
            System.err.println("----------- Olukun messages");
            final Context context2 = new Context(arnaud);
            final List<SceneSDO> scenes = messageService.getMessages(context2,
                campaign.getKey().getId(),
                olukun.getKey().getId(), null, null);
           
            if(scenes != null) {
              for(SceneSDO sdo : scenes) {
                final Scene seq = sdo.getScene();
                System.err.println(seq.getEntity());
                final List<Message> messages = sdo.getMessages();
                if(messages != null) {
                  for(Message msg : messages) {
                    System.err.println(msg.getEntity());
                  }
                }
              }
            }
          }

          {
            System.err.println("----------- Hektor messages");
            final Context context2 = new Context(daniel);
            final List<SceneSDO> scenes = messageService.getMessages(context2,
                campaign.getKey().getId(),
                hektor.getKey().getId(), null, null);
           
            if(scenes != null) {
              for(SceneSDO sdo : scenes) {
                final Scene seq = sdo.getScene();
                System.err.println(seq.getEntity());
                final List<Message> messages = sdo.getMessages();
                if(messages != null) {
                  for(Message msg : messages) {
                    System.err.println(msg.getEntity());
                  }
                }
              }
            }
          }

        } finally {
          if(tx.isActive()) {
            tx.rollback();
          }
        }
      }
      {
        final Transaction tx = datastore.beginTransaction();
        try {
          final Campaign campaign = campaignService.createCampaign(null, "another thomas' campaign", "Some game", "Some desc", null, thomas);
          campaign.setIcon("http://4.bp.blogspot.com/_SniTwfm5BwE/StS30qA7boI/AAAAAAAABpc/1kDwWjGglHI/s320/D%26D4E.jpg");
          createNotification(dao,  "this is another Notification", campaign.getKey());
          dao.save(null, campaign);
          tx.commit();
        } finally {
          if(tx.isActive()) {
            tx.rollback();
          }
        }
      }
     
      {
        final Transaction tx = datastore.beginTransaction();
        try {
          final Campaign campaign = campaignService.createCampaign(null, "Campaign 3", "Some game", "Some desc", null, daniel);
          campaign.setIcon("http://www.wizards.com/dnd/images/rhod_gallery/95863.jpg");
          createNotification(dao, "Please," + daniel.getNickname()+ " make OFF session to define your character", campaign.getKey());
         
          dao.save(null, campaign);
          tx.commit();
        } finally {
          if(tx.isActive()) {
            tx.rollback();
          }
        }
      }

     
      {
        final Transaction tx = datastore.beginTransaction();
        try {
          final Campaign campaign = campaignService.createCampaign(null, "Campaign 2", "Some game", "Some desc", null, daniel);
          campaign.setIcon("http://4.bp.blogspot.com/_SniTwfm5BwE/StS30qA7boI/AAAAAAAABpc/1kDwWjGglHI/s320/D%26D4E.jpg");
          createNotification(dao,  "this is another Notification", campaign.getKey());
         
          dao.save(null, campaign);
          tx.commit();
        } finally {
          if(tx.isActive()) {
            tx.rollback();
          }
        }
      }

     
      {
        final Transaction tx = datastore.beginTransaction();
        try {
          final Campaign campaign = campaignService.createCampaign(null, "Daniel's Campaign", "Some game", "Some desc", null, daniel);
          createNotification(dao,  "this is a Notification", campaign.getKey());
          final Data.Character joe = createCharacter(dao, campaign, "Joe", thomas);
          final Data.Character jack = createCharacter(dao, campaign, "Jack", arnaud);
          createNote(dao, jack, joe, "Why this guy is always following me ?!?");
          final Data.Character eric = createCharacter(dao, campaign, "Eric", null);
          tx.commit();
        } finally {
          if(tx.isActive()) {
            tx.rollback();
          }
        }
      }
    }

   
    /*
     * Tests for Home
     */
    {
      final Data.User user1 = createUser(dao, "user1@home.com", "User1");
      final Data.User user2 = createUser(dao, "user2@home.com", "User2");
      final Data.User user3 = createUser(dao, "user3@home.com", "User3");
     
      final Campaign campaign = campaignService.createCampaign(null, "My Home !", "Some game", "Some desc", null, user3);

      final Data.Character char1 = campaignService.createCharacter(null, campaign, "Char1", user1, null, null);
      final Data.Character char2 = campaignService.createCharacter(null, campaign, "Char2", user2, null, null);
      final Data.Character char3 = campaignService.createCharacter(null, campaign, "Char3", user3, null, null);
     
      Scene scene = messageService.startScene(context, "Intro", char1, char2, char3);
      messageService.postSpeech(context, null, char1, "Message 1");
      messageService.postSpeech(context, null, char2, "Message 2");
      messageService.postSpeech(context, null, char3, "Message 3");
    }
   
View Full Code Here

Examples of org.geoserver.w3ds.types.Scene

  public GetScene(GeoServer geoServer, Catalog catalog,
      GetSceneRequest request) {
    this.geoServer = geoServer;
    this.catalog = catalog;
    this.request = request;
    this.scene = new Scene(request.getCrs());
  }
View Full Code Here

Examples of org.jwildfire.create.eden.scene.Scene

      deltaRotate.setZ(deltaRotate.getZ() - 0.1 * (0.5 + Math.random()));
    }
  }

  private String edenCreateSunflowScene() {
    Scene scene = new Scene();
    // A
    //    for (int i = 0; i < 3300; i++) {
    //      Sphere sphere = new Sphere();
    //      sphere.setCentre((-50.0 + Math.random() * 94.0) * 2.5, 1.0 + Math.random() * 128.0, (-3.0 + Math.random() * 920.0));
    //      sphere.setRadius(3.6 + Math.random() * 11.4);
 
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.