Package javafx.scene.shape

Examples of javafx.scene.shape.Rectangle.fillProperty()


        final double height, final double angle, final ObjectProperty<Paint> tickMarkFillProperty) {
      final Rectangle tm = new Rectangle(x, y, width, height);
      tm.setSmooth(false);
      tm.setCache(true);
      tm.setCacheHint(CacheHint.QUALITY);
      Bindings.bindBidirectional(tm.fillProperty(), tickMarkFillProperty);
    tm.getTransforms().addAll(new Rotate(angle, centerX, centerY));
    return tm;
    }

    /**
 
View Full Code Here


            }
        });
        Rectangle colorRect = RectangleBuilder.create()
                .width(16).height(16)
                .build();
        colorRect.fillProperty().bind(new ObjectBinding<Paint>() {
            { bind(color); }
            @Override protected Paint computeValue() {
                return getColor();
            }
        });
View Full Code Here

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.5)),
View Full Code Here

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.4)),
View Full Code Here

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.3)),
View Full Code Here

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.2)),
View Full Code Here

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(
                DeriveColorBinding.create(
                    color,
                    new ReadOnlyDoubleWrapper(0.0),
                    new ReadOnlyDoubleWrapper(1.0),
                    new ReadOnlyDoubleWrapper(1).subtract(shade.multiply(0.1)),
View Full Code Here

       
        {
            Rectangle r = new Rectangle();
            r.widthProperty().bind(this.size);
            r.heightProperty().bind(this.size);
            r.fillProperty().bind(color);
            r.translateXProperty().bind(size.multiply(-0.5));
            r.translateYProperty().bind(size.multiply(-0.5));
            r.translateZProperty().bind(size.multiply(-0.5));
            r.setRotate(90);
           
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.