KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > poi > hdf > model > hdftypes > definitions > TCAbstractType


1
2 /* ====================================================================
3    Copyright 2002-2004 Apache Software Foundation
4
5    Licensed under the Apache License, Version 2.0 (the "License");
6    you may not use this file except in compliance with the License.
7    You may obtain a copy of the License at
8
9        http://www.apache.org/licenses/LICENSE-2.0
10
11    Unless required by applicable law or agreed to in writing, software
12    distributed under the License is distributed on an "AS IS" BASIS,
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    See the License for the specific language governing permissions and
15    limitations under the License.
16 ==================================================================== */

17         
18
19
20 package org.apache.poi.hdf.model.hdftypes.definitions;
21
22
23
24 import org.apache.poi.util.BitField;
25 import org.apache.poi.util.LittleEndian;
26 import org.apache.poi.util.StringUtil;
27 import org.apache.poi.util.HexDump;
28 import org.apache.poi.hdf.model.hdftypes.HDFType;
29
30 /**
31  * Table Cell Descriptor.
32  * NOTE: This source is automatically generated please do not modify this file. Either subclass or
33  * remove the record in src/records/definitions.
34
35  * @author S. Ryan Ackley
36  */

37 public abstract class TCAbstractType
38     implements HDFType
39 {
40
41     private short field_1_rgf;
42         private static BitField fFirstMerged = new BitField(0x0001);
43         private static BitField fMerged = new BitField(0x0002);
44         private static BitField fVertical = new BitField(0x0004);
45         private static BitField fBackward = new BitField(0x0008);
46         private static BitField fRotateFont = new BitField(0x0010);
47         private static BitField fVertMerge = new BitField(0x0020);
48         private static BitField fVertRestart = new BitField(0x0040);
49         private static BitField vertAlign = new BitField(0x0180);
50     private short field_2_unused;
51     private short[] field_3_brcTop;
52     private short[] field_4_brcLeft;
53     private short[] field_5_brcBottom;
54     private short[] field_6_brcRight;
55
56
57     public TCAbstractType()
58     {
59
60     }
61
62     /**
63      * Size of record (exluding 4 byte header)
64      */

65     public int getSize()
66     {
67         return 4 + + 2 + 2 + 4 + 4 + 4 + 4;
68     }
69
70
71
72     /**
73      * Get the rgf field for the TC record.
74      */

75     public short getRgf()
76     {
77         return field_1_rgf;
78     }
79
80     /**
81      * Set the rgf field for the TC record.
82      */

83     public void setRgf(short field_1_rgf)
84     {
85         this.field_1_rgf = field_1_rgf;
86     }
87
88     /**
89      * Get the unused field for the TC record.
90      */

91     public short getUnused()
92     {
93         return field_2_unused;
94     }
95
96     /**
97      * Set the unused field for the TC record.
98      */

99     public void setUnused(short field_2_unused)
100     {
101         this.field_2_unused = field_2_unused;
102     }
103
104     /**
105      * Get the brcTop field for the TC record.
106      */

107     public short[] getBrcTop()
108     {
109         return field_3_brcTop;
110     }
111
112     /**
113      * Set the brcTop field for the TC record.
114      */

115     public void setBrcTop(short[] field_3_brcTop)
116     {
117         this.field_3_brcTop = field_3_brcTop;
118     }
119
120     /**
121      * Get the brcLeft field for the TC record.
122      */

123     public short[] getBrcLeft()
124     {
125         return field_4_brcLeft;
126     }
127
128     /**
129      * Set the brcLeft field for the TC record.
130      */

131     public void setBrcLeft(short[] field_4_brcLeft)
132     {
133         this.field_4_brcLeft = field_4_brcLeft;
134     }
135
136     /**
137      * Get the brcBottom field for the TC record.
138      */

139     public short[] getBrcBottom()
140     {
141         return field_5_brcBottom;
142     }
143
144     /**
145      * Set the brcBottom field for the TC record.
146      */

147     public void setBrcBottom(short[] field_5_brcBottom)
148     {
149         this.field_5_brcBottom = field_5_brcBottom;
150     }
151
152     /**
153      * Get the brcRight field for the TC record.
154      */

155     public short[] getBrcRight()
156     {
157         return field_6_brcRight;
158     }
159
160     /**
161      * Set the brcRight field for the TC record.
162      */

163     public void setBrcRight(short[] field_6_brcRight)
164     {
165         this.field_6_brcRight = field_6_brcRight;
166     }
167
168     /**
169      * Sets the fFirstMerged field value.
170      *
171      */

172     public void setFFirstMerged(boolean value)
173     {
174         field_1_rgf = (short)fFirstMerged.setBoolean(field_1_rgf, value);
175
176
177     }
178
179     /**
180      *
181      * @return the fFirstMerged field value.
182      */

183     public boolean isFFirstMerged()
184     {
185         return fFirstMerged.isSet(field_1_rgf);
186
187     }
188
189     /**
190      * Sets the fMerged field value.
191      *
192      */

193     public void setFMerged(boolean value)
194     {
195         field_1_rgf = (short)fMerged.setBoolean(field_1_rgf, value);
196
197
198     }
199
200     /**
201      *
202      * @return the fMerged field value.
203      */

204     public boolean isFMerged()
205     {
206         return fMerged.isSet(field_1_rgf);
207
208     }
209
210     /**
211      * Sets the fVertical field value.
212      *
213      */

214     public void setFVertical(boolean value)
215     {
216         field_1_rgf = (short)fVertical.setBoolean(field_1_rgf, value);
217
218
219     }
220
221     /**
222      *
223      * @return the fVertical field value.
224      */

225     public boolean isFVertical()
226     {
227         return fVertical.isSet(field_1_rgf);
228
229     }
230
231     /**
232      * Sets the fBackward field value.
233      *
234      */

235     public void setFBackward(boolean value)
236     {
237         field_1_rgf = (short)fBackward.setBoolean(field_1_rgf, value);
238
239
240     }
241
242     /**
243      *
244      * @return the fBackward field value.
245      */

246     public boolean isFBackward()
247     {
248         return fBackward.isSet(field_1_rgf);
249
250     }
251
252     /**
253      * Sets the fRotateFont field value.
254      *
255      */

256     public void setFRotateFont(boolean value)
257     {
258         field_1_rgf = (short)fRotateFont.setBoolean(field_1_rgf, value);
259
260
261     }
262
263     /**
264      *
265      * @return the fRotateFont field value.
266      */

267     public boolean isFRotateFont()
268     {
269         return fRotateFont.isSet(field_1_rgf);
270
271     }
272
273     /**
274      * Sets the fVertMerge field value.
275      *
276      */

277     public void setFVertMerge(boolean value)
278     {
279         field_1_rgf = (short)fVertMerge.setBoolean(field_1_rgf, value);
280
281
282     }
283
284     /**
285      *
286      * @return the fVertMerge field value.
287      */

288     public boolean isFVertMerge()
289     {
290         return fVertMerge.isSet(field_1_rgf);
291
292     }
293
294     /**
295      * Sets the fVertRestart field value.
296      *
297      */

298     public void setFVertRestart(boolean value)
299     {
300         field_1_rgf = (short)fVertRestart.setBoolean(field_1_rgf, value);
301
302
303     }
304
305     /**
306      *
307      * @return the fVertRestart field value.
308      */

309     public boolean isFVertRestart()
310     {
311         return fVertRestart.isSet(field_1_rgf);
312
313     }
314
315     /**
316      * Sets the vertAlign field value.
317      *
318      */

319     public void setVertAlign(byte value)
320     {
321         field_1_rgf = (short)vertAlign.setValue(field_1_rgf, value);
322
323
324     }
325
326     /**
327      *
328      * @return the vertAlign field value.
329      */

330     public byte getVertAlign()
331     {
332         return ( byte )vertAlign.getValue(field_1_rgf);
333
334     }
335
336
337 } // END OF CLASS
338

339
340
341
342
Popular Tags