Search in sources :

Example 1 with StringProperty

use of javafx.beans.property.StringProperty in project fx2048 by brunoborges.

the class Board method restoreSession.

/*
    Once we have confirmation
    */
public boolean restoreSession(Map<Location, Tile> gameGrid) {
    timerPause.stop();
    restoreGame.set(false);
    doClearGame();
    timer.stop();
    StringProperty sTime = new SimpleStringProperty("");
    int score = sessionManager.restoreSession(gameGrid, sTime);
    if (score >= 0) {
        gameScoreProperty.set(score);
        // check tiles>=2048
        gameWonProperty.set(false);
        gameGrid.forEach((l, t) -> {
            if (t != null && t.getValue() >= GameManager.FINAL_VALUE_TO_WIN) {
                gameWonProperty.removeListener(wonListener);
                gameWonProperty.set(true);
                gameWonProperty.addListener(wonListener);
            }
        });
        if (!sTime.get().isEmpty()) {
            time = LocalTime.now().minusNanos(new Long(sTime.get()));
        }
        timer.play();
        return true;
    }
    // not session found, restart again
    doResetGame();
    return false;
}
Also used : SimpleStringProperty(javafx.beans.property.SimpleStringProperty) StringProperty(javafx.beans.property.StringProperty) SimpleStringProperty(javafx.beans.property.SimpleStringProperty)

Example 2 with StringProperty

use of javafx.beans.property.StringProperty in project bitsquare by bitsquare.

the class BindingTest method start.

@Override
public void start(Stage primaryStage) {
    VBox root = new VBox();
    root.setSpacing(20);
    Label label = new Label();
    StringProperty txt = new SimpleStringProperty();
    txt.set("-");
    label.textProperty().bind(txt);
    Button button = new Button("count up");
    button.setOnAction(e -> {
        txt.set("counter " + counter++);
    });
    root.getChildren().addAll(label, button);
    primaryStage.setScene(new Scene(root, 400, 400));
    primaryStage.show();
}
Also used : Button(javafx.scene.control.Button) Label(javafx.scene.control.Label) SimpleStringProperty(javafx.beans.property.SimpleStringProperty) StringProperty(javafx.beans.property.StringProperty) SimpleStringProperty(javafx.beans.property.SimpleStringProperty) Scene(javafx.scene.Scene) VBox(javafx.scene.layout.VBox)

Example 3 with StringProperty

use of javafx.beans.property.StringProperty in project Board-Instrumentation-Framework by intel.

the class ClockBuilder method build.

