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
026/* 
027 * Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
028 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
029 *
030 * This code is free software; you can redistribute it and/or modify it
031 * under the terms of the GNU General Public License version 2 only, as
032 * published by the Free Software Foundation.  Oracle designates this
033 * particular file as subject to the "Classpath" exception as provided
034 * by Oracle in the LICENSE file that accompanied this code.
035 *
036 * This code is distributed in the hope that it will be useful, but WITHOUT
037 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
038 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
039 * version 2 for more details (a copy is included in the LICENSE file that
040 * accompanied this code).
041 *
042 * You should have received a copy of the GNU General Public License version
043 * 2 along with this work; if not, write to the Free Software Foundation,
044 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
045 *
046 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
047 * or visit www.oracle.com if you need additional information or have any
048 * questions.
049 */
050
051package javafx.scene.chart;
052
053/**
054Builder class for javafx.scene.chart.Axis
055@see javafx.scene.chart.Axis
056@deprecated This class is deprecated and will be removed in the next version
057*/
058@javax.annotation.Generated("Generated by javafx.builder.processor.BuilderProcessor")
059@Deprecated
060public abstract class AxisBuilder<T, B extends javafx.scene.chart.AxisBuilder<T, B>> extends javafx.scene.layout.RegionBuilder<B> {
061    protected AxisBuilder() {
062    }
063    
064    
065    private int __set;
066    private void __set(int i) {
067        __set |= 1 << i;
068    }
069    public void applyTo(javafx.scene.chart.Axis<T> x) {
070        super.applyTo(x);
071        int set = __set;
072        while (set != 0) {
073            int i = Integer.numberOfTrailingZeros(set);
074            set &= ~(1 << i);
075            switch (i) {
076                case 0: x.setAnimated(this.animated); break;
077                case 1: x.setAutoRanging(this.autoRanging); break;
078                case 2: x.setLabel(this.label); break;
079                case 3: x.setSide(this.side); break;
080                case 4: x.setTickLabelFill(this.tickLabelFill); break;
081                case 5: x.setTickLabelFont(this.tickLabelFont); break;
082                case 6: x.setTickLabelGap(this.tickLabelGap); break;
083                case 7: x.setTickLabelRotation(this.tickLabelRotation); break;
084                case 8: x.setTickLabelsVisible(this.tickLabelsVisible); break;
085                case 9: x.setTickLength(this.tickLength); break;
086                case 10: x.getTickMarks().addAll(this.tickMarks); break;
087                case 11: x.setTickMarkVisible(this.tickMarkVisible); break;
088            }
089        }
090    }
091    
092    private boolean animated;
093    /**
094    Set the value of the {@link javafx.scene.chart.Axis#getAnimated() animated} property for the instance constructed by this builder.
095    */
096    @SuppressWarnings("unchecked")
097    public B animated(boolean x) {
098        this.animated = x;
099        __set(0);
100        return (B) this;
101    }
102    
103    private boolean autoRanging;
104    /**
105    Set the value of the {@link javafx.scene.chart.Axis#isAutoRanging() autoRanging} property for the instance constructed by this builder.
106    */
107    @SuppressWarnings("unchecked")
108    public B autoRanging(boolean x) {
109        this.autoRanging = x;
110        __set(1);
111        return (B) this;
112    }
113    
114    private java.lang.String label;
115    /**
116    Set the value of the {@link javafx.scene.chart.Axis#getLabel() label} property for the instance constructed by this builder.
117    */
118    @SuppressWarnings("unchecked")
119    public B label(java.lang.String x) {
120        this.label = x;
121        __set(2);
122        return (B) this;
123    }
124    
125    private javafx.geometry.Side side;
126    /**
127    Set the value of the {@link javafx.scene.chart.Axis#getSide() side} property for the instance constructed by this builder.
128    */
129    @SuppressWarnings("unchecked")
130    public B side(javafx.geometry.Side x) {
131        this.side = x;
132        __set(3);
133        return (B) this;
134    }
135    
136    private javafx.scene.paint.Paint tickLabelFill;
137    /**
138    Set the value of the {@link javafx.scene.chart.Axis#getTickLabelFill() tickLabelFill} property for the instance constructed by this builder.
139    */
140    @SuppressWarnings("unchecked")
141    public B tickLabelFill(javafx.scene.paint.Paint x) {
142        this.tickLabelFill = x;
143        __set(4);
144        return (B) this;
145    }
146    
147    private javafx.scene.text.Font tickLabelFont;
148    /**
149    Set the value of the {@link javafx.scene.chart.Axis#getTickLabelFont() tickLabelFont} property for the instance constructed by this builder.
150    */
151    @SuppressWarnings("unchecked")
152    public B tickLabelFont(javafx.scene.text.Font x) {
153        this.tickLabelFont = x;
154        __set(5);
155        return (B) this;
156    }
157    
158    private double tickLabelGap;
159    /**
160    Set the value of the {@link javafx.scene.chart.Axis#getTickLabelGap() tickLabelGap} property for the instance constructed by this builder.
161    */
162    @SuppressWarnings("unchecked")
163    public B tickLabelGap(double x) {
164        this.tickLabelGap = x;
165        __set(6);
166        return (B) this;
167    }
168    
169    private double tickLabelRotation;
170    /**
171    Set the value of the {@link javafx.scene.chart.Axis#getTickLabelRotation() tickLabelRotation} property for the instance constructed by this builder.
172    */
173    @SuppressWarnings("unchecked")
174    public B tickLabelRotation(double x) {
175        this.tickLabelRotation = x;
176        __set(7);
177        return (B) this;
178    }
179    
180    private boolean tickLabelsVisible;
181    /**
182    Set the value of the {@link javafx.scene.chart.Axis#isTickLabelsVisible() tickLabelsVisible} property for the instance constructed by this builder.
183    */
184    @SuppressWarnings("unchecked")
185    public B tickLabelsVisible(boolean x) {
186        this.tickLabelsVisible = x;
187        __set(8);
188        return (B) this;
189    }
190    
191    private double tickLength;
192    /**
193    Set the value of the {@link javafx.scene.chart.Axis#getTickLength() tickLength} property for the instance constructed by this builder.
194    */
195    @SuppressWarnings("unchecked")
196    public B tickLength(double x) {
197        this.tickLength = x;
198        __set(9);
199        return (B) this;
200    }
201    
202    private java.util.Collection<? extends javafx.scene.chart.Axis.TickMark<T>> tickMarks;
203    /**
204    Add the given items to the List of items in the {@link javafx.scene.chart.Axis#getTickMarks() tickMarks} property for the instance constructed by this builder.
205    */
206    @SuppressWarnings("unchecked")
207    public B tickMarks(java.util.Collection<? extends javafx.scene.chart.Axis.TickMark<T>> x) {
208        this.tickMarks = x;
209        __set(10);
210        return (B) this;
211    }
212    
213    /**
214    Add the given items to the List of items in the {@link javafx.scene.chart.Axis#getTickMarks() tickMarks} property for the instance constructed by this builder.
215    */
216    public B tickMarks(javafx.scene.chart.Axis.TickMark<T>... x) {
217        return tickMarks(java.util.Arrays.asList(x));
218    }
219    
220    private boolean tickMarkVisible;
221    /**
222    Set the value of the {@link javafx.scene.chart.Axis#isTickMarkVisible() tickMarkVisible} property for the instance constructed by this builder.
223    */
224    @SuppressWarnings("unchecked")
225    public B tickMarkVisible(boolean x) {
226        this.tickMarkVisible = x;
227        __set(11);
228        return (B) this;
229    }
230    
231}