Spec-Zone .ru
спецификации, руководства, описания, API
001/* 
002 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
003 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004 *
005 * This code is free software; you can redistribute it and/or modify it
006 * under the terms of the GNU General Public License version 2 only, as
007 * published by the Free Software Foundation.  Oracle designates this
008 * particular file as subject to the "Classpath" exception as provided
009 * by Oracle in the LICENSE file that accompanied this code.
010 *
011 * This code is distributed in the hope that it will be useful, but WITHOUT
012 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
013 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
014 * version 2 for more details (a copy is included in the LICENSE file that
015 * accompanied this code).
016 *
017 * You should have received a copy of the GNU General Public License version
018 * 2 along with this work; if not, write to the Free Software Foundation,
019 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
020 *
021 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
022 * or visit www.oracle.com if you need additional information or have any
023 * questions.
024 */
025
026package javafx.scene.shape;
027
028/**
029Builder class for javafx.scene.shape.Arc
030@see javafx.scene.shape.Arc
031@deprecated This class is deprecated and will be removed in the next version
032*/
033@javax.annotation.Generated("Generated by javafx.builder.processor.BuilderProcessor")
034@Deprecated
035public class ArcBuilder<B extends javafx.scene.shape.ArcBuilder<B>> extends javafx.scene.shape.ShapeBuilder<B> implements javafx.util.Builder<javafx.scene.shape.Arc> {
036    protected ArcBuilder() {
037    }
038    
039    /** Creates a new instance of ArcBuilder. */
040    @SuppressWarnings({"deprecation", "rawtypes", "unchecked"})
041    public static javafx.scene.shape.ArcBuilder<?> create() {
042        return new javafx.scene.shape.ArcBuilder();
043    }
044    
045    private int __set;
046    public void applyTo(javafx.scene.shape.Arc x) {
047        super.applyTo(x);
048        int set = __set;
049        if ((set & (1 << 0)) != 0) x.setCenterX(this.centerX);
050        if ((set & (1 << 1)) != 0) x.setCenterY(this.centerY);
051        if ((set & (1 << 2)) != 0) x.setLength(this.length);
052        if ((set & (1 << 3)) != 0) x.setRadiusX(this.radiusX);
053        if ((set & (1 << 4)) != 0) x.setRadiusY(this.radiusY);
054        if ((set & (1 << 5)) != 0) x.setStartAngle(this.startAngle);
055        if ((set & (1 << 6)) != 0) x.setType(this.type);
056    }
057    
058    private double centerX;
059    /**
060    Set the value of the {@link javafx.scene.shape.Arc#getCenterX() centerX} property for the instance constructed by this builder.
061    */
062    @SuppressWarnings("unchecked")
063    public B centerX(double x) {
064        this.centerX = x;
065        __set |= 1 << 0;
066        return (B) this;
067    }
068    
069    private double centerY;
070    /**
071    Set the value of the {@link javafx.scene.shape.Arc#getCenterY() centerY} property for the instance constructed by this builder.
072    */
073    @SuppressWarnings("unchecked")
074    public B centerY(double x) {
075        this.centerY = x;
076        __set |= 1 << 1;
077        return (B) this;
078    }
079    
080    private double length;
081    /**
082    Set the value of the {@link javafx.scene.shape.Arc#getLength() length} property for the instance constructed by this builder.
083    */
084    @SuppressWarnings("unchecked")
085    public B length(double x) {
086        this.length = x;
087        __set |= 1 << 2;
088        return (B) this;
089    }
090    
091    private double radiusX;
092    /**
093    Set the value of the {@link javafx.scene.shape.Arc#getRadiusX() radiusX} property for the instance constructed by this builder.
094    */
095    @SuppressWarnings("unchecked")
096    public B radiusX(double x) {
097        this.radiusX = x;
098        __set |= 1 << 3;
099        return (B) this;
100    }
101    
102    private double radiusY;
103    /**
104    Set the value of the {@link javafx.scene.shape.Arc#getRadiusY() radiusY} property for the instance constructed by this builder.
105    */
106    @SuppressWarnings("unchecked")
107    public B radiusY(double x) {
108        this.radiusY = x;
109        __set |= 1 << 4;
110        return (B) this;
111    }
112    
113    private double startAngle;
114    /**
115    Set the value of the {@link javafx.scene.shape.Arc#getStartAngle() startAngle} property for the instance constructed by this builder.
116    */
117    @SuppressWarnings("unchecked")
118    public B startAngle(double x) {
119        this.startAngle = x;
120        __set |= 1 << 5;
121        return (B) this;
122    }
123    
124    private javafx.scene.shape.ArcType type;
125    /**
126    Set the value of the {@link javafx.scene.shape.Arc#getType() type} property for the instance constructed by this builder.
127    */
128    @SuppressWarnings("unchecked")
129    public B type(javafx.scene.shape.ArcType x) {
130        this.type = x;
131        __set |= 1 << 6;
132        return (B) this;
133    }
134    
135    /**
136    Make an instance of {@link javafx.scene.shape.Arc} based on the properties set on this builder.
137    */
138    public javafx.scene.shape.Arc build() {
139        javafx.scene.shape.Arc x = new javafx.scene.shape.Arc();
140        applyTo(x);
141        return x;
142    }
143}