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.transform;
027
028/**
029Builder class for javafx.scene.transform.Affine
030@see javafx.scene.transform.Affine
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 AffineBuilder<B extends javafx.scene.transform.AffineBuilder<B>> implements javafx.util.Builder<javafx.scene.transform.Affine> {
036    protected AffineBuilder() {
037    }
038    
039    /** Creates a new instance of AffineBuilder. */
040    @SuppressWarnings({"deprecation", "rawtypes", "unchecked"})
041    public static javafx.scene.transform.AffineBuilder<?> create() {
042        return new javafx.scene.transform.AffineBuilder();
043    }
044    
045    private int __set;
046    private void __set(int i) {
047        __set |= 1 << i;
048    }
049    public void applyTo(javafx.scene.transform.Affine x) {
050        int set = __set;
051        while (set != 0) {
052            int i = Integer.numberOfTrailingZeros(set);
053            set &= ~(1 << i);
054            switch (i) {
055                case 0: x.setMxx(this.mxx); break;
056                case 1: x.setMxy(this.mxy); break;
057                case 2: x.setMxz(this.mxz); break;
058                case 3: x.setMyx(this.myx); break;
059                case 4: x.setMyy(this.myy); break;
060                case 5: x.setMyz(this.myz); break;
061                case 6: x.setMzx(this.mzx); break;
062                case 7: x.setMzy(this.mzy); break;
063                case 8: x.setMzz(this.mzz); break;
064                case 9: x.setTx(this.tx); break;
065                case 10: x.setTy(this.ty); break;
066                case 11: x.setTz(this.tz); break;
067            }
068        }
069    }
070    
071    private double mxx;
072    /**
073    Set the value of the {@link javafx.scene.transform.Affine#getMxx() mxx} property for the instance constructed by this builder.
074    */
075    @SuppressWarnings("unchecked")
076    public B mxx(double x) {
077        this.mxx = x;
078        __set(0);
079        return (B) this;
080    }
081    
082    private double mxy;
083    /**
084    Set the value of the {@link javafx.scene.transform.Affine#getMxy() mxy} property for the instance constructed by this builder.
085    */
086    @SuppressWarnings("unchecked")
087    public B mxy(double x) {
088        this.mxy = x;
089        __set(1);
090        return (B) this;
091    }
092    
093    private double mxz;
094    /**
095    Set the value of the {@link javafx.scene.transform.Affine#getMxz() mxz} property for the instance constructed by this builder.
096    */
097    @SuppressWarnings("unchecked")
098    public B mxz(double x) {
099        this.mxz = x;
100        __set(2);
101        return (B) this;
102    }
103    
104    private double myx;
105    /**
106    Set the value of the {@link javafx.scene.transform.Affine#getMyx() myx} property for the instance constructed by this builder.
107    */
108    @SuppressWarnings("unchecked")
109    public B myx(double x) {
110        this.myx = x;
111        __set(3);
112        return (B) this;
113    }
114    
115    private double myy;
116    /**
117    Set the value of the {@link javafx.scene.transform.Affine#getMyy() myy} property for the instance constructed by this builder.
118    */
119    @SuppressWarnings("unchecked")
120    public B myy(double x) {
121        this.myy = x;
122        __set(4);
123        return (B) this;
124    }
125    
126    private double myz;
127    /**
128    Set the value of the {@link javafx.scene.transform.Affine#getMyz() myz} property for the instance constructed by this builder.
129    */
130    @SuppressWarnings("unchecked")
131    public B myz(double x) {
132        this.myz = x;
133        __set(5);
134        return (B) this;
135    }
136    
137    private double mzx;
138    /**
139    Set the value of the {@link javafx.scene.transform.Affine#getMzx() mzx} property for the instance constructed by this builder.
140    */
141    @SuppressWarnings("unchecked")
142    public B mzx(double x) {
143        this.mzx = x;
144        __set(6);
145        return (B) this;
146    }
147    
148    private double mzy;
149    /**
150    Set the value of the {@link javafx.scene.transform.Affine#getMzy() mzy} property for the instance constructed by this builder.
151    */
152    @SuppressWarnings("unchecked")
153    public B mzy(double x) {
154        this.mzy = x;
155        __set(7);
156        return (B) this;
157    }
158    
159    private double mzz;
160    /**
161    Set the value of the {@link javafx.scene.transform.Affine#getMzz() mzz} property for the instance constructed by this builder.
162    */
163    @SuppressWarnings("unchecked")
164    public B mzz(double x) {
165        this.mzz = x;
166        __set(8);
167        return (B) this;
168    }
169    
170    private double tx;
171    /**
172    Set the value of the {@link javafx.scene.transform.Affine#getTx() tx} property for the instance constructed by this builder.
173    */
174    @SuppressWarnings("unchecked")
175    public B tx(double x) {
176        this.tx = x;
177        __set(9);
178        return (B) this;
179    }
180    
181    private double ty;
182    /**
183    Set the value of the {@link javafx.scene.transform.Affine#getTy() ty} property for the instance constructed by this builder.
184    */
185    @SuppressWarnings("unchecked")
186    public B ty(double x) {
187        this.ty = x;
188        __set(10);
189        return (B) this;
190    }
191    
192    private double tz;
193    /**
194    Set the value of the {@link javafx.scene.transform.Affine#getTz() tz} property for the instance constructed by this builder.
195    */
196    @SuppressWarnings("unchecked")
197    public B tz(double x) {
198        this.tz = x;
199        __set(11);
200        return (B) this;
201    }
202    
203    /**
204    Make an instance of {@link javafx.scene.transform.Affine} based on the properties set on this builder.
205    */
206    public javafx.scene.transform.Affine build() {
207        javafx.scene.transform.Affine x = new javafx.scene.transform.Affine();
208        applyTo(x);
209        return x;
210    }
211}