public final Clock build() {
    final Clock CONTROL = new Clock();
    for (String key : properties.keySet()) {
        if ("prefSize".equals(key)) {
            Dimension2D dim = ((ObjectProperty<Dimension2D>) properties.get(key)).get();
            CONTROL.setPrefSize(dim.getWidth(), dim.getHeight());
        } else if ("minSize".equals(key)) {
            Dimension2D dim = ((ObjectProperty<Dimension2D>) properties.get(key)).get();
            CONTROL.setPrefSize(dim.getWidth(), dim.getHeight());
        } else if ("maxSize".equals(key)) {
            Dimension2D dim = ((ObjectProperty<Dimension2D>) properties.get(key)).get();
            CONTROL.setPrefSize(dim.getWidth(), dim.getHeight());
        } else if ("prefWidth".equals(key)) {
            CONTROL.setPrefWidth(((DoubleProperty) properties.get(key)).get());
        } else if ("prefHeight".equals(key)) {
            CONTROL.setPrefHeight(((DoubleProperty) properties.get(key)).get());
        } else if ("minWidth".equals(key)) {
            CONTROL.setMinWidth(((DoubleProperty) properties.get(key)).get());
        } else if ("minHeight".equals(key)) {
            CONTROL.setMinHeight(((DoubleProperty) properties.get(key)).get());
        } else if ("maxWidth".equals(key)) {
            CONTROL.setMaxWidth(((DoubleProperty) properties.get(key)).get());
        } else if ("maxHeight".equals(key)) {
            CONTROL.setMaxHeight(((DoubleProperty) properties.get(key)).get());
        } else if ("scaleX".equals(key)) {
            CONTROL.setScaleX(((DoubleProperty) properties.get(key)).get());
        } else if ("scaleY".equals(key)) {
            CONTROL.setScaleY(((DoubleProperty) properties.get(key)).get());
        } else if ("layoutX".equals(key)) {
            CONTROL.setLayoutX(((DoubleProperty) properties.get(key)).get());
        } else if ("layoutY".equals(key)) {
            CONTROL.setLayoutY(((DoubleProperty) properties.get(key)).get());
        } else if ("translateX".equals(key)) {
            CONTROL.setTranslateX(((DoubleProperty) properties.get(key)).get());
        } else if ("translateY".equals(key)) {
            CONTROL.setTranslateY(((DoubleProperty) properties.get(key)).get());
        } else if ("text".equals(key)) {
            CONTROL.setText(((StringProperty) properties.get(key)).get());
        } else if ("nightMode".equals(key)) {
            CONTROL.setNightMode(((BooleanProperty) properties.get(key)).get());
        } else if ("design".equals(key)) {
            CONTROL.setDesign(((ObjectProperty<Clock.Design>) properties.get(key)).get());
        } else if ("discreteSecond".equals(key)) {
            CONTROL.setDiscreteSecond(((BooleanProperty) properties.get(key)).get());
        } else if ("secondPointerVisible".equals(key)) {
            CONTROL.setSecondPointerVisible(((BooleanProperty) properties.get(key)).get());
        } else if ("highlightVisible".equals(key)) {
            CONTROL.setHighlightVisible(((BooleanProperty) properties.get(key)).get());
        } else if ("dateTime".equals(key)) {
            CONTROL.setTime(((ObjectProperty<LocalTime>) properties.get(key)).get());
        } else if ("running".equals(key)) {
            CONTROL.setRunning(((BooleanProperty) properties.get(key)).get());
        } else if ("autoNightMode".equals(key)) {
            CONTROL.setAutoNightMode(((BooleanProperty) properties.get(key)).get());
        }
    }
    return CONTROL;
}
Also used : ObjectProperty(javafx.beans.property.ObjectProperty) SimpleObjectProperty(javafx.beans.property.SimpleObjectProperty) BooleanProperty(javafx.beans.property.BooleanProperty) SimpleBooleanProperty(javafx.beans.property.SimpleBooleanProperty) Dimension2D(javafx.geometry.Dimension2D) SimpleStringProperty(javafx.beans.property.SimpleStringProperty) StringProperty(javafx.beans.property.StringProperty) SimpleDoubleProperty(javafx.beans.property.SimpleDoubleProperty) DoubleProperty(javafx.beans.property.DoubleProperty)

Example 4 with StringProperty

use of javafx.beans.property.StringProperty in project Board-Instrumentation-Framework by intel.

the class DoubleRadialGaugeBuilder method build.

