Package javafx.scene.effect

Examples of javafx.scene.effect.Light


   * Creates the {@linkplain Preloader} {@linkplain Scene}
   */
  private void createPreloaderScene() {
    bar = new ProgressBar();
    bar.setMinWidth(WIDTH / 1.3d);
    final Light light = new Light.Distant();
    final Lighting lighting = new Lighting();
    lighting.setSurfaceScale(3d);
    lighting.setLight(light);
    bar.setEffect(lighting);
    new Dialog(null, stage, KEY.APP_TITLE, RS.rbLabel(KEY.LOADING), null,
View Full Code Here


   *            the {@linkplain ProgressIndicator} {@linkplain Task} ran in
   *            the {@linkplain Service}
   * @return the {@linkplain ProgressIndicator} alert {@linkplain Service}
   */
  public static <T> Service<T> alertProgress(final Stage parent, final Task<T> progressTask) {
    final Light light = new Light.Distant();
    final Lighting lighting = new Lighting();
    lighting.setSurfaceScale(1d);
    lighting.setLight(light);
    //final ProgressIndicator pi = ProgressIndicatorBuilder.create().maxWidth(200d).effect(lighting).build();
    final ProgressIndicator pi = ProgressBarBuilder.create().maxWidth(parent.getWidth() / 2d).maxHeight(25d).effect(lighting).build();
View Full Code Here

TOP

Related Classes of javafx.scene.effect.Light

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.