// @formatter:off /* * Unlicensed, generated by javafx.ftl */ package javafx.scene.effect; /** * {@link FloatMap}建構器。 * * @author JarReflectionDataLoader-1.0.0 * @version jfxrt.jar * @param <Z> 要建構的物件型態(需繼承{@link FloatMap}) * @param <B> 建構器本身的型態(需繼承{@link FloatMapMaker}) */ @javax.annotation.Generated("Generated by javafx.ftl") @SuppressWarnings("all") public class FloatMapMaker<Z extends FloatMap, B extends FloatMapMaker<Z, B>> extends jxtn.jfx.makers.AbstractMaker<Z, B> implements FloatMapMakerExt<Z, B> { private boolean hasHeight; private int valHeight; private boolean hasWidth; private int valWidth; private boolean bound1Height; private boolean bound2Height; private javafx.beans.value.ObservableValue<? extends Number> obsrv1Height; private javafx.beans.property.Property<Number> obsrv2Height; private boolean bound1Width; private boolean bound2Width; private javafx.beans.value.ObservableValue<? extends Number> obsrv1Width; private javafx.beans.property.Property<Number> obsrv2Width; @Override public void applyTo(Z instance) { super.applyTo(instance); if (this.hasHeight) instance.setHeight(this.valHeight); if (this.hasWidth) instance.setWidth(this.valWidth); if (this.bound1Height) instance.heightProperty().bind(this.obsrv1Height); if (this.bound2Height) instance.heightProperty().bindBidirectional(this.obsrv2Height); if (this.bound1Width) instance.widthProperty().bind(this.obsrv1Width); if (this.bound2Width) instance.widthProperty().bindBidirectional(this.obsrv2Width); } /** * 設定屬性{@link FloatMap#setHeight(int)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B height(int value) { this.hasHeight = true; this.valHeight = value; return (B) this; } /** * 設定屬性{@link FloatMap#setWidth(int)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B width(int value) { this.hasWidth = true; this.valWidth = value; return (B) this; } /** * 設定屬性{@link FloatMap#heightProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindHeight(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1Height = true; this.obsrv1Height = source; this.bound2Height = false; this.obsrv2Height = null; return (B) this; } /** * 設定屬性{@link FloatMap#heightProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalHeight(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1Height = false; this.obsrv1Height = null; this.bound2Height = true; this.obsrv2Height = source; return (B) this; } /** * 設定屬性{@link FloatMap#widthProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindWidth(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1Width = true; this.obsrv1Width = source; this.bound2Width = false; this.obsrv2Width = null; return (B) this; } /** * 設定屬性{@link FloatMap#widthProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalWidth(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1Width = false; this.obsrv1Width = null; this.bound2Width = true; this.obsrv2Width = source; return (B) this; } /** * 建構{@link FloatMap}物件。 * * @return 新的{@link FloatMap}物件實體 */ @Override @SuppressWarnings("unchecked") public FloatMap build() { FloatMap instance = new FloatMap(); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link FloatMap}物件。 * * @return 新的{@link FloatMap}物件實體 */ @SuppressWarnings("unchecked") public FloatMap build(int arg0, int arg1) { FloatMap instance = new FloatMap(arg0, arg1); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } }