Package limelight.ui.model

Examples of limelight.ui.model.Scene


  public void openSceneWithStage() throws Exception
  {
    production.loadProduction();
    MockStage stage = new MockStage("mock");
    production.getTheater().add(stage);
    Scene scene = new FakeScene();
    production.stubbedScene = scene;

    production.openScene("scenePath", "mock", Util.toMap());

    assertEquals("scenePath", production.loadedScenePath);
View Full Code Here


        production.reIlluminate();
        production.loadRootStyles();
        final List<Stage> stages = production.getTheater().getStages();
        for(Stage stage : stages)
        {
          final Scene scene = stage.getScene();
          if(scene != null)
            production.openScene(scene.getAbsoluteName(), stage.getName(), new Opts());
        }
      }
    }
View Full Code Here

    if (!backgroundImageAttribute.isNone())
    {
      try
      {
        Box borderFrame = panel.getBorderedBounds();
        Scene rootPanel = panel.getRoot();

        // TODO MDM - getting a NullPointer here. The Panel was removed from the scene in between the start of the paint cycle and here.
        if(rootPanel == null)
          return;

        ImageCache cache = rootPanel.getImageCache();
        Image image = cache.getImage(backgroundImageAttribute.getAttribute().getValue());
        Graphics2D borderedGraphics = (Graphics2D) graphics.create(borderFrame.x, borderFrame.y, borderFrame.width, borderFrame.height);
        style.getCompiledBackgroundImageFillStrategy().fill(borderedGraphics, image, style.getCompiledBackgroundImageX(), style.getCompiledBackgroundImageY());
      }
      catch (IOException e)
View Full Code Here

  public Player castRole(PropPanel panel, String playerName, PlayerRecruiter playerRecruiter)
  {
    Player result;

    final Scene scene = panel.getRoot();
    final String scenePlayersPath = Context.fs().pathTo(scene.getPath(), "players");
    result = castFrom(panel, playerName, playerRecruiter, scenePlayersPath);

    if(result == null && scene.getProduction() != null)
    {
      final String productionPlayersPath = Context.fs().pathTo(scene.getProduction().getPath(), "players");
      result = castFrom(panel, playerName, playerRecruiter, productionPlayersPath);
    }

    if(result == null)
      result = castFrom(panel, playerName, builtinPlayerRecruiter, BuiltinBeacon.getBuiltinPlayersPath());
View Full Code Here

    Log.info("Production - opening scene: '" + scenePath + "' on stage: '" + stage.getName() + "'");
    Map<String, Object> sceneOptions = new HashMap<String, Object>(options);
    sceneOptions.put("path", scenePath);
    sceneOptions.put("name", Context.fs().filename(scenePath));

    Scene scene = loadScene(scenePath, sceneOptions);
    Log.debug("Production - scene loaded: '" + scene + "' with options: " + Util.mapToString(sceneOptions));
    styleAndStageScene(scene, stage);
    return scene;
  }
View Full Code Here

TOP

Related Classes of limelight.ui.model.Scene

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.