Package limelight.model

Examples of limelight.model.Stage


  }

  @Override
  public boolean hasFocus()
  {
    final Stage stage = getStage();
    return stage != null && stage.getKeyListener().getFocusedPanel() == this;
  }
View Full Code Here


  {
    waitFor(new Condition()
    {
      public boolean isMet()
      {
        final Stage stage = production.getTheater().get(name);
        return stage != null && stage.isVisible();
      }
    });

    return (FramedStage) production.getTheater().get(name);
  }
View Full Code Here

  @Test
  public void riggerScene() throws Exception
  {
    utilities.openRigger();
    final Stage stage = production.getTheater().get("rigger");
    assertEquals(true, stage.isOpen());
    assertEquals("rigger", stage.getScene().getAbsoluteName());
  }
View Full Code Here

  {
    assumeTrue(TestUtil.notHeadless());
    fs.createTextFile("/testProduction/stages.xml", "<stages><egats/></stages>");
    production.loadStages();

    final Stage stage = production.getTheater().get("egats");
    assertNotNull(stage);
    assertEquals("egats", stage.getName());
  }
View Full Code Here

  {
    assumeTrue(TestUtil.notHeadless());
    fs.createTextFile("/testProduction/stages.xml", "<stages><egats title='Eureka!'/></stages>");
    production.loadStages();

    final Stage stage = production.getTheater().get("egats");
    assertEquals(FramedStage.class, stage.getClass());
    FramedStage framedStage = (FramedStage)stage;
    assertEquals("Eureka!", framedStage.getTitle());
  }
View Full Code Here

  public Object canProceedWithIncompatibleVersion(String productionName, String requiredVersion)
  {
    incompatibleVersionResponse = null;
    incompatibleVersionProductionName = productionName;
    incompatibleVersionRequiredVersion = requiredVersion;
    Stage incompatibleVersionStage = establishStage("Incompatible Version", dialogStageOptions);
    production.openScene("incompatibleVersion", incompatibleVersionStage.getName(), Util.toMap());

    waitForResponse(incompatibleVersionMonitor);

    incompatibleVersionStage.close();
    return incompatibleVersionResponse;
  }
View Full Code Here

  public Object alert(String message)
  {
    alertMessage = message;
    alertResponse = null;
    Stage alertStage = establishStage("Alert", dialogStageOptions);
    production.openScene("alert", "Alert", Util.toMap());

    waitForResponse(alertMonitor);

    alertStage.close();
    return alertResponse;
  }
View Full Code Here

  }

  private Stage establishStage(String stageName, Map<String, Object> stageOptions)
  {
    final Theater theater = production.getTheater();
    Stage stage = theater.get(stageName);
    if(stage == null)
    {
      stage = theater.getProxy().buildStage(stageName, new HashMap<String, Object>(stageOptions));
      theater.add(stage);
    }
View Full Code Here

    public void doExpansion(Panel panel)
    {
      ScenePanel scene = (ScenePanel) panel;
      Style style = scene.getStyle();
      final Stage stage = scene.stage;

      if(stage == null)
      {
        Log.warn("ScenePanel - doLayout called on un-staged scene.");
        return;
      }

      Insets insets = stage.getInsets();

      panel.setLocation(insets.left, insets.top);

      final int consumableWidth = stage.getWidth() - insets.left - insets.right;
      final int consumableHeight = stage.getHeight() - insets.top - insets.bottom;
      final int width = style.getCompiledWidth().calculateDimension(consumableWidth, style.getCompiledMinWidth(), style.getCompiledMaxWidth(), 0);
      final int height = style.getCompiledHeight().calculateDimension(consumableHeight, style.getCompiledMinHeight(), style.getCompiledMaxHeight(), 0);
      scene.setSize(width, height);

      PropPanelLayout.instance.doExpansion(scene);
View Full Code Here

TOP

Related Classes of limelight.model.Stage

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.