KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > jxl > format > Font


1 /*********************************************************************
2 *
3 * Copyright (C) 2002 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.format;
21
22 /**
23  * Interface which exposes the user font display information to the user
24  */

25 public interface Font
26 {
27   /**
28    * Gets the name of this font
29    *
30    * @return the name of this font
31    */

32   public String JavaDoc getName();
33
34   /**
35    * Gets the point size for this font, if the font hasn't been initialized
36    *
37    * @return the point size
38    */

39   public int getPointSize();
40
41   /**
42    * Gets the bold weight for this font
43    *
44    * @return the bold weight for this font
45    */

46   public int getBoldWeight();
47
48   /**
49    * Returns the italic flag
50    *
51    * @return TRUE if this font is italic, FALSE otherwise
52    */

53   public boolean isItalic();
54
55   /**
56    * Gets the underline style for this font
57    *
58    * @return the underline style
59    */

60   public UnderlineStyle getUnderlineStyle();
61
62   /**
63    * Gets the colour for this font
64    *
65    * @return the colour
66    */

67   public Colour getColour();
68
69   /**
70    * Gets the script style
71    *
72    * @return the script style
73    */

74   public ScriptStyle getScriptStyle();
75 }
76
77
Popular Tags