public final DoubleRadialGauge build() {
    final DoubleRadialGauge CONTROL = new DoubleRadialGauge();
    // Make sure that sections and markers will be added first
    if (properties.keySet().contains("sectionsArrayOne")) {
        CONTROL.setSectionsOne(((ObjectProperty<Section[]>) properties.get("sectionsArrayOne")).get());
    }
    if (properties.keySet().contains("sectionsListOne")) {
        CONTROL.setSectionsOne(((ObjectProperty<List<Section>>) properties.get("sectionsListOne")).get());
    }
    if (properties.keySet().contains("areasArrayOne")) {
        CONTROL.setAreasOne(((ObjectProperty<Section[]>) properties.get("areasArrayOne")).get());
    }
    if (properties.keySet().contains("areasListOne")) {
        CONTROL.setAreasOne(((ObjectProperty<List<Section>>) properties.get("areasListOne")).get());
    }
    if (properties.keySet().contains("sectionsArrayTwo")) {
        CONTROL.setSectionsTwo(((ObjectProperty<Section[]>) properties.get("sectionsArrayTwo")).get());
    }
    if (properties.keySet().contains("sectionsListTwo")) {
        CONTROL.setSectionsTwo(((ObjectProperty<List<Section>>) properties.get("sectionsListTwo")).get());
    }
    if (properties.keySet().contains("areasArrayTwo")) {
        CONTROL.setAreasTwo(((ObjectProperty<Section[]>) properties.get("areasArrayTwo")).get());
    }
    if (properties.keySet().contains("areasListTwo")) {
        CONTROL.setAreasTwo(((ObjectProperty<List<Section>>) properties.get("areasListTwo")).get());
    }
    for (String key : properties.keySet()) {
        if ("prefSize".equals(key)) {
            Dimension2D dim = ((ObjectProperty<Dimension2D>) properties.get(key)).get();
            CONTROL.setPrefSize(dim.getWidth(), dim.getHeight());
        } else if ("minSize".equals(key)) {
            Dimension2D dim = ((ObjectProperty<Dimension2D>) properties.get(key)).get();
            CONTROL.setPrefSize(dim.getWidth(), dim.getHeight());
        } else if ("maxSize".equals(key)) {
            Dimension2D dim = ((ObjectProperty<Dimension2D>) properties.get(key)).get();
            CONTROL.setPrefSize(dim.getWidth(), dim.getHeight());
        } else if ("prefWidth".equals(key)) {
            CONTROL.setPrefWidth(((DoubleProperty) properties.get(key)).get());
        } else if ("prefHeight".equals(key)) {
            CONTROL.setPrefHeight(((DoubleProperty) properties.get(key)).get());
        } else if ("minWidth".equals(key)) {
            CONTROL.setMinWidth(((DoubleProperty) properties.get(key)).get());
        } else if ("minHeight".equals(key)) {
            CONTROL.setMinHeight(((DoubleProperty) properties.get(key)).get());
        } else if ("maxWidth".equals(key)) {
            CONTROL.setMaxWidth(((DoubleProperty) properties.get(key)).get());
        } else if ("maxHeight".equals(key)) {
            CONTROL.setMaxHeight(((DoubleProperty) properties.get(key)).get());
        } else if ("scaleX".equals(key)) {
            CONTROL.setScaleX(((DoubleProperty) properties.get(key)).get());
        } else if ("scaleY".equals(key)) {
            CONTROL.setScaleY(((DoubleProperty) properties.get(key)).get());
        } else if ("layoutX".equals(key)) {
            CONTROL.setLayoutX(((DoubleProperty) properties.get(key)).get());
        } else if ("layoutY".equals(key)) {
            CONTROL.setLayoutY(((DoubleProperty) properties.get(key)).get());
        } else if ("translateX".equals(key)) {
            CONTROL.setTranslateX(((DoubleProperty) properties.get(key)).get());
        } else if ("translateY".equals(key)) {
            CONTROL.setTranslateY(((DoubleProperty) properties.get(key)).get());
        } else if ("styleClass".equals(key)) {
            CONTROL.getStyleClass().setAll("gauge");
            CONTROL.getStyleClass().addAll(((ObjectProperty<String[]>) properties.get(key)).get());
        } else if ("animated".equals(key)) {
            CONTROL.setAnimated(((BooleanProperty) properties.get(key)).get());
        } else if ("dropShadowEnabled".equals(key)) {
            CONTROL.setDropShadowEnabled(((BooleanProperty) properties.get(key)).get());
        } else if ("animationDuration".equals(key)) {
            CONTROL.setAnimationDuration(((DoubleProperty) properties.get(key)).get());
        } else if ("style".equals(key)) {
            CONTROL.setStyle(((StringProperty) properties.get(key)).get());
        } else if ("minValueOne".equals(key)) {
            CONTROL.setMinValueOne(((DoubleProperty) properties.get(key)).get());
        } else if ("maxValueOne".equals(key)) {
            CONTROL.setMaxValueOne(((DoubleProperty) properties.get(key)).get());
        } else if ("valueOne".equals(key)) {
            CONTROL.setValueOne(((DoubleProperty) properties.get(key)).get());
        } else if ("decimalsOne".equals(key)) {
            CONTROL.setDecimalsOne(((IntegerProperty) properties.get(key)).get());
        } else if ("titleOne".equals(key)) {
            CONTROL.setTitleOne(((StringProperty) properties.get(key)).get());
        } else if ("unitOne".equals(key)) {
            CONTROL.setUnitOne(((StringProperty) properties.get(key)).get());
        } else if ("autoScaleOne".equals(key)) {
            CONTROL.setAutoScaleOne(((BooleanProperty) properties.get(key)).get());
        } else if ("needleColorOne".equals(key)) {
            CONTROL.setNeedleColorOne(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("tickLabelOrientationOne".equals(key)) {
            CONTROL.setTickLabelOrientationOne(((ObjectProperty<DoubleRadialGauge.TickLabelOrientation>) properties.get(key)).get());
        } else if ("numberFormatOne".equals(key)) {
            CONTROL.setNumberFormatOne(((ObjectProperty<DoubleRadialGauge.NumberFormat>) properties.get(key)).get());
        } else if ("majorTickSpaceOne".equals(key)) {
            CONTROL.setMajorTickSpaceOne(((DoubleProperty) properties.get(key)).get());
        } else if ("minorTickSpaceOne".equals(key)) {
            CONTROL.setMinorTickSpaceOne(((DoubleProperty) properties.get(key)).get());
        } else if ("tickLabelFill".equals(key)) {
            CONTROL.setTickLabelFillOne(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("tickMarkFillOne".equals(key)) {
            CONTROL.setTickMarkFillOne(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("ledColorOne".equals(key)) {
            CONTROL.setLedColorOne(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("ledVisibleOne".equals(key)) {
            CONTROL.setLedVisibleOne(((BooleanProperty) properties.get(key)).get());
        } else if ("valueVisibleOne".equals(key)) {
            CONTROL.setValueVisibleOne(((BooleanProperty) properties.get(key)).get());
        } else if ("sectionFill0One".equals(key)) {
            CONTROL.setSectionFill0One(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill1One".equals(key)) {
            CONTROL.setSectionFill1One(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill2One".equals(key)) {
            CONTROL.setSectionFill2One(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill3One".equals(key)) {
            CONTROL.setSectionFill3One(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill4One".equals(key)) {
            CONTROL.setSectionFill4One(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill0One".equals(key)) {
            CONTROL.setAreaFill0One(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill1One".equals(key)) {
            CONTROL.setAreaFill1One(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill2One".equals(key)) {
            CONTROL.setAreaFill2One(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill3One".equals(key)) {
            CONTROL.setAreaFill3One(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill4One".equals(key)) {
            CONTROL.setAreaFill4One(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("minValueTwo".equals(key)) {
            CONTROL.setMinValueTwo(((DoubleProperty) properties.get(key)).get());
        } else if ("maxValueTwo".equals(key)) {
            CONTROL.setMaxValueTwo(((DoubleProperty) properties.get(key)).get());
        } else if ("valueTwo".equals(key)) {
            CONTROL.setValueTwo(((DoubleProperty) properties.get(key)).get());
        } else if ("decimalsTwo".equals(key)) {
            CONTROL.setDecimalsTwo(((IntegerProperty) properties.get(key)).get());
        } else if ("titleTwo".equals(key)) {
            CONTROL.setTitleTwo(((StringProperty) properties.get(key)).get());
        } else if ("unitTwo".equals(key)) {
            CONTROL.setUnitTwo(((StringProperty) properties.get(key)).get());
        } else if ("autoScaleTwo".equals(key)) {
            CONTROL.setAutoScaleTwo(((BooleanProperty) properties.get(key)).get());
        } else if ("needleColorTwo".equals(key)) {
            CONTROL.setNeedleColorTwo(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("tickLabelOrientationTwo".equals(key)) {
            CONTROL.setTickLabelOrientationTwo(((ObjectProperty<DoubleRadialGauge.TickLabelOrientation>) properties.get(key)).get());
        } else if ("numberFormatTwo".equals(key)) {
            CONTROL.setNumberFormatTwo(((ObjectProperty<DoubleRadialGauge.NumberFormat>) properties.get(key)).get());
        } else if ("majorTickSpaceTwo".equals(key)) {
            CONTROL.setMajorTickSpaceTwo(((DoubleProperty) properties.get(key)).get());
        } else if ("minorTickSpaceTwo".equals(key)) {
            CONTROL.setMinorTickSpaceTwo(((DoubleProperty) properties.get(key)).get());
        } else if ("tickLabelFill".equals(key)) {
            CONTROL.setTickLabelFillTwo(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("tickMarkFillTwo".equals(key)) {
            CONTROL.setTickMarkFillTwo(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("ledColorTwo".equals(key)) {
            CONTROL.setLedColorTwo(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("ledVisibleTwo".equals(key)) {
            CONTROL.setLedVisibleTwo(((BooleanProperty) properties.get(key)).get());
        } else if ("valueVisibleTwo".equals(key)) {
            CONTROL.setValueVisibleTwo(((BooleanProperty) properties.get(key)).get());
        } else if ("sectionFill0Two".equals(key)) {
            CONTROL.setSectionFill0Two(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill1Two".equals(key)) {
            CONTROL.setSectionFill1Two(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill2Two".equals(key)) {
            CONTROL.setSectionFill2Two(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill3Two".equals(key)) {
            CONTROL.setSectionFill3Two(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill4Two".equals(key)) {
            CONTROL.setSectionFill4Two(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill0Two".equals(key)) {
            CONTROL.setAreaFill0Two(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill1Two".equals(key)) {
            CONTROL.setAreaFill1Two(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill2Two".equals(key)) {
            CONTROL.setAreaFill2Two(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill3Two".equals(key)) {
            CONTROL.setAreaFill3Two(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill4Two".equals(key)) {
            CONTROL.setAreaFill4Two(((ObjectProperty<Color>) properties.get(key)).get());
        }
    }
    return CONTROL;
}
Also used : ObjectProperty(javafx.beans.property.ObjectProperty) SimpleObjectProperty(javafx.beans.property.SimpleObjectProperty) IntegerProperty(javafx.beans.property.IntegerProperty) SimpleIntegerProperty(javafx.beans.property.SimpleIntegerProperty) BooleanProperty(javafx.beans.property.BooleanProperty) SimpleBooleanProperty(javafx.beans.property.SimpleBooleanProperty) Dimension2D(javafx.geometry.Dimension2D) Color(javafx.scene.paint.Color) SimpleStringProperty(javafx.beans.property.SimpleStringProperty) StringProperty(javafx.beans.property.StringProperty) List(java.util.List) DoubleProperty(javafx.beans.property.DoubleProperty) SimpleDoubleProperty(javafx.beans.property.SimpleDoubleProperty)

Example 5 with StringProperty

use of javafx.beans.property.StringProperty in project Board-Instrumentation-Framework by intel.

the class GaugeBuilder method build.

public final Gauge build() {
    final Gauge CONTROL = new Gauge();
    // Make sure that sections and markers will be added first
    if (properties.keySet().contains("sectionsArray")) {
        CONTROL.setSections(((ObjectProperty<Section[]>) properties.get("sectionsArray")).get());
    }
    if (properties.keySet().contains("sectionsList")) {
        CONTROL.setSections(((ObjectProperty<List<Section>>) properties.get("sectionsList")).get());
    }
    if (properties.keySet().contains("areasArray")) {
        CONTROL.setAreas(((ObjectProperty<Section[]>) properties.get("areasArray")).get());
    }
    if (properties.keySet().contains("areasList")) {
        CONTROL.setAreas(((ObjectProperty<List<Section>>) properties.get("areasList")).get());
    }
    if (properties.keySet().contains("markersArray")) {
        CONTROL.setMarkers(((ObjectProperty<Marker[]>) properties.get("markersArray")).get());
    }
    if (properties.keySet().contains("markersList")) {
        CONTROL.setMarkers(((ObjectProperty<List<Marker>>) properties.get("markersList")).get());
    }
    for (String key : properties.keySet()) {
        if ("prefSize".equals(key)) {
            Dimension2D dim = ((ObjectProperty<Dimension2D>) properties.get(key)).get();
            CONTROL.setPrefSize(dim.getWidth(), dim.getHeight());
        } else if ("minSize".equals(key)) {
            Dimension2D dim = ((ObjectProperty<Dimension2D>) properties.get(key)).get();
            CONTROL.setPrefSize(dim.getWidth(), dim.getHeight());
        } else if ("maxSize".equals(key)) {
            Dimension2D dim = ((ObjectProperty<Dimension2D>) properties.get(key)).get();
            CONTROL.setPrefSize(dim.getWidth(), dim.getHeight());
        } else if ("prefWidth".equals(key)) {
            CONTROL.setPrefWidth(((DoubleProperty) properties.get(key)).get());
        } else if ("prefHeight".equals(key)) {
            CONTROL.setPrefHeight(((DoubleProperty) properties.get(key)).get());
        } else if ("minWidth".equals(key)) {
            CONTROL.setMinWidth(((DoubleProperty) properties.get(key)).get());
        } else if ("minHeight".equals(key)) {
            CONTROL.setMinHeight(((DoubleProperty) properties.get(key)).get());
        } else if ("maxWidth".equals(key)) {
            CONTROL.setMaxWidth(((DoubleProperty) properties.get(key)).get());
        } else if ("maxHeight".equals(key)) {
            CONTROL.setMaxHeight(((DoubleProperty) properties.get(key)).get());
        } else if ("scaleX".equals(key)) {
            CONTROL.setScaleX(((DoubleProperty) properties.get(key)).get());
        } else if ("scaleY".equals(key)) {
            CONTROL.setScaleY(((DoubleProperty) properties.get(key)).get());
        } else if ("layoutX".equals(key)) {
            CONTROL.setLayoutX(((DoubleProperty) properties.get(key)).get());
        } else if ("layoutY".equals(key)) {
            CONTROL.setLayoutY(((DoubleProperty) properties.get(key)).get());
        } else if ("translateX".equals(key)) {
            CONTROL.setTranslateX(((DoubleProperty) properties.get(key)).get());
        } else if ("translateY".equals(key)) {
            CONTROL.setTranslateY(((DoubleProperty) properties.get(key)).get());
        } else if ("styleClass".equals(key)) {
            CONTROL.getStyleClass().setAll("gauge");
            CONTROL.getStyleClass().addAll(((ObjectProperty<String[]>) properties.get(key)).get());
        } else if ("minValue".equals(key)) {
            CONTROL.setMinValue(((DoubleProperty) properties.get(key)).get());
        } else if ("maxValue".equals(key)) {
            CONTROL.setMaxValue(((DoubleProperty) properties.get(key)).get());
        } else if ("value".equals(key)) {
            CONTROL.setValue(((DoubleProperty) properties.get(key)).get());
        } else if ("threshold".equals(key)) {
            CONTROL.setThreshold(((DoubleProperty) properties.get(key)).get());
        } else if ("decimals".equals(key)) {
            CONTROL.setDecimals(((IntegerProperty) properties.get(key)).get());
        } else if ("title".equals(key)) {
            CONTROL.setTitle(((StringProperty) properties.get(key)).get());
        } else if ("unit".equals(key)) {
            CONTROL.setUnit(((StringProperty) properties.get(key)).get());
        } else if ("animated".equals(key)) {
            CONTROL.setAnimated(((BooleanProperty) properties.get(key)).get());
        } else if ("animationDuration".equals(key)) {
            CONTROL.setAnimationDuration(((DoubleProperty) properties.get(key)).get());
        } else if ("minMeasuredValueVisible".equals(key)) {
            CONTROL.setMinMeasuredValueVisible(((BooleanProperty) properties.get(key)).get());
        } else if ("maxMeasuredValueVisible".equals(key)) {
            CONTROL.setMaxMeasuredValueVisible(((BooleanProperty) properties.get(key)).get());
        } else if ("thresholdVisible".equals(key)) {
            CONTROL.setThresholdVisible(((BooleanProperty) properties.get(key)).get());
        } else if ("startAngle".equals(key)) {
            CONTROL.setStartAngle(((DoubleProperty) properties.get(key)).get());
        } else if ("angleRange".equals(key)) {
            CONTROL.setAngleRange(((DoubleProperty) properties.get(key)).get());
        } else if ("autoScale".equals(key)) {
            CONTROL.setAutoScale(((BooleanProperty) properties.get(key)).get());
        } else if ("needleColor".equals(key)) {
            CONTROL.setNeedleColor(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("tickLabelOrientation".equals(key)) {
            CONTROL.setTickLabelOrientation(((ObjectProperty<Gauge.TickLabelOrientation>) properties.get(key)).get());
        } else if ("numberFormat".equals(key)) {
            CONTROL.setNumberFormat(((ObjectProperty<Gauge.NumberFormat>) properties.get(key)).get());
        } else if ("majorTickSpace".equals(key)) {
            CONTROL.setMajorTickSpace(((DoubleProperty) properties.get(key)).get());
        } else if ("minorTickSpace".equals(key)) {
            CONTROL.setMinorTickSpace(((DoubleProperty) properties.get(key)).get());
        } else if ("plainValue".equals(key)) {
            CONTROL.setPlainValue(((BooleanProperty) properties.get(key)).get());
        } else if ("histogramEnabled".equals(key)) {
            CONTROL.setHistogramEnabled(((BooleanProperty) properties.get(key)).get());
        } else if ("dropShadowEnabled".equals(key)) {
            CONTROL.setDropShadowEnabled(((BooleanProperty) properties.get(key)).get());
        } else if ("tickLabelFill".equals(key)) {
            CONTROL.setTickLabelFill(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill0".equals(key)) {
            CONTROL.setSectionFill0(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill1".equals(key)) {
            CONTROL.setSectionFill1(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill2".equals(key)) {
            CONTROL.setSectionFill2(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill3".equals(key)) {
            CONTROL.setSectionFill3(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill4".equals(key)) {
            CONTROL.setSectionFill4(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill5".equals(key)) {
            CONTROL.setSectionFill5(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill6".equals(key)) {
            CONTROL.setSectionFill6(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill7".equals(key)) {
            CONTROL.setSectionFill7(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill8".equals(key)) {
            CONTROL.setSectionFill8(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionFill9".equals(key)) {
            CONTROL.setSectionFill9(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill0".equals(key)) {
            CONTROL.setAreaFill0(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill1".equals(key)) {
            CONTROL.setAreaFill1(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill2".equals(key)) {
            CONTROL.setAreaFill2(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill3".equals(key)) {
            CONTROL.setAreaFill3(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill4".equals(key)) {
            CONTROL.setAreaFill4(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill5".equals(key)) {
            CONTROL.setAreaFill5(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill6".equals(key)) {
            CONTROL.setAreaFill6(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill7".equals(key)) {
            CONTROL.setAreaFill7(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill8".equals(key)) {
            CONTROL.setAreaFill8(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("areaFill9".equals(key)) {
            CONTROL.setAreaFill9(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("histogramFill".equals(key)) {
            CONTROL.setHistogramFill(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("markerFill0".equals(key)) {
            CONTROL.setMarkerFill0(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("markerFill1".equals(key)) {
            CONTROL.setMarkerFill1(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("markerFill2".equals(key)) {
            CONTROL.setMarkerFill2(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("markerFill3".equals(key)) {
            CONTROL.setMarkerFill3(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("markerFill4".equals(key)) {
            CONTROL.setMarkerFill4(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("sectionsVisible".equals(key)) {
            CONTROL.setSectionsVisible(((BooleanProperty) properties.get(key)).get());
        } else if ("areasVisible".equals(key)) {
            CONTROL.setAreasVisible(((BooleanProperty) properties.get(key)).get());
        } else if ("markersVisible".equals(key)) {
            CONTROL.setMarkersVisible(((BooleanProperty) properties.get(key)).get());
        } else if ("tickMarkFill".equals(key)) {
            CONTROL.setTickMarkFill(((ObjectProperty<Color>) properties.get(key)).get());
        } else if ("style".equals(key)) {
            CONTROL.setStyle(((StringProperty) properties.get(key)).get());
        } else if ("customKnobClickHandler".equals(key)) {
            CONTROL.addCustomKnobClickHandler(((ObjectProperty<EventHandler<MouseEvent>>) properties.get(key)).get());
        }
    }
    return CONTROL;
}
Also used : ObjectProperty(javafx.beans.property.ObjectProperty) SimpleObjectProperty(javafx.beans.property.SimpleObjectProperty) MouseEvent(javafx.scene.input.MouseEvent) BooleanProperty(javafx.beans.property.BooleanProperty) SimpleBooleanProperty(javafx.beans.property.SimpleBooleanProperty) Dimension2D(javafx.geometry.Dimension2D) Color(javafx.scene.paint.Color) SimpleStringProperty(javafx.beans.property.SimpleStringProperty) StringProperty(javafx.beans.property.StringProperty) List(java.util.List) DoubleProperty(javafx.beans.property.DoubleProperty) SimpleDoubleProperty(javafx.beans.property.SimpleDoubleProperty)

Aggregations

StringProperty (javafx.beans.property.StringProperty)40 SimpleStringProperty (javafx.beans.property.SimpleStringProperty)37 DoubleProperty (javafx.beans.property.DoubleProperty)26 SimpleDoubleProperty (javafx.beans.property.SimpleDoubleProperty)25 ObjectProperty (javafx.beans.property.ObjectProperty)24 SimpleObjectProperty (javafx.beans.property.SimpleObjectProperty)24 Dimension2D (javafx.geometry.Dimension2D)23 BooleanProperty (javafx.beans.property.BooleanProperty)20 SimpleBooleanProperty (javafx.beans.property.SimpleBooleanProperty)20 SimpleIntegerProperty (javafx.beans.property.SimpleIntegerProperty)14 Color (javafx.scene.paint.Color)14 IntegerProperty (javafx.beans.property.IntegerProperty)11 List (java.util.List)8 MockedProperty (com.canoo.dp.impl.remoting.MockedProperty)4 Binding (com.canoo.platform.core.functional.Binding)4 Section (eu.hansolo.enzo.common.Section)4 IOException (java.io.IOException)4 Test (org.testng.annotations.Test)4 ChunkWrapper (com.kyj.fx.voeditor.visual.diff.ChunkWrapper)3 CompareResult (com.kyj.fx.voeditor.visual.diff.CompareResult)3