Package limelight.util

Examples of limelight.util.Opts


    return playerRecruiter;
  }

  public Opts getBackstage(Prop child)
  {
    Opts result = backstage.get(child);
    if(result == null)
    {
      result = new Opts();
      backstage.put(child, result);
    }
    return result;
  }
View Full Code Here


  protected abstract void finalizeClose();

  public void open()
  {
    open(new Opts());
  }
View Full Code Here

    open(new Opts());
  }

  public void open(Map<String, Object> customizations)
  {
    Opts options = defaultOptions.merge(customizations);
    prepareToOpen();
    illuminateProduction();
    if(!canProceedWithCompatibility())
    {
      close();
      return;
    }
    loadProduction();
    if(Opts.isOn(options.remove("open-default-scenes")))
      openDefaultScenes(options);
    new ProductionOpenedEvent().dispatch(this);
    open = true;
  }
View Full Code Here

    styles = Styles.merge(productionStyles, BuiltInStyles.all());
  }

  public Scene openScene(String scenePath)
  {
    return openScene(scenePath, new Opts());
  }
View Full Code Here

    return elements;
  }

  public static Opts loadOptions(Element stageElement)
  {
    Opts options = new Opts();
    final NamedNodeMap attributes = stageElement.getAttributes();
    for(int j = 0; j < attributes.getLength(); j++)
    {
      final Node node = attributes.item(j);
      final String key = node.getNodeName();
      final String value = node.getNodeValue();
      options.put(key, value);
    }

    return options;
  }
View Full Code Here

  }

  public static JavaProp toProp(Element propElement)
  {
    String name = propElement.getNodeName();
    final Opts options = loadOptions(propElement);
    options.put("name", name);
    final JavaProp prop = new JavaProp(options);

    for(Element childElement : loadChildElements(propElement))
      prop.add(toProp(childElement));
View Full Code Here

  }

  public static void toStyle(Element styleElement, Map<String, RichStyle> map, Map<String, RichStyle> extensions)
  {
    String name = styleElement.getNodeName();
    final Opts options = loadOptions(styleElement);
    Object extensionNames = options.remove("extends");
    RichStyle style = new RichStyle();
    Options.apply(style, options);
    applyExtensions(extensionNames, style, map, extensions);
    map.put(name, style);
  }
View Full Code Here

  }

  public static void toStage(JavaTheater theater, Element stageElement)
  {
    final String name = stageElement.getNodeName();
    Opts options = loadOptions(stageElement);
    theater.add(theater.buildStage(name, options));
  }
View Full Code Here

    booted = false;
  }

  public static void boot()
  {
    boot(new Opts());
  }
View Full Code Here

  }

  public static void boot(Map<String, Object> customizations)
  {
    Log.info("Boot - Limelight " + About.version.toString());
    Opts options = defaultOptions.merge(customizations);

    if(booted)
      return;
    booted = true;
View Full Code Here

TOP

Related Classes of limelight.util.Opts

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.