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.chart; 027 028/** 029Builder class for javafx.scene.chart.XYChart 030@see javafx.scene.chart.XYChart 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 abstract class XYChartBuilder<X, Y, B extends javafx.scene.chart.XYChartBuilder<X, Y, B>> extends javafx.scene.chart.ChartBuilder<B> { 036 protected XYChartBuilder() { 037 } 038 039 040 private int __set; 041 public void applyTo(javafx.scene.chart.XYChart<X, Y> x) { 042 super.applyTo(x); 043 int set = __set; 044 if ((set & (1 << 0)) != 0) x.setAlternativeColumnFillVisible(this.alternativeColumnFillVisible); 045 if ((set & (1 << 1)) != 0) x.setAlternativeRowFillVisible(this.alternativeRowFillVisible); 046 if ((set & (1 << 2)) != 0) x.setData(this.data); 047 if ((set & (1 << 3)) != 0) x.setHorizontalGridLinesVisible(this.horizontalGridLinesVisible); 048 if ((set & (1 << 4)) != 0) x.setHorizontalZeroLineVisible(this.horizontalZeroLineVisible); 049 if ((set & (1 << 5)) != 0) x.setVerticalGridLinesVisible(this.verticalGridLinesVisible); 050 if ((set & (1 << 6)) != 0) x.setVerticalZeroLineVisible(this.verticalZeroLineVisible); 051 } 052 053 private boolean alternativeColumnFillVisible; 054 /** 055 Set the value of the {@link javafx.scene.chart.XYChart#isAlternativeColumnFillVisible() alternativeColumnFillVisible} property for the instance constructed by this builder. 056 */ 057 @SuppressWarnings("unchecked") 058 public B alternativeColumnFillVisible(boolean x) { 059 this.alternativeColumnFillVisible = x; 060 __set |= 1 << 0; 061 return (B) this; 062 } 063 064 private boolean alternativeRowFillVisible; 065 /** 066 Set the value of the {@link javafx.scene.chart.XYChart#isAlternativeRowFillVisible() alternativeRowFillVisible} property for the instance constructed by this builder. 067 */ 068 @SuppressWarnings("unchecked") 069 public B alternativeRowFillVisible(boolean x) { 070 this.alternativeRowFillVisible = x; 071 __set |= 1 << 1; 072 return (B) this; 073 } 074 075 private javafx.collections.ObservableList<javafx.scene.chart.XYChart.Series<X,Y>> data; 076 /** 077 Set the value of the {@link javafx.scene.chart.XYChart#getData() data} property for the instance constructed by this builder. 078 */ 079 @SuppressWarnings("unchecked") 080 public B data(javafx.collections.ObservableList<javafx.scene.chart.XYChart.Series<X,Y>> x) { 081 this.data = x; 082 __set |= 1 << 2; 083 return (B) this; 084 } 085 086 private boolean horizontalGridLinesVisible; 087 /** 088 Set the value of the {@link javafx.scene.chart.XYChart#isHorizontalGridLinesVisible() horizontalGridLinesVisible} property for the instance constructed by this builder. 089 */ 090 @SuppressWarnings("unchecked") 091 public B horizontalGridLinesVisible(boolean x) { 092 this.horizontalGridLinesVisible = x; 093 __set |= 1 << 3; 094 return (B) this; 095 } 096 097 private boolean horizontalZeroLineVisible; 098 /** 099 Set the value of the {@link javafx.scene.chart.XYChart#isHorizontalZeroLineVisible() horizontalZeroLineVisible} property for the instance constructed by this builder. 100 */ 101 @SuppressWarnings("unchecked") 102 public B horizontalZeroLineVisible(boolean x) { 103 this.horizontalZeroLineVisible = x; 104 __set |= 1 << 4; 105 return (B) this; 106 } 107 108 private boolean verticalGridLinesVisible; 109 /** 110 Set the value of the {@link javafx.scene.chart.XYChart#getVerticalGridLinesVisible() verticalGridLinesVisible} property for the instance constructed by this builder. 111 */ 112 @SuppressWarnings("unchecked") 113 public B verticalGridLinesVisible(boolean x) { 114 this.verticalGridLinesVisible = x; 115 __set |= 1 << 5; 116 return (B) this; 117 } 118 119 private boolean verticalZeroLineVisible; 120 /** 121 Set the value of the {@link javafx.scene.chart.XYChart#isVerticalZeroLineVisible() verticalZeroLineVisible} property for the instance constructed by this builder. 122 */ 123 @SuppressWarnings("unchecked") 124 public B verticalZeroLineVisible(boolean x) { 125 this.verticalZeroLineVisible = x; 126 __set |= 1 << 6; 127 return (B) this; 128 } 129 130 private javafx.scene.chart.Axis<X> XAxis; 131 /** 132 Set the value of the {@link javafx.scene.chart.XYChart#getXAxis() XAxis} property for the instance constructed by this builder. 133 */ 134 @SuppressWarnings("unchecked") 135 public B XAxis(javafx.scene.chart.Axis<X> x) { 136 this.XAxis = x; 137 return (B) this; 138 } 139 140 private javafx.scene.chart.Axis<Y> YAxis; 141 /** 142 Set the value of the {@link javafx.scene.chart.XYChart#getYAxis() YAxis} property for the instance constructed by this builder. 143 */ 144 @SuppressWarnings("unchecked") 145 public B YAxis(javafx.scene.chart.Axis<Y> x) { 146 this.YAxis = x; 147 return (B) this; 148 } 149 150}