Package javafx.scene.effect

Examples of javafx.scene.effect.Reflection


      if (image == null) {
        this.file = file;
        image = createImage(this.file, fileImageWidth, fileImageHeight, this.preserveRatio, this.smooth);
      }
      imageView.setImage(image);
        reflection = new Reflection();
        reflection.setFraction(reflectionSize);
        imageView.setEffect(reflection);
        setEffect(transform);
        getChildren().addAll(imageView);
        angle.set(displayAngle);
View Full Code Here


    public DisplayShelfItem(Image image) {

        // create content
        ImageView imageView = new ImageView();
        imageView.setImage(image);
        Reflection reflection = new Reflection();
        reflection.setFraction(REFLECTION_SIZE);
        imageView.setEffect(reflection);
        setEffect(transform);
        getChildren().addAll(imageView);
        angle.set(45.0);
        angle.addListener(new InvalidationListener() {
View Full Code Here

    node.setCacheHint(CacheHint.SPEED);
    node.setFitWidth(width);
    node.setFitHeight(height);

    final DropShadow effect = DropShadowBuilder.create().color(selectProperty != null && selectProperty.get() == index ? GuiUtil.COLOR_SELECTED : Color.TRANSPARENT).build();
    final Reflection effect2 = new Reflection();
    effect.setInput(effect2);
    node.setEffect(effect);
    node.setOnMousePressed(new EventHandler<MouseEvent>() {
      @Override
      public void handle(MouseEvent event) {
View Full Code Here

    public static void reflectionEffect(@Nonnull Node node) {
        if (node == null) {
            return;
        }
        Reflection r = new Reflection();
        r.setFraction(0.8f);
        r.setTopOffset(1.5);
        node.setEffect(r);
    }
View Full Code Here

    public static void reflectionEffect(@Nonnull Node node) {
        if (node == null) {
            return;
        }
        Reflection r = new Reflection();
        r.setFraction(0.8f);
        r.setTopOffset(1.5);
        node.setEffect(r);
    }
View Full Code Here

//        new Reflection(reflectionTop - insetHeight - 1, reflectionPortion, reflectionTopOpacity, reflectionBottomOpacity),
//        new ColorInput(0.0, reflectionTop + h, w, reflectionHeight, Color.WHITE)
//      );

      if(reflectionPortion > 0) {
        this.reflection = new Reflection(reflectionTop, reflectionPortion, reflectionTopOpacity, reflectionBottomOpacity);

        this.reflectionTop = reflectionTop;
        this.reflectionSpace = reflectionHeight + reflectionTop;
      }
    }
View Full Code Here

              setGraphic(null);
            }
          }
        };

        carouselCell.setEffect(new Reflection());

        return carouselCell;
      }
    });
View Full Code Here

TOP

Related Classes of javafx.scene.effect.Reflection

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.