use of javafx.geometry.Dimension2D in project Board-Instrumentation-Framework by intel.
the class LcdClockBuilder method build.
public final LcdClock build() {
final LcdClock CONTROL = new LcdClock();
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("lcd-clock", ((StringProperty) properties.get(key)).get());
} else if ("keepAspect".equals(key)) {
CONTROL.setKeepAspect(((BooleanProperty) properties.get(key)).get());
} else if ("noFrame".equals(key)) {
CONTROL.setNoFrame(((BooleanProperty) properties.get(key)).get());
} else if ("backgroundVisible".equals(key)) {
CONTROL.setBackgroundVisible(((BooleanProperty) properties.get(key)).get());
} else if ("crystalOverlayVisible".equals(key)) {
CONTROL.setCrystalOverlayVisible(((BooleanProperty) properties.get(key)).get());
} else if ("mainInnerShadowVisible".equals(key)) {
CONTROL.setMainInnerShadowVisible(((BooleanProperty) properties.get(key)).get());
} else if ("foregroundShadowVisible".equals(key)) {
CONTROL.setForegroundShadowVisible(((BooleanProperty) properties.get(key)).get());
} else if ("title".equals(key)) {
CONTROL.setTitle(((StringProperty) properties.get(key)).get());
} else if ("titleFont".equals(key)) {
CONTROL.setTitleFont(((StringProperty) properties.get(key)).get());
} else if ("timeFont".equals(key)) {
CONTROL.setTimeFont(((ObjectProperty<LcdClock.LcdFont>) properties.get(key)).get());
} else if ("smallFont".equals(key)) {
CONTROL.setSmallFont(((StringProperty) properties.get(key)).get());
} else if ("alarmsArray".equals(key)) {
CONTROL.setAlarms(((ObjectProperty<Alarm[]>) properties.get(key)).get());
} else if ("alarmsList".equals(key)) {
CONTROL.setAlarms(((ObjectProperty<List<Alarm>>) properties.get(key)).get());
} else if ("locale".equals(key)) {
CONTROL.setLocale(((ObjectProperty<Locale>) properties.get(key)).get());
} else if ("dateFormat".equals(key)) {
CONTROL.setDateFormat(((ObjectProperty<LcdClock.DateFormat>) properties.get(key)).get());
} else if ("dateSeparator".equals(key)) {
CONTROL.setDateSeparator(((ObjectProperty<LcdClock.DateSeparator>) properties.get(key)).get());
}
}
return CONTROL;
}
use of javafx.geometry.Dimension2D in project Board-Instrumentation-Framework by intel.
the class LedBuilder method build.
public final Led build() {
final Led CONTROL = new Led();
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("led", ((StringProperty) properties.get(key)).get());
} else if ("ledColor".equals(key)) {
CONTROL.setLedColor(((ObjectProperty<Color>) properties.get(key)).get());
} else if ("ledType".equals(key)) {
CONTROL.setLedType(((ObjectProperty<Led.LedType>) properties.get(key)).get());
} else if ("on".equals(key)) {
CONTROL.setOn(((BooleanProperty) properties.get(key)).get());
} else if ("blinking".equals(key)) {
CONTROL.setBlinking(((BooleanProperty) properties.get(key)).get());
} else if ("interval".equals(key)) {
CONTROL.setInterval(((IntegerProperty) properties.get(key)).get());
} else if ("frameVisible".equals(key)) {
CONTROL.setFrameVisible(((BooleanProperty) properties.get(key)).get());
}
}
return CONTROL;
}
use of javafx.geometry.Dimension2D in project Board-Instrumentation-Framework by intel.
the class SimpleIndicatorBuilder method build.
public final SimpleIndicator build() {
final SimpleIndicator CONTROL = new SimpleIndicator();
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("indicator", ((StringProperty) properties.get(key)).get());
} else if ("indicatorStyle".equals(key)) {
CONTROL.setIndicatorStyle(((ObjectProperty<SimpleIndicator.IndicatorStyle>) properties.get(key)).get());
}
}
return CONTROL;
}
use of javafx.geometry.Dimension2D in project Board-Instrumentation-Framework by intel.
the class SquareMatrixSegmentBuilder method build.
public final SquareMatrixSegment build() {
final SquareMatrixSegment CONTROL = new SquareMatrixSegment();
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 ("ledColor".equals(key)) {
CONTROL.setColor(((ObjectProperty<Color>) properties.get(key)).get());
} else if ("character".equals(key)) {
CONTROL.setCharacter(((StringProperty) properties.get(key)).get());
} else if ("backgroundVisible".equals(key)) {
CONTROL.setBackgroundVisible(((BooleanProperty) properties.get(key)).get());
} else if ("highlightsVisible".equals(key)) {
CONTROL.setHighlightsVisible(((BooleanProperty) properties.get(key)).get());
} else if ("glowEnabled".equals(key)) {
CONTROL.setGlowEnabled(((BooleanProperty) properties.get(key)).get());
}
}
return CONTROL;
}
use of javafx.geometry.Dimension2D in project Board-Instrumentation-Framework by intel.
the class SevenSegmentBuilder method build.
public final SevenSegment build() {
final SevenSegment CONTROL = new SevenSegment();
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("seven-segment", ((StringProperty) properties.get(key)).get());
} else if ("segmentStyle".equals(key)) {
CONTROL.setSegmentStyle(((ObjectProperty<SevenSegment.SegmentStyle>) properties.get(key)).get());
} else if ("characterString".equals(key)) {
CONTROL.setCharacter(((StringProperty) properties.get(key)).get());
} else if ("characterChar".equals(key)) {
CONTROL.setCharacter(((ObjectProperty<Character>) properties.get(key)).get());
} else if ("characterInt".equals(key)) {
CONTROL.setCharacter(((IntegerProperty) properties.get(key)).get());
} else if ("dotOn".equals(key)) {
CONTROL.setDotOn(((BooleanProperty) properties.get(key)).get());
}
}
return CONTROL;
}
Aggregations