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.animation;
027
028/**
029Builder class for javafx.animation.TranslateTransition
030@see javafx.animation.TranslateTransition
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 final class TranslateTransitionBuilder extends javafx.animation.TransitionBuilder<javafx.animation.TranslateTransitionBuilder> implements javafx.util.Builder<javafx.animation.TranslateTransition> {
036    protected TranslateTransitionBuilder() {
037    }
038    
039    /** Creates a new instance of TranslateTransitionBuilder. */
040    @SuppressWarnings({"deprecation", "rawtypes", "unchecked"})
041    public static javafx.animation.TranslateTransitionBuilder create() {
042        return new javafx.animation.TranslateTransitionBuilder();
043    }
044    
045    private int __set;
046    private void __set(int i) {
047        __set |= 1 << i;
048    }
049    public void applyTo(javafx.animation.TranslateTransition x) {
050        super.applyTo(x);
051        int set = __set;
052        while (set != 0) {
053            int i = Integer.numberOfTrailingZeros(set);
054            set &= ~(1 << i);
055            switch (i) {
056                case 0: x.setByX(this.byX); break;
057                case 1: x.setByY(this.byY); break;
058                case 2: x.setByZ(this.byZ); break;
059                case 3: x.setDuration(this.duration); break;
060                case 4: x.setFromX(this.fromX); break;
061                case 5: x.setFromY(this.fromY); break;
062                case 6: x.setFromZ(this.fromZ); break;
063                case 7: x.setNode(this.node); break;
064                case 8: x.setToX(this.toX); break;
065                case 9: x.setToY(this.toY); break;
066                case 10: x.setToZ(this.toZ); break;
067            }
068        }
069    }
070    
071    private double byX;
072    /**
073    Set the value of the {@link javafx.animation.TranslateTransition#getByX() byX} property for the instance constructed by this builder.
074    */
075    public javafx.animation.TranslateTransitionBuilder byX(double x) {
076        this.byX = x;
077        __set(0);
078        return this;
079    }
080    
081    private double byY;
082    /**
083    Set the value of the {@link javafx.animation.TranslateTransition#getByY() byY} property for the instance constructed by this builder.
084    */
085    public javafx.animation.TranslateTransitionBuilder byY(double x) {
086        this.byY = x;
087        __set(1);
088        return this;
089    }
090    
091    private double byZ;
092    /**
093    Set the value of the {@link javafx.animation.TranslateTransition#getByZ() byZ} property for the instance constructed by this builder.
094    */
095    public javafx.animation.TranslateTransitionBuilder byZ(double x) {
096        this.byZ = x;
097        __set(2);
098        return this;
099    }
100    
101    private javafx.util.Duration duration;
102    /**
103    Set the value of the {@link javafx.animation.TranslateTransition#getDuration() duration} property for the instance constructed by this builder.
104    */
105    public javafx.animation.TranslateTransitionBuilder duration(javafx.util.Duration x) {
106        this.duration = x;
107        __set(3);
108        return this;
109    }
110    
111    private double fromX;
112    /**
113    Set the value of the {@link javafx.animation.TranslateTransition#getFromX() fromX} property for the instance constructed by this builder.
114    */
115    public javafx.animation.TranslateTransitionBuilder fromX(double x) {
116        this.fromX = x;
117        __set(4);
118        return this;
119    }
120    
121    private double fromY;
122    /**
123    Set the value of the {@link javafx.animation.TranslateTransition#getFromY() fromY} property for the instance constructed by this builder.
124    */
125    public javafx.animation.TranslateTransitionBuilder fromY(double x) {
126        this.fromY = x;
127        __set(5);
128        return this;
129    }
130    
131    private double fromZ;
132    /**
133    Set the value of the {@link javafx.animation.TranslateTransition#getFromZ() fromZ} property for the instance constructed by this builder.
134    */
135    public javafx.animation.TranslateTransitionBuilder fromZ(double x) {
136        this.fromZ = x;
137        __set(6);
138        return this;
139    }
140    
141    private javafx.scene.Node node;
142    /**
143    Set the value of the {@link javafx.animation.TranslateTransition#getNode() node} property for the instance constructed by this builder.
144    */
145    public javafx.animation.TranslateTransitionBuilder node(javafx.scene.Node x) {
146        this.node = x;
147        __set(7);
148        return this;
149    }
150    
151    private double toX;
152    /**
153    Set the value of the {@link javafx.animation.TranslateTransition#getToX() toX} property for the instance constructed by this builder.
154    */
155    public javafx.animation.TranslateTransitionBuilder toX(double x) {
156        this.toX = x;
157        __set(8);
158        return this;
159    }
160    
161    private double toY;
162    /**
163    Set the value of the {@link javafx.animation.TranslateTransition#getToY() toY} property for the instance constructed by this builder.
164    */
165    public javafx.animation.TranslateTransitionBuilder toY(double x) {
166        this.toY = x;
167        __set(9);
168        return this;
169    }
170    
171    private double toZ;
172    /**
173    Set the value of the {@link javafx.animation.TranslateTransition#getToZ() toZ} property for the instance constructed by this builder.
174    */
175    public javafx.animation.TranslateTransitionBuilder toZ(double x) {
176        this.toZ = x;
177        __set(10);
178        return this;
179    }
180    
181    /**
182    Make an instance of {@link javafx.animation.TranslateTransition} based on the properties set on this builder.
183    */
184    public javafx.animation.TranslateTransition build() {
185        javafx.animation.TranslateTransition x = new javafx.animation.TranslateTransition();
186        applyTo(x);
187        return x;
188    }
189}