KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jxl > write > WritableCellFeatures


1 /*********************************************************************
2 *
3 * Copyright (C) 2004 Andrew Khan
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 ***************************************************************************/

19
20 package jxl.write;
21
22 import jxl.CellFeatures;
23
24 /**
25  * Container for any additional cell features
26  */

27 public class WritableCellFeatures extends CellFeatures
28 {
29   /**
30    * Constructor
31    */

32   public WritableCellFeatures()
33   {
34     super();
35   }
36
37   /**
38    * Copy constructor
39    *
40    * @param the cell to copy
41    */

42   public WritableCellFeatures(CellFeatures cf)
43   {
44     super(cf);
45   }
46
47   /**
48    * Sets the cell comment
49    *
50    * @param s the comment
51    */

52   public void setComment(String JavaDoc s)
53   {
54     super.setComment(s);
55   }
56
57   /**
58    * Sets the cell comment and sets the size of the text box (in cells)
59    * in which the comment is displayed
60    *
61    * @param s the comment
62    * @param width the width of the comment box in cells
63    * @param height the height of the comment box in cells
64    */

65   public void setComment(String JavaDoc s, double width, double height)
66   {
67     super.setComment(s, width, height);
68   }
69 }
70
Popular Tags