// @formatter:off /* * Unlicensed, generated by javafx.ftl */ package javafx.scene.transform; /** * {@link Rotate}建構器。 * * @author JarReflectionDataLoader-1.0.0 * @version jfxrt.jar * @param <Z> 要建構的物件型態(需繼承{@link Rotate}) * @param <B> 建構器本身的型態(需繼承{@link RotateMaker}) */ @javax.annotation.Generated("Generated by javafx.ftl") @SuppressWarnings("all") public class RotateMaker<Z extends Rotate, B extends RotateMaker<Z, B>> extends javafx.scene.transform.TransformMaker<Z, B> implements RotateMakerExt<Z, B> { private boolean hasAngle; private double valAngle; private boolean hasAxis; private javafx.geometry.Point3D valAxis; private boolean hasPivotX; private double valPivotX; private boolean hasPivotY; private double valPivotY; private boolean hasPivotZ; private double valPivotZ; private boolean bound1Angle; private boolean bound2Angle; private javafx.beans.value.ObservableValue<? extends Number> obsrv1Angle; private javafx.beans.property.Property<Number> obsrv2Angle; private boolean bound1Axis; private boolean bound2Axis; private javafx.beans.value.ObservableValue<? extends javafx.geometry.Point3D> obsrv1Axis; private javafx.beans.property.Property<javafx.geometry.Point3D> obsrv2Axis; private boolean bound1PivotX; private boolean bound2PivotX; private javafx.beans.value.ObservableValue<? extends Number> obsrv1PivotX; private javafx.beans.property.Property<Number> obsrv2PivotX; private boolean bound1PivotY; private boolean bound2PivotY; private javafx.beans.value.ObservableValue<? extends Number> obsrv1PivotY; private javafx.beans.property.Property<Number> obsrv2PivotY; private boolean bound1PivotZ; private boolean bound2PivotZ; private javafx.beans.value.ObservableValue<? extends Number> obsrv1PivotZ; private javafx.beans.property.Property<Number> obsrv2PivotZ; @Override public void applyTo(Z instance) { super.applyTo(instance); if (this.hasAngle) instance.setAngle(this.valAngle); if (this.hasAxis) instance.setAxis(this.valAxis); if (this.hasPivotX) instance.setPivotX(this.valPivotX); if (this.hasPivotY) instance.setPivotY(this.valPivotY); if (this.hasPivotZ) instance.setPivotZ(this.valPivotZ); if (this.bound1Angle) instance.angleProperty().bind(this.obsrv1Angle); if (this.bound2Angle) instance.angleProperty().bindBidirectional(this.obsrv2Angle); if (this.bound1Axis) instance.axisProperty().bind(this.obsrv1Axis); if (this.bound2Axis) instance.axisProperty().bindBidirectional(this.obsrv2Axis); if (this.bound1PivotX) instance.pivotXProperty().bind(this.obsrv1PivotX); if (this.bound2PivotX) instance.pivotXProperty().bindBidirectional(this.obsrv2PivotX); if (this.bound1PivotY) instance.pivotYProperty().bind(this.obsrv1PivotY); if (this.bound2PivotY) instance.pivotYProperty().bindBidirectional(this.obsrv2PivotY); if (this.bound1PivotZ) instance.pivotZProperty().bind(this.obsrv1PivotZ); if (this.bound2PivotZ) instance.pivotZProperty().bindBidirectional(this.obsrv2PivotZ); } /** * 設定屬性{@link Rotate#setAngle(double)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B angle(double value) { this.hasAngle = true; this.valAngle = value; return (B) this; } /** * 設定屬性{@link Rotate#setAxis(javafx.geometry.Point3D)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B axis(javafx.geometry.Point3D value) { this.hasAxis = true; this.valAxis = value; return (B) this; } /** * 設定屬性{@link Rotate#setPivotX(double)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B pivotX(double value) { this.hasPivotX = true; this.valPivotX = value; return (B) this; } /** * 設定屬性{@link Rotate#setPivotY(double)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B pivotY(double value) { this.hasPivotY = true; this.valPivotY = value; return (B) this; } /** * 設定屬性{@link Rotate#setPivotZ(double)}。 * * @param value 新的屬性值 * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public B pivotZ(double value) { this.hasPivotZ = true; this.valPivotZ = value; return (B) this; } /** * 設定屬性{@link Rotate#angleProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindAngle(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1Angle = true; this.obsrv1Angle = source; this.bound2Angle = false; this.obsrv2Angle = null; return (B) this; } /** * 設定屬性{@link Rotate#angleProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalAngle(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1Angle = false; this.obsrv1Angle = null; this.bound2Angle = true; this.obsrv2Angle = source; return (B) this; } /** * 設定屬性{@link Rotate#axisProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindAxis(javafx.beans.value.ObservableValue<? extends javafx.geometry.Point3D> source) { java.util.Objects.requireNonNull(source); this.bound1Axis = true; this.obsrv1Axis = source; this.bound2Axis = false; this.obsrv2Axis = null; return (B) this; } /** * 設定屬性{@link Rotate#axisProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalAxis(javafx.beans.property.Property<javafx.geometry.Point3D> source) { java.util.Objects.requireNonNull(source); this.bound1Axis = false; this.obsrv1Axis = null; this.bound2Axis = true; this.obsrv2Axis = source; return (B) this; } /** * 設定屬性{@link Rotate#pivotXProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindPivotX(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1PivotX = true; this.obsrv1PivotX = source; this.bound2PivotX = false; this.obsrv2PivotX = null; return (B) this; } /** * 設定屬性{@link Rotate#pivotXProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalPivotX(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1PivotX = false; this.obsrv1PivotX = null; this.bound2PivotX = true; this.obsrv2PivotX = source; return (B) this; } /** * 設定屬性{@link Rotate#pivotYProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindPivotY(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1PivotY = true; this.obsrv1PivotY = source; this.bound2PivotY = false; this.obsrv2PivotY = null; return (B) this; } /** * 設定屬性{@link Rotate#pivotYProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalPivotY(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1PivotY = false; this.obsrv1PivotY = null; this.bound2PivotY = true; this.obsrv2PivotY = source; return (B) this; } /** * 設定屬性{@link Rotate#pivotZProperty}的連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindPivotZ(javafx.beans.value.ObservableValue<? extends Number> source) { java.util.Objects.requireNonNull(source); this.bound1PivotZ = true; this.obsrv1PivotZ = source; this.bound2PivotZ = false; this.obsrv2PivotZ = null; return (B) this; } /** * 設定屬性{@link Rotate#pivotZProperty}的雙向連結。 * * @param value 新的屬性連結(單向) * @return 目前的建構器(this) */ @SuppressWarnings("unchecked") public final B bindBidirectionalPivotZ(javafx.beans.property.Property<Number> source) { java.util.Objects.requireNonNull(source); this.bound1PivotZ = false; this.obsrv1PivotZ = null; this.bound2PivotZ = true; this.obsrv2PivotZ = source; return (B) this; } /** * 建構{@link Rotate}物件。 * * @return 新的{@link Rotate}物件實體 */ @Override @SuppressWarnings("unchecked") public Rotate build() { Rotate instance = new Rotate(); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link Rotate}物件。 * * @return 新的{@link Rotate}物件實體 */ @SuppressWarnings("unchecked") public Rotate build(double arg0) { Rotate instance = new Rotate(arg0); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link Rotate}物件。 * * @return 新的{@link Rotate}物件實體 */ @SuppressWarnings("unchecked") public Rotate build(double arg0, javafx.geometry.Point3D arg1) { Rotate instance = new Rotate(arg0, arg1); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link Rotate}物件。 * * @return 新的{@link Rotate}物件實體 */ @SuppressWarnings("unchecked") public Rotate build(double arg0, double arg1, double arg2) { Rotate instance = new Rotate(arg0, arg1, arg2); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link Rotate}物件。 * * @return 新的{@link Rotate}物件實體 */ @SuppressWarnings("unchecked") public Rotate build(double arg0, double arg1, double arg2, double arg3) { Rotate instance = new Rotate(arg0, arg1, arg2, arg3); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } /** * 建構{@link Rotate}物件。 * * @return 新的{@link Rotate}物件實體 */ @SuppressWarnings("unchecked") public Rotate build(double arg0, double arg1, double arg2, double arg3, javafx.geometry.Point3D arg4) { Rotate instance = new Rotate(arg0, arg1, arg2, arg3, arg4); this.applyTo((Z) instance); this.doAfterBuild((Z) instance); return instance; } }