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;
027
028/**
029Builder class for javafx.scene.Scene
030@see javafx.scene.Scene
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 SceneBuilder<B extends javafx.scene.SceneBuilder<B>> implements javafx.util.Builder<javafx.scene.Scene> {
036    protected SceneBuilder() {
037    }
038    
039    /** Creates a new instance of SceneBuilder. */
040    @SuppressWarnings({"deprecation", "rawtypes", "unchecked"})
041    public static javafx.scene.SceneBuilder<?> create() {
042        return new javafx.scene.SceneBuilder();
043    }
044    
045    private long __set;
046    private void __set(int i) {
047        __set |= 1L << i;
048    }
049    public void applyTo(javafx.scene.Scene x) {
050        long set = __set;
051        while (set != 0) {
052            int i = Long.numberOfTrailingZeros(set);
053            set &= ~(1L << i);
054            switch (i) {
055                case 0: x.setCamera(this.camera); break;
056                case 1: x.setCursor(this.cursor); break;
057                case 2: x.setEventDispatcher(this.eventDispatcher); break;
058                case 3: x.setFill(this.fill); break;
059                case 4: x.setOnContextMenuRequested(this.onContextMenuRequested); break;
060                case 5: x.setOnDragDetected(this.onDragDetected); break;
061                case 6: x.setOnDragDone(this.onDragDone); break;
062                case 7: x.setOnDragDropped(this.onDragDropped); break;
063                case 8: x.setOnDragEntered(this.onDragEntered); break;
064                case 9: x.setOnDragExited(this.onDragExited); break;
065                case 10: x.setOnDragOver(this.onDragOver); break;
066                case 11: x.setOnInputMethodTextChanged(this.onInputMethodTextChanged); break;
067                case 12: x.setOnKeyPressed(this.onKeyPressed); break;
068                case 13: x.setOnKeyReleased(this.onKeyReleased); break;
069                case 14: x.setOnKeyTyped(this.onKeyTyped); break;
070                case 15: x.setOnMouseClicked(this.onMouseClicked); break;
071                case 16: x.setOnMouseDragEntered(this.onMouseDragEntered); break;
072                case 17: x.setOnMouseDragExited(this.onMouseDragExited); break;
073                case 18: x.setOnMouseDragged(this.onMouseDragged); break;
074                case 19: x.setOnMouseDragOver(this.onMouseDragOver); break;
075                case 20: x.setOnMouseDragReleased(this.onMouseDragReleased); break;
076                case 21: x.setOnMouseEntered(this.onMouseEntered); break;
077                case 22: x.setOnMouseExited(this.onMouseExited); break;
078                case 23: x.setOnMouseMoved(this.onMouseMoved); break;
079                case 24: x.setOnMousePressed(this.onMousePressed); break;
080                case 25: x.setOnMouseReleased(this.onMouseReleased); break;
081                case 26: x.setOnRotate(this.onRotate); break;
082                case 27: x.setOnRotationFinished(this.onRotationFinished); break;
083                case 28: x.setOnRotationStarted(this.onRotationStarted); break;
084                case 29: x.setOnScroll(this.onScroll); break;
085                case 30: x.setOnScrollFinished(this.onScrollFinished); break;
086                case 31: x.setOnScrollStarted(this.onScrollStarted); break;
087                case 32: x.setOnSwipeDown(this.onSwipeDown); break;
088                case 33: x.setOnSwipeLeft(this.onSwipeLeft); break;
089                case 34: x.setOnSwipeRight(this.onSwipeRight); break;
090                case 35: x.setOnSwipeUp(this.onSwipeUp); break;
091                case 36: x.setOnTouchMoved(this.onTouchMoved); break;
092                case 37: x.setOnTouchPressed(this.onTouchPressed); break;
093                case 38: x.setOnTouchReleased(this.onTouchReleased); break;
094                case 39: x.setOnTouchStationary(this.onTouchStationary); break;
095                case 40: x.setOnZoom(this.onZoom); break;
096                case 41: x.setOnZoomFinished(this.onZoomFinished); break;
097                case 42: x.setOnZoomStarted(this.onZoomStarted); break;
098                case 43: x.getStylesheets().addAll(this.stylesheets); break;
099            }
100        }
101    }
102    
103    private javafx.scene.Camera camera;
104    /**
105    Set the value of the {@link javafx.scene.Scene#getCamera() camera} property for the instance constructed by this builder.
106    */
107    @SuppressWarnings("unchecked")
108    public B camera(javafx.scene.Camera x) {
109        this.camera = x;
110        __set(0);
111        return (B) this;
112    }
113    
114    private javafx.scene.Cursor cursor;
115    /**
116    Set the value of the {@link javafx.scene.Scene#getCursor() cursor} property for the instance constructed by this builder.
117    */
118    @SuppressWarnings("unchecked")
119    public B cursor(javafx.scene.Cursor x) {
120        this.cursor = x;
121        __set(1);
122        return (B) this;
123    }
124    
125    private boolean depthBuffer;
126    /**
127    Set the value of the {@link javafx.scene.Scene#isDepthBuffer() depthBuffer} property for the instance constructed by this builder.
128    */
129    @SuppressWarnings("unchecked")
130    public B depthBuffer(boolean x) {
131        this.depthBuffer = x;
132        return (B) this;
133    }
134    
135    private javafx.event.EventDispatcher eventDispatcher;
136    /**
137    Set the value of the {@link javafx.scene.Scene#getEventDispatcher() eventDispatcher} property for the instance constructed by this builder.
138    */
139    @SuppressWarnings("unchecked")
140    public B eventDispatcher(javafx.event.EventDispatcher x) {
141        this.eventDispatcher = x;
142        __set(2);
143        return (B) this;
144    }
145    
146    private javafx.scene.paint.Paint fill;
147    /**
148    Set the value of the {@link javafx.scene.Scene#getFill() fill} property for the instance constructed by this builder.
149    */
150    @SuppressWarnings("unchecked")
151    public B fill(javafx.scene.paint.Paint x) {
152        this.fill = x;
153        __set(3);
154        return (B) this;
155    }
156    
157    private double height = -1;
158    /**
159    Set the value of the {@link javafx.scene.Scene#getHeight() height} property for the instance constructed by this builder.
160    */
161    @SuppressWarnings("unchecked")
162    public B height(double x) {
163        this.height = x;
164        return (B) this;
165    }
166    
167    private javafx.event.EventHandler<? super javafx.scene.input.ContextMenuEvent> onContextMenuRequested;
168    /**
169    Set the value of the {@link javafx.scene.Scene#getOnContextMenuRequested() onContextMenuRequested} property for the instance constructed by this builder.
170    */
171    @SuppressWarnings("unchecked")
172    public B onContextMenuRequested(javafx.event.EventHandler<? super javafx.scene.input.ContextMenuEvent> x) {
173        this.onContextMenuRequested = x;
174        __set(4);
175        return (B) this;
176    }
177    
178    private javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> onDragDetected;
179    /**
180    Set the value of the {@link javafx.scene.Scene#getOnDragDetected() onDragDetected} property for the instance constructed by this builder.
181    */
182    @SuppressWarnings("unchecked")
183    public B onDragDetected(javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> x) {
184        this.onDragDetected = x;
185        __set(5);
186        return (B) this;
187    }
188    
189    private javafx.event.EventHandler<? super javafx.scene.input.DragEvent> onDragDone;
190    /**
191    Set the value of the {@link javafx.scene.Scene#getOnDragDone() onDragDone} property for the instance constructed by this builder.
192    */
193    @SuppressWarnings("unchecked")
194    public B onDragDone(javafx.event.EventHandler<? super javafx.scene.input.DragEvent> x) {
195        this.onDragDone = x;
196        __set(6);
197        return (B) this;
198    }
199    
200    private javafx.event.EventHandler<? super javafx.scene.input.DragEvent> onDragDropped;
201    /**
202    Set the value of the {@link javafx.scene.Scene#getOnDragDropped() onDragDropped} property for the instance constructed by this builder.
203    */
204    @SuppressWarnings("unchecked")
205    public B onDragDropped(javafx.event.EventHandler<? super javafx.scene.input.DragEvent> x) {
206        this.onDragDropped = x;
207        __set(7);
208        return (B) this;
209    }
210    
211    private javafx.event.EventHandler<? super javafx.scene.input.DragEvent> onDragEntered;
212    /**
213    Set the value of the {@link javafx.scene.Scene#getOnDragEntered() onDragEntered} property for the instance constructed by this builder.
214    */
215    @SuppressWarnings("unchecked")
216    public B onDragEntered(javafx.event.EventHandler<? super javafx.scene.input.DragEvent> x) {
217        this.onDragEntered = x;
218        __set(8);
219        return (B) this;
220    }
221    
222    private javafx.event.EventHandler<? super javafx.scene.input.DragEvent> onDragExited;
223    /**
224    Set the value of the {@link javafx.scene.Scene#getOnDragExited() onDragExited} property for the instance constructed by this builder.
225    */
226    @SuppressWarnings("unchecked")
227    public B onDragExited(javafx.event.EventHandler<? super javafx.scene.input.DragEvent> x) {
228        this.onDragExited = x;
229        __set(9);
230        return (B) this;
231    }
232    
233    private javafx.event.EventHandler<? super javafx.scene.input.DragEvent> onDragOver;
234    /**
235    Set the value of the {@link javafx.scene.Scene#getOnDragOver() onDragOver} property for the instance constructed by this builder.
236    */
237    @SuppressWarnings("unchecked")
238    public B onDragOver(javafx.event.EventHandler<? super javafx.scene.input.DragEvent> x) {
239        this.onDragOver = x;
240        __set(10);
241        return (B) this;
242    }
243    
244    private javafx.event.EventHandler<? super javafx.scene.input.InputMethodEvent> onInputMethodTextChanged;
245    /**
246    Set the value of the {@link javafx.scene.Scene#getOnInputMethodTextChanged() onInputMethodTextChanged} property for the instance constructed by this builder.
247    */
248    @SuppressWarnings("unchecked")
249    public B onInputMethodTextChanged(javafx.event.EventHandler<? super javafx.scene.input.InputMethodEvent> x) {
250        this.onInputMethodTextChanged = x;
251        __set(11);
252        return (B) this;
253    }
254    
255    private javafx.event.EventHandler<? super javafx.scene.input.KeyEvent> onKeyPressed;
256    /**
257    Set the value of the {@link javafx.scene.Scene#getOnKeyPressed() onKeyPressed} property for the instance constructed by this builder.
258    */
259    @SuppressWarnings("unchecked")
260    public B onKeyPressed(javafx.event.EventHandler<? super javafx.scene.input.KeyEvent> x) {
261        this.onKeyPressed = x;
262        __set(12);
263        return (B) this;
264    }
265    
266    private javafx.event.EventHandler<? super javafx.scene.input.KeyEvent> onKeyReleased;
267    /**
268    Set the value of the {@link javafx.scene.Scene#getOnKeyReleased() onKeyReleased} property for the instance constructed by this builder.
269    */
270    @SuppressWarnings("unchecked")
271    public B onKeyReleased(javafx.event.EventHandler<? super javafx.scene.input.KeyEvent> x) {
272        this.onKeyReleased = x;
273        __set(13);
274        return (B) this;
275    }
276    
277    private javafx.event.EventHandler<? super javafx.scene.input.KeyEvent> onKeyTyped;
278    /**
279    Set the value of the {@link javafx.scene.Scene#getOnKeyTyped() onKeyTyped} property for the instance constructed by this builder.
280    */
281    @SuppressWarnings("unchecked")
282    public B onKeyTyped(javafx.event.EventHandler<? super javafx.scene.input.KeyEvent> x) {
283        this.onKeyTyped = x;
284        __set(14);
285        return (B) this;
286    }
287    
288    private javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> onMouseClicked;
289    /**
290    Set the value of the {@link javafx.scene.Scene#getOnMouseClicked() onMouseClicked} property for the instance constructed by this builder.
291    */
292    @SuppressWarnings("unchecked")
293    public B onMouseClicked(javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> x) {
294        this.onMouseClicked = x;
295        __set(15);
296        return (B) this;
297    }
298    
299    private javafx.event.EventHandler<? super javafx.scene.input.MouseDragEvent> onMouseDragEntered;
300    /**
301    Set the value of the {@link javafx.scene.Scene#getOnMouseDragEntered() onMouseDragEntered} property for the instance constructed by this builder.
302    */
303    @SuppressWarnings("unchecked")
304    public B onMouseDragEntered(javafx.event.EventHandler<? super javafx.scene.input.MouseDragEvent> x) {
305        this.onMouseDragEntered = x;
306        __set(16);
307        return (B) this;
308    }
309    
310    private javafx.event.EventHandler<? super javafx.scene.input.MouseDragEvent> onMouseDragExited;
311    /**
312    Set the value of the {@link javafx.scene.Scene#getOnMouseDragExited() onMouseDragExited} property for the instance constructed by this builder.
313    */
314    @SuppressWarnings("unchecked")
315    public B onMouseDragExited(javafx.event.EventHandler<? super javafx.scene.input.MouseDragEvent> x) {
316        this.onMouseDragExited = x;
317        __set(17);
318        return (B) this;
319    }
320    
321    private javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> onMouseDragged;
322    /**
323    Set the value of the {@link javafx.scene.Scene#getOnMouseDragged() onMouseDragged} property for the instance constructed by this builder.
324    */
325    @SuppressWarnings("unchecked")
326    public B onMouseDragged(javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> x) {
327        this.onMouseDragged = x;
328        __set(18);
329        return (B) this;
330    }
331    
332    private javafx.event.EventHandler<? super javafx.scene.input.MouseDragEvent> onMouseDragOver;
333    /**
334    Set the value of the {@link javafx.scene.Scene#getOnMouseDragOver() onMouseDragOver} property for the instance constructed by this builder.
335    */
336    @SuppressWarnings("unchecked")
337    public B onMouseDragOver(javafx.event.EventHandler<? super javafx.scene.input.MouseDragEvent> x) {
338        this.onMouseDragOver = x;
339        __set(19);
340        return (B) this;
341    }
342    
343    private javafx.event.EventHandler<? super javafx.scene.input.MouseDragEvent> onMouseDragReleased;
344    /**
345    Set the value of the {@link javafx.scene.Scene#getOnMouseDragReleased() onMouseDragReleased} property for the instance constructed by this builder.
346    */
347    @SuppressWarnings("unchecked")
348    public B onMouseDragReleased(javafx.event.EventHandler<? super javafx.scene.input.MouseDragEvent> x) {
349        this.onMouseDragReleased = x;
350        __set(20);
351        return (B) this;
352    }
353    
354    private javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> onMouseEntered;
355    /**
356    Set the value of the {@link javafx.scene.Scene#getOnMouseEntered() onMouseEntered} property for the instance constructed by this builder.
357    */
358    @SuppressWarnings("unchecked")
359    public B onMouseEntered(javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> x) {
360        this.onMouseEntered = x;
361        __set(21);
362        return (B) this;
363    }
364    
365    private javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> onMouseExited;
366    /**
367    Set the value of the {@link javafx.scene.Scene#getOnMouseExited() onMouseExited} property for the instance constructed by this builder.
368    */
369    @SuppressWarnings("unchecked")
370    public B onMouseExited(javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> x) {
371        this.onMouseExited = x;
372        __set(22);
373        return (B) this;
374    }
375    
376    private javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> onMouseMoved;
377    /**
378    Set the value of the {@link javafx.scene.Scene#getOnMouseMoved() onMouseMoved} property for the instance constructed by this builder.
379    */
380    @SuppressWarnings("unchecked")
381    public B onMouseMoved(javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> x) {
382        this.onMouseMoved = x;
383        __set(23);
384        return (B) this;
385    }
386    
387    private javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> onMousePressed;
388    /**
389    Set the value of the {@link javafx.scene.Scene#getOnMousePressed() onMousePressed} property for the instance constructed by this builder.
390    */
391    @SuppressWarnings("unchecked")
392    public B onMousePressed(javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> x) {
393        this.onMousePressed = x;
394        __set(24);
395        return (B) this;
396    }
397    
398    private javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> onMouseReleased;
399    /**
400    Set the value of the {@link javafx.scene.Scene#getOnMouseReleased() onMouseReleased} property for the instance constructed by this builder.
401    */
402    @SuppressWarnings("unchecked")
403    public B onMouseReleased(javafx.event.EventHandler<? super javafx.scene.input.MouseEvent> x) {
404        this.onMouseReleased = x;
405        __set(25);
406        return (B) this;
407    }
408    
409    private javafx.event.EventHandler<? super javafx.scene.input.RotateEvent> onRotate;
410    /**
411    Set the value of the {@link javafx.scene.Scene#getOnRotate() onRotate} property for the instance constructed by this builder.
412    */
413    @SuppressWarnings("unchecked")
414    public B onRotate(javafx.event.EventHandler<? super javafx.scene.input.RotateEvent> x) {
415        this.onRotate = x;
416        __set(26);
417        return (B) this;
418    }
419    
420    private javafx.event.EventHandler<? super javafx.scene.input.RotateEvent> onRotationFinished;
421    /**
422    Set the value of the {@link javafx.scene.Scene#getOnRotationFinished() onRotationFinished} property for the instance constructed by this builder.
423    */
424    @SuppressWarnings("unchecked")
425    public B onRotationFinished(javafx.event.EventHandler<? super javafx.scene.input.RotateEvent> x) {
426        this.onRotationFinished = x;
427        __set(27);
428        return (B) this;
429    }
430    
431    private javafx.event.EventHandler<? super javafx.scene.input.RotateEvent> onRotationStarted;
432    /**
433    Set the value of the {@link javafx.scene.Scene#getOnRotationStarted() onRotationStarted} property for the instance constructed by this builder.
434    */
435    @SuppressWarnings("unchecked")
436    public B onRotationStarted(javafx.event.EventHandler<? super javafx.scene.input.RotateEvent> x) {
437        this.onRotationStarted = x;
438        __set(28);
439        return (B) this;
440    }
441    
442    private javafx.event.EventHandler<? super javafx.scene.input.ScrollEvent> onScroll;
443    /**
444    Set the value of the {@link javafx.scene.Scene#getOnScroll() onScroll} property for the instance constructed by this builder.
445    */
446    @SuppressWarnings("unchecked")
447    public B onScroll(javafx.event.EventHandler<? super javafx.scene.input.ScrollEvent> x) {
448        this.onScroll = x;
449        __set(29);
450        return (B) this;
451    }
452    
453    private javafx.event.EventHandler<? super javafx.scene.input.ScrollEvent> onScrollFinished;
454    /**
455    Set the value of the {@link javafx.scene.Scene#getOnScrollFinished() onScrollFinished} property for the instance constructed by this builder.
456    */
457    @SuppressWarnings("unchecked")
458    public B onScrollFinished(javafx.event.EventHandler<? super javafx.scene.input.ScrollEvent> x) {
459        this.onScrollFinished = x;
460        __set(30);
461        return (B) this;
462    }
463    
464    private javafx.event.EventHandler<? super javafx.scene.input.ScrollEvent> onScrollStarted;
465    /**
466    Set the value of the {@link javafx.scene.Scene#getOnScrollStarted() onScrollStarted} property for the instance constructed by this builder.
467    */
468    @SuppressWarnings("unchecked")
469    public B onScrollStarted(javafx.event.EventHandler<? super javafx.scene.input.ScrollEvent> x) {
470        this.onScrollStarted = x;
471        __set(31);
472        return (B) this;
473    }
474    
475    private javafx.event.EventHandler<? super javafx.scene.input.SwipeEvent> onSwipeDown;
476    /**
477    Set the value of the {@link javafx.scene.Scene#getOnSwipeDown() onSwipeDown} property for the instance constructed by this builder.
478    */
479    @SuppressWarnings("unchecked")
480    public B onSwipeDown(javafx.event.EventHandler<? super javafx.scene.input.SwipeEvent> x) {
481        this.onSwipeDown = x;
482        __set(32);
483        return (B) this;
484    }
485    
486    private javafx.event.EventHandler<? super javafx.scene.input.SwipeEvent> onSwipeLeft;
487    /**
488    Set the value of the {@link javafx.scene.Scene#getOnSwipeLeft() onSwipeLeft} property for the instance constructed by this builder.
489    */
490    @SuppressWarnings("unchecked")
491    public B onSwipeLeft(javafx.event.EventHandler<? super javafx.scene.input.SwipeEvent> x) {
492        this.onSwipeLeft = x;
493        __set(33);
494        return (B) this;
495    }
496    
497    private javafx.event.EventHandler<? super javafx.scene.input.SwipeEvent> onSwipeRight;
498    /**
499    Set the value of the {@link javafx.scene.Scene#getOnSwipeRight() onSwipeRight} property for the instance constructed by this builder.
500    */
501    @SuppressWarnings("unchecked")
502    public B onSwipeRight(javafx.event.EventHandler<? super javafx.scene.input.SwipeEvent> x) {
503        this.onSwipeRight = x;
504        __set(34);
505        return (B) this;
506    }
507    
508    private javafx.event.EventHandler<? super javafx.scene.input.SwipeEvent> onSwipeUp;
509    /**
510    Set the value of the {@link javafx.scene.Scene#getOnSwipeUp() onSwipeUp} property for the instance constructed by this builder.
511    */
512    @SuppressWarnings("unchecked")
513    public B onSwipeUp(javafx.event.EventHandler<? super javafx.scene.input.SwipeEvent> x) {
514        this.onSwipeUp = x;
515        __set(35);
516        return (B) this;
517    }
518    
519    private javafx.event.EventHandler<? super javafx.scene.input.TouchEvent> onTouchMoved;
520    /**
521    Set the value of the {@link javafx.scene.Scene#getOnTouchMoved() onTouchMoved} property for the instance constructed by this builder.
522    */
523    @SuppressWarnings("unchecked")
524    public B onTouchMoved(javafx.event.EventHandler<? super javafx.scene.input.TouchEvent> x) {
525        this.onTouchMoved = x;
526        __set(36);
527        return (B) this;
528    }
529    
530    private javafx.event.EventHandler<? super javafx.scene.input.TouchEvent> onTouchPressed;
531    /**
532    Set the value of the {@link javafx.scene.Scene#getOnTouchPressed() onTouchPressed} property for the instance constructed by this builder.
533    */
534    @SuppressWarnings("unchecked")
535    public B onTouchPressed(javafx.event.EventHandler<? super javafx.scene.input.TouchEvent> x) {
536        this.onTouchPressed = x;
537        __set(37);
538        return (B) this;
539    }
540    
541    private javafx.event.EventHandler<? super javafx.scene.input.TouchEvent> onTouchReleased;
542    /**
543    Set the value of the {@link javafx.scene.Scene#getOnTouchReleased() onTouchReleased} property for the instance constructed by this builder.
544    */
545    @SuppressWarnings("unchecked")
546    public B onTouchReleased(javafx.event.EventHandler<? super javafx.scene.input.TouchEvent> x) {
547        this.onTouchReleased = x;
548        __set(38);
549        return (B) this;
550    }
551    
552    private javafx.event.EventHandler<? super javafx.scene.input.TouchEvent> onTouchStationary;
553    /**
554    Set the value of the {@link javafx.scene.Scene#getOnTouchStationary() onTouchStationary} property for the instance constructed by this builder.
555    */
556    @SuppressWarnings("unchecked")
557    public B onTouchStationary(javafx.event.EventHandler<? super javafx.scene.input.TouchEvent> x) {
558        this.onTouchStationary = x;
559        __set(39);
560        return (B) this;
561    }
562    
563    private javafx.event.EventHandler<? super javafx.scene.input.ZoomEvent> onZoom;
564    /**
565    Set the value of the {@link javafx.scene.Scene#getOnZoom() onZoom} property for the instance constructed by this builder.
566    */
567    @SuppressWarnings("unchecked")
568    public B onZoom(javafx.event.EventHandler<? super javafx.scene.input.ZoomEvent> x) {
569        this.onZoom = x;
570        __set(40);
571        return (B) this;
572    }
573    
574    private javafx.event.EventHandler<? super javafx.scene.input.ZoomEvent> onZoomFinished;
575    /**
576    Set the value of the {@link javafx.scene.Scene#getOnZoomFinished() onZoomFinished} property for the instance constructed by this builder.
577    */
578    @SuppressWarnings("unchecked")
579    public B onZoomFinished(javafx.event.EventHandler<? super javafx.scene.input.ZoomEvent> x) {
580        this.onZoomFinished = x;
581        __set(41);
582        return (B) this;
583    }
584    
585    private javafx.event.EventHandler<? super javafx.scene.input.ZoomEvent> onZoomStarted;
586    /**
587    Set the value of the {@link javafx.scene.Scene#getOnZoomStarted() onZoomStarted} property for the instance constructed by this builder.
588    */
589    @SuppressWarnings("unchecked")
590    public B onZoomStarted(javafx.event.EventHandler<? super javafx.scene.input.ZoomEvent> x) {
591        this.onZoomStarted = x;
592        __set(42);
593        return (B) this;
594    }
595    
596    private javafx.scene.Parent root;
597    /**
598    Set the value of the {@link javafx.scene.Scene#getRoot() root} property for the instance constructed by this builder.
599    */
600    @SuppressWarnings("unchecked")
601    public B root(javafx.scene.Parent x) {
602        this.root = x;
603        return (B) this;
604    }
605    
606    private java.util.Collection<? extends java.lang.String> stylesheets;
607    /**
608    Add the given items to the List of items in the {@link javafx.scene.Scene#getStylesheets() stylesheets} property for the instance constructed by this builder.
609    */
610    @SuppressWarnings("unchecked")
611    public B stylesheets(java.util.Collection<? extends java.lang.String> x) {
612        this.stylesheets = x;
613        __set(43);
614        return (B) this;
615    }
616    
617    /**
618    Add the given items to the List of items in the {@link javafx.scene.Scene#getStylesheets() stylesheets} property for the instance constructed by this builder.
619    */
620    public B stylesheets(java.lang.String... x) {
621        return stylesheets(java.util.Arrays.asList(x));
622    }
623    
624    private double width = -1;
625    /**
626    Set the value of the {@link javafx.scene.Scene#getWidth() width} property for the instance constructed by this builder.
627    */
628    @SuppressWarnings("unchecked")
629    public B width(double x) {
630        this.width = x;
631        return (B) this;
632    }
633    
634    /**
635    Make an instance of {@link javafx.scene.Scene} based on the properties set on this builder.
636    */
637    public javafx.scene.Scene build() {
638        javafx.scene.Scene x = new javafx.scene.Scene(this.root, this.width, this.height, this.depthBuffer);
639        applyTo(x);
640        return x;
641    }
642}