// @formatter:off
/*
* Unlicensed, generated by javafx.ftl
*/
package javafx.scene.shape;
/**
* {@link VLineTo}建構器。
*
* @author JarReflectionDataLoader-1.0.0
* @version jfxrt.jar
* @param <Z> 要建構的物件型態(需繼承{@link VLineTo})
* @param <B> 建構器本身的型態(需繼承{@link VLineToMaker})
*/
@javax.annotation.Generated("Generated by javafx.ftl")
@SuppressWarnings("all")
public class VLineToMaker<Z extends VLineTo, B extends VLineToMaker<Z, B>>
extends javafx.scene.shape.PathElementMaker<Z, B>
implements VLineToMakerExt<Z, B>
{
private boolean hasY;
private double valY;
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.hasY)
instance.setY(this.valY);
if (this.bound1Y)
instance.yProperty().bind(this.obsrv1Y);
if (this.bound2Y)
instance.yProperty().bindBidirectional(this.obsrv2Y);
}
/**
* 設定屬性{@link VLineTo#setY(double)}。
*
* @param value 新的屬性值
* @return 目前的建構器(this)
*/
@SuppressWarnings("unchecked")
public B y(double value)
{
this.hasY = true;
this.valY = value;
return (B) this;
}
/**
* 設定屬性{@link VLineTo#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 VLineTo#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 VLineTo}物件。
*
* @return 新的{@link VLineTo}物件實體
*/
@Override
@SuppressWarnings("unchecked")
public VLineTo build()
{
VLineTo instance = new VLineTo();
this.applyTo((Z) instance);
this.doAfterBuild((Z) instance);
return instance;
}
/**
* 建構{@link VLineTo}物件。
*
* @return 新的{@link VLineTo}物件實體
*/
@SuppressWarnings("unchecked")
public VLineTo build(double arg0)
{
VLineTo instance = new VLineTo(arg0);
this.applyTo((Z) instance);
this.doAfterBuild((Z) instance);
return instance;
}
}