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.layout; 027 028/** 029Builder class for javafx.scene.layout.TilePane 030@see javafx.scene.layout.TilePane 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 TilePaneBuilder<B extends javafx.scene.layout.TilePaneBuilder<B>> extends javafx.scene.layout.PaneBuilder<B> { 036 protected TilePaneBuilder() { 037 } 038 039 /** Creates a new instance of TilePaneBuilder. */ 040 @SuppressWarnings({"deprecation", "rawtypes", "unchecked"}) 041 public static javafx.scene.layout.TilePaneBuilder<?> create() { 042 return new javafx.scene.layout.TilePaneBuilder(); 043 } 044 045 private int __set; 046 private void __set(int i) { 047 __set |= 1 << i; 048 } 049 public void applyTo(javafx.scene.layout.TilePane 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.setAlignment(this.alignment); break; 057 case 1: x.setHgap(this.hgap); break; 058 case 2: x.setOrientation(this.orientation); break; 059 case 3: x.setPrefColumns(this.prefColumns); break; 060 case 4: x.setPrefRows(this.prefRows); break; 061 case 5: x.setPrefTileHeight(this.prefTileHeight); break; 062 case 6: x.setPrefTileWidth(this.prefTileWidth); break; 063 case 7: x.setTileAlignment(this.tileAlignment); break; 064 case 8: x.setVgap(this.vgap); break; 065 } 066 } 067 } 068 069 private javafx.geometry.Pos alignment; 070 /** 071 Set the value of the {@link javafx.scene.layout.TilePane#getAlignment() alignment} property for the instance constructed by this builder. 072 */ 073 @SuppressWarnings("unchecked") 074 public B alignment(javafx.geometry.Pos x) { 075 this.alignment = x; 076 __set(0); 077 return (B) this; 078 } 079 080 private double hgap; 081 /** 082 Set the value of the {@link javafx.scene.layout.TilePane#getHgap() hgap} property for the instance constructed by this builder. 083 */ 084 @SuppressWarnings("unchecked") 085 public B hgap(double x) { 086 this.hgap = x; 087 __set(1); 088 return (B) this; 089 } 090 091 private javafx.geometry.Orientation orientation; 092 /** 093 Set the value of the {@link javafx.scene.layout.TilePane#getOrientation() orientation} property for the instance constructed by this builder. 094 */ 095 @SuppressWarnings("unchecked") 096 public B orientation(javafx.geometry.Orientation x) { 097 this.orientation = x; 098 __set(2); 099 return (B) this; 100 } 101 102 private int prefColumns; 103 /** 104 Set the value of the {@link javafx.scene.layout.TilePane#getPrefColumns() prefColumns} property for the instance constructed by this builder. 105 */ 106 @SuppressWarnings("unchecked") 107 public B prefColumns(int x) { 108 this.prefColumns = x; 109 __set(3); 110 return (B) this; 111 } 112 113 private int prefRows; 114 /** 115 Set the value of the {@link javafx.scene.layout.TilePane#getPrefRows() prefRows} property for the instance constructed by this builder. 116 */ 117 @SuppressWarnings("unchecked") 118 public B prefRows(int x) { 119 this.prefRows = x; 120 __set(4); 121 return (B) this; 122 } 123 124 private double prefTileHeight; 125 /** 126 Set the value of the {@link javafx.scene.layout.TilePane#getPrefTileHeight() prefTileHeight} property for the instance constructed by this builder. 127 */ 128 @SuppressWarnings("unchecked") 129 public B prefTileHeight(double x) { 130 this.prefTileHeight = x; 131 __set(5); 132 return (B) this; 133 } 134 135 private double prefTileWidth; 136 /** 137 Set the value of the {@link javafx.scene.layout.TilePane#getPrefTileWidth() prefTileWidth} property for the instance constructed by this builder. 138 */ 139 @SuppressWarnings("unchecked") 140 public B prefTileWidth(double x) { 141 this.prefTileWidth = x; 142 __set(6); 143 return (B) this; 144 } 145 146 private javafx.geometry.Pos tileAlignment; 147 /** 148 Set the value of the {@link javafx.scene.layout.TilePane#getTileAlignment() tileAlignment} property for the instance constructed by this builder. 149 */ 150 @SuppressWarnings("unchecked") 151 public B tileAlignment(javafx.geometry.Pos x) { 152 this.tileAlignment = x; 153 __set(7); 154 return (B) this; 155 } 156 157 private double vgap; 158 /** 159 Set the value of the {@link javafx.scene.layout.TilePane#getVgap() vgap} property for the instance constructed by this builder. 160 */ 161 @SuppressWarnings("unchecked") 162 public B vgap(double x) { 163 this.vgap = x; 164 __set(8); 165 return (B) this; 166 } 167 168 /** 169 Make an instance of {@link javafx.scene.layout.TilePane} based on the properties set on this builder. 170 */ 171 public javafx.scene.layout.TilePane build() { 172 javafx.scene.layout.TilePane x = new javafx.scene.layout.TilePane(); 173 applyTo(x); 174 return x; 175 } 176}