// @formatter:off
/*
* Unlicensed, generated by javafx.ftl
*/
package javafx.scene.shape;
/**
* {@link Rectangle}建構器。
*
* @author JarReflectionDataLoader-1.0.0
* @version jfxrt.jar
* @param <Z> 要建構的物件型態(需繼承{@link Rectangle})
* @param <B> 建構器本身的型態(需繼承{@link RectangleMaker})
*/
@javax.annotation.Generated("Generated by javafx.ftl")
@SuppressWarnings("all")
public class RectangleMaker<Z extends Rectangle, B extends RectangleMaker<Z, B>>
extends javafx.scene.shape.ShapeMaker<Z, B>
implements RectangleMakerExt<Z, B>
{
private boolean hasArcHeight;
private double valArcHeight;
private boolean hasArcWidth;
private double valArcWidth;
private boolean hasHeight;
private double valHeight;
private boolean hasWidth;
private double valWidth;
private boolean hasX;
private double valX;
private boolean hasY;
private double valY;
private boolean bound1ArcHeight;
private boolean bound2ArcHeight;
private javafx.beans.value.ObservableValue<? extends Number> obsrv1ArcHeight;
private javafx.beans.property.Property<Number> obsrv2ArcHeight;
private boolean bound1ArcWidth;
private boolean bound2ArcWidth;
private javafx.beans.value.ObservableValue<? extends Number> obsrv1ArcWidth;
private javafx.beans.property.Property<Number> obsrv2ArcWidth;
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;
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.hasArcHeight)
instance.setArcHeight(this.valArcHeight);
if (this.hasArcWidth)
instance.setArcWidth(this.valArcWidth);
if (this.hasHeight)
instance.setHeight(this.valHeight);
if (this.hasWidth)
instance.setWidth(this.valWidth);
if (this.hasX)
instance.setX(this.valX);
if (this.hasY)
instance.setY(this.valY);
if (this.bound1ArcHeight)
instance.arcHeightProperty().bind(this.obsrv1ArcHeight);
if (this.bound2ArcHeight)
instance.arcHeightProperty().bindBidirectional(this.obsrv2ArcHeight);
if (this.bound1ArcWidth)
instance.arcWidthProperty().bind(this.obsrv1ArcWidth);
if (this.bound2ArcWidth)
instance.arcWidthProperty().bindBidirectional(this.obsrv2ArcWidth);
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);
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 Rectangle#setArcHeight(double)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B arcHeight(double value)
{
this.hasArcHeight = true;
this.valArcHeight = value;
return (B) this;
}
/**
* 設定屬性{@link Rectangle#setArcWidth(double)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B arcWidth(double value)
{
this.hasArcWidth = true;
this.valArcWidth = value;
return (B) this;
}
/**
* 設定屬性{@link Rectangle#setHeight(double)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B height(double value)
{
this.hasHeight = true;
this.valHeight = value;
return (B) this;
}
/**
* 設定屬性{@link Rectangle#setWidth(double)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B width(double value)
{
this.hasWidth = true;
this.valWidth = value;
return (B) this;
}
/**
* 設定屬性{@link Rectangle#setX(double)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B x(double value)
{
this.hasX = true;
this.valX = value;
return (B) this;
}
/**
* 設定屬性{@link Rectangle#setY(double)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B y(double value)
{
this.hasY = true;
this.valY = value;
return (B) this;
}
/**
* 設定屬性{@link Rectangle#arcHeightProperty}的連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindArcHeight(javafx.beans.value.ObservableValue<? extends Number> source)
{
java.util.Objects.requireNonNull(source);
this.bound1ArcHeight = true;
this.obsrv1ArcHeight = source;
this.bound2ArcHeight = false;
this.obsrv2ArcHeight = null;
return (B) this;
}
/**
* 設定屬性{@link Rectangle#arcHeightProperty}的雙向連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindBidirectionalArcHeight(javafx.beans.property.Property<Number> source)
{
java.util.Objects.requireNonNull(source);
this.bound1ArcHeight = false;
this.obsrv1ArcHeight = null;
this.bound2ArcHeight = true;
this.obsrv2ArcHeight = source;
return (B) this;
}
/**
* 設定屬性{@link Rectangle#arcWidthProperty}的連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindArcWidth(javafx.beans.value.ObservableValue<? extends Number> source)
{
java.util.Objects.requireNonNull(source);
this.bound1ArcWidth = true;
this.obsrv1ArcWidth = source;
this.bound2ArcWidth = false;
this.obsrv2ArcWidth = null;
return (B) this;
}
/**
* 設定屬性{@link Rectangle#arcWidthProperty}的雙向連結。
*
* @param value 新的屬性連結(單向)
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public final B bindBidirectionalArcWidth(javafx.beans.property.Property<Number> source)
{
java.util.Objects.requireNonNull(source);
this.bound1ArcWidth = false;
this.obsrv1ArcWidth = null;
this.bound2ArcWidth = true;
this.obsrv2ArcWidth = source;
return (B) this;
}
/**
* 設定屬性{@link Rectangle#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 Rectangle#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 Rectangle#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 Rectangle#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 Rectangle#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 Rectangle#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 Rectangle#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 Rectangle#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 Rectangle}物件。
*
* @return 新的{@link Rectangle}物件實體
*/
@Override
@SuppressWarnings("unchecked")
public Rectangle build()
{
Rectangle instance = new Rectangle();
this.applyTo((Z) instance);
this.doAfterBuild((Z) instance);
return instance;
}
/**
* 建構{@link Rectangle}物件。
*
* @return 新的{@link Rectangle}物件實體
*/
@SuppressWarnings("unchecked")
public Rectangle build(double arg0, double arg1)
{
Rectangle instance = new Rectangle(arg0, arg1);
this.applyTo((Z) instance);
this.doAfterBuild((Z) instance);
return instance;
}
/**
* 建構{@link Rectangle}物件。
*
* @return 新的{@link Rectangle}物件實體
*/
@SuppressWarnings("unchecked")
public Rectangle build(double arg0, double arg1, javafx.scene.paint.Paint arg2)
{
Rectangle instance = new Rectangle(arg0, arg1, arg2);
this.applyTo((Z) instance);
this.doAfterBuild((Z) instance);
return instance;
}
/**
* 建構{@link Rectangle}物件。
*
* @return 新的{@link Rectangle}物件實體
*/
@SuppressWarnings("unchecked")
public Rectangle build(double arg0, double arg1, double arg2, double arg3)
{
Rectangle instance = new Rectangle(arg0, arg1, arg2, arg3);
this.applyTo((Z) instance);
this.doAfterBuild((Z) instance);
return instance;
}
}