Package javafx.beans.property

Examples of javafx.beans.property.SimpleDoubleProperty


     */
    public DisplayShelfImage(final File file, Image image, final double reflectionSize, final double displayAngle,
        final int toolBarPosition, final double fileImageWidth, final double fileImageHeight,
        final boolean fileImagePreserveRatio, final boolean fileImageSmooth, final String imageFullSizeToolTip) {
      this.imageFullSizeToolTip = imageFullSizeToolTip;
      this.angle = new SimpleDoubleProperty(displayAngle);
      this.toolBarPosition = toolBarPosition;
      this.preserveRatio = fileImagePreserveRatio;
      this.smooth = fileImageSmooth;
        // create content
      this.imageView = new ImageView();
View Full Code Here


    this.indicatorMoveEffect = new Glow(0);
    this.tickValueFont = tickValueFont == null ? Font.font(FONT_NAME, 17d * sizeScale) : tickValueFont;
   
    final double defaultAngle = getTickValue(getViewingStartAngle()) <= getTickValue(getViewingEndAngle()) ?
        getViewingStartAngle() : getViewingEndAngle();
    this.angleProperty = new SimpleDoubleProperty(defaultAngle) {
      @Override
      public final void set(final double v) {
        final double nav = calibrateViewingAngle(v);
        if (nav >= 0) {
          super.set(nav);
          final double ntv = getTickValue(nav);
          if (tickValueProperty.get() != ntv) {
            tickValueProperty.set(ntv);
          }
        }
      }
    };
    this.tickValueProperty = new SimpleDoubleProperty() {
      @Override
      public final void set(final double v) {
        double ntv = tickValueFormat != null ? Double.parseDouble(getFormatedTickValue(v, false)) : v;
        ntv = snapToTicksProperty.get() ? closestTickMarkValue(ntv) : ntv;
        super.set(ntv);
        final double nav = getViewingAngle(ntv);
        if (angleProperty.get() != nav) {
          angleProperty.set(nav);
        }
      }
    };
    this.dialCenterFillProperty = new SimpleObjectProperty<Paint>(
        this.indicatorType == IndicatorType.KNOB ?
            new RadialGradient(0, 0, this.centerX, this.centerY,
                this.dialCenterOuterRadius, false, CycleMethod.NO_CYCLE,
                new Stop(0, Color.DARKGRAY.darker()), new Stop(0.8d, Color.DARKGRAY.darker()),
                new Stop(0.85d, Color.LIGHTGRAY), new Stop(0.97d, Color.DARKGRAY.darker()))
                : Color.BLACK);
    this.minorTickMarkFillProperty = new SimpleObjectProperty<Paint>(Color.GRAY.brighter());
    this.majorTickMarkFillProperty = new SimpleObjectProperty<Paint>(Color.WHITE);
    this.tickMarkLabelFillProperty = new SimpleObjectProperty<Paint>(Color.WHITE);
    this.tickValueDisplayFillProperty = new SimpleObjectProperty<Paint>(new LinearGradient(
        0, 0, 0, 1d, true, CycleMethod.NO_CYCLE,
        new Stop(0, Color.DARKGRAY.darker()), new Stop(0.4d, Color.BLACK)));
    this.tickValueDisplayTextFillProperty = new SimpleObjectProperty<Paint>(Color.WHITE);
    this.outerRimFillProperty = new SimpleObjectProperty<Paint>(Color.BLACK);
    this.outerRimEffectFillProperty = new SimpleObjectProperty<Color>(Color.LIGHTCYAN);
    this.centerGaugeFillProperty = new SimpleObjectProperty<Paint>(
        this.indicatorType == IndicatorType.KNOB ? Color.BLACK :
          new RadialGradient(0, 0, this.centerX, this.centerY,
              this.innerRadius, false, CycleMethod.NO_CYCLE,
              new Stop(0, Color.WHITESMOKE),
              new Stop(0.7d, Color.BLACK)));
    this.indicatorFillProperty = new SimpleObjectProperty<Paint>(
        this.indicatorType == IndicatorType.KNOB ? Color.BLACK : Color.ORANGERED);
    this.indicatorOpacityProperty = new SimpleDoubleProperty(1);
    this.dialCenterOpacityProperty = new SimpleDoubleProperty(1);
    this.intensityIndicatorRegionsProperty = new SimpleObjectProperty<Gauge.IntensityIndicatorRegions>(
        intensityRegions == null ? INTENSITY_REGIONS_DEFAULT : intensityRegions);
    this.lightingAzimuthProperty = new SimpleDoubleProperty(270d);
    this.lightingElevationProperty = new SimpleDoubleProperty(50d);
    this.highlightFillProperty = new SimpleObjectProperty<Paint>(Color.WHITE);
    this.snapToTicksProperty = new SimpleBooleanProperty(false);
    createChildren();
    Platform.runLater(new Runnable() {
      @Override
View Full Code Here

    public Snapshot(ReadOnlyLongProperty idProvider, String title, String yAxisTitle, String yUnit) {
        this.title = title;
        this.yAxisTitle = yAxisTitle;
        this.yUnit = yUnit;
        this.currentValue = new SimpleDoubleProperty();
        this.idProvider = idProvider;
        this.initialize();
        this.registerListeners();
    }
View Full Code Here

        this.rollbackCount = new SimpleIntegerProperty();
        this.totalErrors = new SimpleIntegerProperty();
        this.activeSessions = new SimpleIntegerProperty();
        this.expiredSessions = new SimpleIntegerProperty();
        this.id = new SimpleLongProperty();
        this.commitsPerSecond = new SimpleDoubleProperty();
        this.rollbacksPerSecond = new SimpleDoubleProperty();
        this.deadlockedThreads = new SimpleStringProperty();
        this.initializeListeners();
    }
View Full Code Here

        properties.put("maxSize", new SimpleObjectProperty<>(new Dimension2D(WIDTH, HEIGHT)));
        return (B)this;
    }

    public final B prefWidth(final double PREF_WIDTH) {
        properties.put("prefWidth", new SimpleDoubleProperty(PREF_WIDTH));
        return (B)this;
    }
View Full Code Here

    public final B prefWidth(final double PREF_WIDTH) {
        properties.put("prefWidth", new SimpleDoubleProperty(PREF_WIDTH));
        return (B)this;
    }
    public final B prefHeight(final double PREF_HEIGHT) {
        properties.put("prefHeight", new SimpleDoubleProperty(PREF_HEIGHT));
        return (B)this;
    }
View Full Code Here

        properties.put("prefHeight", new SimpleDoubleProperty(PREF_HEIGHT));
        return (B)this;
    }

    public final B minWidth(final double MIN_WIDTH) {
        properties.put("minWidth", new SimpleDoubleProperty(MIN_WIDTH));
        return (B)this;
    }
View Full Code Here

    public final B minWidth(final double MIN_WIDTH) {
        properties.put("minWidth", new SimpleDoubleProperty(MIN_WIDTH));
        return (B)this;
    }
    public final B minHeight(final double MIN_HEIGHT) {
        properties.put("minHeight", new SimpleDoubleProperty(MIN_HEIGHT));
        return (B)this;
    }
View Full Code Here

        properties.put("minHeight", new SimpleDoubleProperty(MIN_HEIGHT));
        return (B)this;
    }

    public final B maxWidth(final double MAX_WIDTH) {
        properties.put("maxWidth", new SimpleDoubleProperty(MAX_WIDTH));
        return (B)this;
    }
View Full Code Here

    public final B maxWidth(final double MAX_WIDTH) {
        properties.put("maxWidth", new SimpleDoubleProperty(MAX_WIDTH));
        return (B)this;
    }
    public final B maxHeight(final double MAX_HEIGHT) {
        properties.put("maxHeight", new SimpleDoubleProperty(MAX_HEIGHT));
        return (B)this;
    }
View Full Code Here

TOP

Related Classes of javafx.beans.property.SimpleDoubleProperty

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.