// @formatter:off /* * Unlicensed, generated by javafx.ftl */ package javafx.scene.image; /** * {@link ImageView}建構器。 * * @author JarReflectionDataLoader-1.0.0 * @version jfxrt.jar * @param <Z> 要建構的物件型態(需繼承{@link ImageView}) * @param <B> 建構器本身的型態(需繼承{@link ImageViewMaker}) */ @javax.annotation.Generated("Generated by javafx.ftl") @SuppressWarnings("all") public class ImageViewMaker<Z extends ImageView, B extends ImageViewMaker<Z, B>> extends javafx.scene.NodeMaker<Z, B> implements ImageViewMakerExt<Z, B> { private boolean hasFitHeight; private double valFitHeight; private boolean hasFitWidth; private double valFitWidth; private boolean hasImage; private javafx.scene.image.Image valImage; private boolean hasPreserveRatio; private boolean valPreserveRatio; private boolean hasSmooth; private boolean valSmooth; private boolean hasViewport; private javafx.geometry.Rectangle2D valViewport; private boolean hasX; private double valX; private boolean hasY; private double valY; private boolean bound1FitHeight; private boolean bound2FitHeight; private javafx.beans.value.ObservableValue<? extends Number> obsrv1FitHeight; private javafx.beans.property.Property<Number> obsrv2FitHeight; private boolean bound1FitWidth; private boolean bound2FitWidth; private javafx.beans.value.ObservableValue<? extends Number> obsrv1FitWidth; private javafx.beans.property.Property<Number> obsrv2FitWidth; private boolean bound1Image; private boolean bound2Image; private javafx.beans.value.ObservableValue<? extends javafx.scene.image.Image> obsrv1Image; private javafx.beans.property.Property<javafx.scene.image.Image> obsrv2Image; private boolean bound1PreserveRatio; private boolean bound2PreserveRatio; private javafx.beans.value.ObservableValue<? extends Boolean> obsrv1PreserveRatio; private javafx.beans.property.Property<Boolean> obsrv2PreserveRatio; private boolean bound1Smooth; private boolean bound2Smooth; private javafx.beans.value.ObservableValue<? extends Boolean> obsrv1Smooth; private javafx.beans.property.Property<Boolean> obsrv2Smooth; private boolean bound1Viewport; private boolean bound2Viewport; private javafx.beans.value.ObservableValue<? extends javafx.geometry.Rectangle2D> obsrv1Viewport; private javafx.beans.property.Property<javafx.geometry.Rectangle2D> obsrv2Viewport; private boolean bound1X; private boolean bound2X; private javafx.beans.value.ObservableValue<? extends Number> obsrv1X; private javafx.beans.property.Property<Number> obsrv2X; private boolean bound1Y; private boolean bound2Y; private javafx.beans.value.ObservableValue<? extends Number> obsrv1Y; private javafx.beans.property.Property<Number> obsrv2Y; @Override public void applyTo(Z instance) { super.applyTo(instance); if (this.hasFitHeight) instance.setFitHeight(this.valFitHeight); if (this.hasFitWidth) instance.setFitWidth(this.valFitWidth); if (this.hasImage) instance.setImage(this.valImage); if (this.hasPreserveRatio) instance.setPreserveRatio(this.valPreserveRatio); if (this.hasSmooth) instance.setSmooth(this.valSmooth); if (this.hasViewport) instance.setViewport(this.valViewport); if (this.hasX) instance.setX(this.valX); if (this.hasY) instance.setY(this.valY); if (this.bound1FitHeight) instance.fitHeightProperty().bind(this.obsrv1FitHeight); if (this.bound2FitHeight) instance.fitHeightProperty().bindBidirectional(this.obsrv2FitHeight); if (this.bound1FitWidth) instance.fitWidthProperty().bind(this.obsrv1FitWidth); if (this.bound2FitWidth) instance.fitWidthProperty().bindBidirectional(this.obsrv2FitWidth); if (this.bound1Image) instance.imageProperty().bind(this.obsrv1Image); if (this.bound2Image) instance.imageProperty().bindBidirectional(this.obsrv2Image); if (this.bound1PreserveRatio) instance.preserveRatioProperty().bind(this.obsrv1PreserveRatio); if (this.bound2PreserveRatio) instance.preserveRatioProperty().bindBidirectional(this.obsrv2PreserveRatio); if (this.bound1Smooth) instance.smoothProperty().bind(this.obsrv1Smooth); if (this.bound2Smooth) instance.smoothProperty().bindBidirectional(this.obsrv2Smooth); if (this.bound1Viewport) instance.viewportProperty().bind(this.obsrv1Viewport); if (this.bound2Viewport) instance.viewportProperty().bindBidirectional(this.obsrv2Viewport); if (this.bound1X) instance.xProperty().bind(this.obsrv1X); if (this.bound2X) instance.xProperty().bindBidirectional(this.obsrv2X); if (this.bound1Y) instance.yProperty().bind(this.obsrv1Y); if (this.bound2Y) instance.yProperty().bindBidirectional(this.obsrv2Y); } /** * 設定屬性{@link ImageView#setFitHeight(double)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B fitHeight(double value) { this.hasFitHeight = true; this.valFitHeight = value; return (B) this; } /** * 設定屬性{@link ImageView#setFitWidth(double)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B fitWidth(double value) { this.hasFitWidth = true; this.valFitWidth = value; return (B) this; } /** * 設定屬性{@link ImageView#setImage(javafx.scene.image.Image)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B image(javafx.scene.image.Image value) { this.hasImage = true; this.valImage = value; return (B) this; } /** * 設定屬性{@link ImageView#setPreserveRatio(boolean)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B preserveRatio(boolean value) { this.hasPreserveRatio = true; this.valPreserveRatio = value; return (B) this; } /** * 設定屬性{@link ImageView#setSmooth(boolean)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B smooth(boolean value) { this.hasSmooth = true; this.valSmooth = value; return (B) this; } /** * 設定屬性{@link ImageView#setViewport(javafx.geometry.Rectangle2D)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B viewport(javafx.geometry.Rectangle2D value) { this.hasViewport = true; this.valViewport = value; return (B) this; } /** * 設定屬性{@link ImageView#setX(double)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B x(double value) { this.hasX = true; this.valX = value; return (B) this; } /** * 設定屬性{@link ImageView#setY(double)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B y(double value) { this.hasY = true; this.valY = value; return (B) this; } /** * 設定屬性{@link ImageView#fitHeightProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindFitHeight(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1FitHeight = true; this.obsrv1FitHeight = source; this.bound2FitHeight = false; this.obsrv2FitHeight = null; return (B) this; } /** * 設定屬性{@link ImageView#fitHeightProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalFitHeight(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1FitHeight = false; this.obsrv1FitHeight = null; this.bound2FitHeight = true; this.obsrv2FitHeight = source; return (B) this; } /** * 設定屬性{@link ImageView#fitWidthProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindFitWidth(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1FitWidth = true; this.obsrv1FitWidth = source; this.bound2FitWidth = false; this.obsrv2FitWidth = null; return (B) this; } /** * 設定屬性{@link ImageView#fitWidthProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalFitWidth(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1FitWidth = false; this.obsrv1FitWidth = null; this.bound2FitWidth = true; this.obsrv2FitWidth = source; return (B) this; } /** * 設定屬性{@link ImageView#imageProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindImage(javafx.beans.value.ObservableValue<? extends javafx.scene.image.Image> source) { java.util.Objects.requireNonNull(source); this.bound1Image = true; this.obsrv1Image = source; this.bound2Image = false; this.obsrv2Image = null; return (B) this; } /** * 設定屬性{@link ImageView#imageProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalImage(javafx.beans.property.Property<javafx.scene.image.Image> source) { java.util.Objects.requireNonNull(source); this.bound1Image = false; this.obsrv1Image = null; this.bound2Image = true; this.obsrv2Image = source; return (B) this; } /** * 設定屬性{@link ImageView#preserveRatioProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindPreserveRatio(javafx.beans.value.ObservableValue<? extends Boolean> source) { java.util.Objects.requireNonNull(source); this.bound1PreserveRatio = true; this.obsrv1PreserveRatio = source; this.bound2PreserveRatio = false; this.obsrv2PreserveRatio = null; return (B) this; } /** * 設定屬性{@link ImageView#preserveRatioProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalPreserveRatio(javafx.beans.property.Property<Boolean> source) { java.util.Objects.requireNonNull(source); this.bound1PreserveRatio = false; this.obsrv1PreserveRatio = null; this.bound2PreserveRatio = true; this.obsrv2PreserveRatio = source; return (B) this; } /** * 設定屬性{@link ImageView#smoothProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindSmooth(javafx.beans.value.ObservableValue<? extends Boolean> source) { java.util.Objects.requireNonNull(source); this.bound1Smooth = true; this.obsrv1Smooth = source; this.bound2Smooth = false; this.obsrv2Smooth = null; return (B) this; } /** * 設定屬性{@link ImageView#smoothProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalSmooth(javafx.beans.property.Property<Boolean> source) { java.util.Objects.requireNonNull(source); this.bound1Smooth = false; this.obsrv1Smooth = null; this.bound2Smooth = true; this.obsrv2Smooth = source; return (B) this; } /** * 設定屬性{@link ImageView#viewportProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindViewport(javafx.beans.value.ObservableValue<? extends javafx.geometry.Rectangle2D> source) { java.util.Objects.requireNonNull(source); this.bound1Viewport = true; this.obsrv1Viewport = source; this.bound2Viewport = false; this.obsrv2Viewport = null; return (B) this; } /** * 設定屬性{@link ImageView#viewportProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalViewport(javafx.beans.property.Property<javafx.geometry.Rectangle2D> source) { java.util.Objects.requireNonNull(source); this.bound1Viewport = false; this.obsrv1Viewport = null; this.bound2Viewport = true; this.obsrv2Viewport = source; return (B) this; } /** * 設定屬性{@link ImageView#xProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindX(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1X = true; this.obsrv1X = source; this.bound2X = false; this.obsrv2X = null; return (B) this; } /** * 設定屬性{@link ImageView#xProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalX(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1X = false; this.obsrv1X = null; this.bound2X = true; this.obsrv2X = source; return (B) this; } /** * 設定屬性{@link ImageView#yProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindY(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1Y = true; this.obsrv1Y = source; this.bound2Y = false; this.obsrv2Y = null; return (B) this; } /** * 設定屬性{@link ImageView#yProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalY(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1Y = false; this.obsrv1Y = null; this.bound2Y = true; this.obsrv2Y = source; return (B) this; } /** * 建構{@link ImageView}物件。 * * @return 新的{@link ImageView}物件實體 */ @Override @SuppressWarnings("unchecked") public ImageView build() { ImageView instance = new ImageView(); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link ImageView}物件。 * * @return 新的{@link ImageView}物件實體 */ @SuppressWarnings("unchecked") public ImageView build(java.lang.String arg0) { ImageView instance = new ImageView(arg0); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link ImageView}物件。 * * @return 新的{@link ImageView}物件實體 */ @SuppressWarnings("unchecked") public ImageView build(javafx.scene.image.Image arg0) { ImageView instance = new ImageView(arg0); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } }