Java Doc for HSSFFont.java in  » Collaboration » poi-3.0.2-beta2 » org » apache » poi » hssf » usermodel » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Collaboration » poi 3.0.2 beta2 » org.apache.poi.hssf.usermodel 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.poi.hssf.usermodel.HSSFFont

HSSFFont
public class HSSFFont (Code)
Represents a Font used in a workbook.
version:
   1.0-pre
author:
   Andrew C. Oliver
See Also:   org.apache.poi.hssf.usermodel.HSSFWorkbook.createFont
See Also:   org.apache.poi.hssf.usermodel.HSSFWorkbook.getFontAt(short)
See Also:   org.apache.poi.hssf.usermodel.HSSFCellStyle.setFont(HSSFFont)


Field Summary
final public static  byteANSI_CHARSET
    
final public static  shortBOLDWEIGHT_BOLD
    
final public static  shortBOLDWEIGHT_NORMAL
    
final public static  shortCOLOR_NORMAL
     normal type of black color.
final public static  shortCOLOR_RED
    
final public static  byteDEFAULT_CHARSET
     Default character set.
final public static  StringFONT_ARIAL
    
final public static  shortSS_NONE
    
final public static  shortSS_SUB
    
final public static  shortSS_SUPER
    
final public static  byteSYMBOL_CHARSET
    
final public static  byteU_DOUBLE
    
final public static  byteU_DOUBLE_ACCOUNTING
    
final public static  byteU_NONE
    
final public static  byteU_SINGLE
    
final public static  byteU_SINGLE_ACCOUNTING
    

Constructor Summary
protected  HSSFFont(short index, FontRecord rec)
    

Method Summary
public  shortgetBoldweight()
    
public  bytegetCharSet()
     get character-set to use.
public  shortgetColor()
    
public  shortgetFontHeight()
     get the font height in unit's of 1/20th of a point.
public  shortgetFontHeightInPoints()
    
public  StringgetFontName()
     get the name for the font (i.e.
public  shortgetIndex()
    
public  booleangetItalic()
    
public  booleangetStrikeout()
    
public  shortgetTypeOffset()
     get normal,super or subscript.
public  bytegetUnderline()
    
public  voidsetBoldweight(short boldweight)
    
public  voidsetCharSet(byte charset)
     set character-set to use.
public  voidsetColor(short color)
    
public  voidsetFontHeight(short height)
     set the font height in unit's of 1/20th of a point.
public  voidsetFontHeightInPoints(short height)
    
public  voidsetFontName(String name)
     set the name for the font (i.e.
public  voidsetItalic(boolean italic)
    
public  voidsetStrikeout(boolean strikeout)
    
public  voidsetTypeOffset(short offset)
     set normal,super or subscript.
public  voidsetUnderline(byte underline)
    
public  StringtoString()
    

Field Detail
ANSI_CHARSET
final public static byte ANSI_CHARSET(Code)
ANSI character set



BOLDWEIGHT_BOLD
final public static short BOLDWEIGHT_BOLD(Code)
Bold boldness (bold)



BOLDWEIGHT_NORMAL
final public static short BOLDWEIGHT_NORMAL(Code)
Normal boldness (not bold)



COLOR_NORMAL
final public static short COLOR_NORMAL(Code)
normal type of black color.



COLOR_RED
final public static short COLOR_RED(Code)
Dark Red color



DEFAULT_CHARSET
final public static byte DEFAULT_CHARSET(Code)
Default character set.



FONT_ARIAL
final public static String FONT_ARIAL(Code)
Arial font



SS_NONE
final public static short SS_NONE(Code)
no type offsetting (not super or subscript)



SS_SUB
final public static short SS_SUB(Code)
subscript



SS_SUPER
final public static short SS_SUPER(Code)
superscript



SYMBOL_CHARSET
final public static byte SYMBOL_CHARSET(Code)
Symbol character set



U_DOUBLE
final public static byte U_DOUBLE(Code)
double underlined



U_DOUBLE_ACCOUNTING
final public static byte U_DOUBLE_ACCOUNTING(Code)
accounting style double underline



U_NONE
final public static byte U_NONE(Code)
not underlined



U_SINGLE
final public static byte U_SINGLE(Code)
single (normal) underline



U_SINGLE_ACCOUNTING
final public static byte U_SINGLE_ACCOUNTING(Code)
accounting style single underline




Constructor Detail
HSSFFont
protected HSSFFont(short index, FontRecord rec)(Code)
Creates a new instance of HSSFFont




Method Detail
getBoldweight
public short getBoldweight()(Code)
get the boldness to use boldweight
See Also:   HSSFFont.BOLDWEIGHT_NORMAL
See Also:   HSSFFont.BOLDWEIGHT_BOLD



getCharSet
public byte getCharSet()(Code)
get character-set to use. character-set
See Also:   HSSFFont.ANSI_CHARSET
See Also:   HSSFFont.DEFAULT_CHARSET
See Also:   HSSFFont.SYMBOL_CHARSET



getColor
public short getColor()(Code)
get the color for the font color to use
See Also:   HSSFFont.COLOR_NORMAL
See Also:   HSSFFont.COLOR_RED
See Also:   org.apache.poi.hssf.usermodel.HSSFPalette.getColor(short)



getFontHeight
public short getFontHeight()(Code)
get the font height in unit's of 1/20th of a point. Maybe you might want to use the getFontHeightInPoints which matches to the familiar 10, 12, 14 etc.. short - height in 1/20ths of a point
See Also:   HSSFFont.getFontHeightInPoints()



getFontHeightInPoints
public short getFontHeightInPoints()(Code)
get the font height short - height in the familiar unit of measure - points
See Also:   HSSFFont.getFontHeight()



getFontName
public String getFontName()(Code)
get the name for the font (i.e. Arial) String representing the name of the font to use
See Also:   HSSFFont.FONT_ARIAL



getIndex
public short getIndex()(Code)
get the index within the HSSFWorkbook (sequence within the collection of Font objects) unique index number of the underlying record this Font represents (probably you don't careunless you're comparing which one is which)



getItalic
public boolean getItalic()(Code)
get whether to use italics or not italics or not



getStrikeout
public boolean getStrikeout()(Code)
get whether to use a strikeout horizontal line through the text or not strikeout or not



getTypeOffset
public short getTypeOffset()(Code)
get normal,super or subscript. offset type to use (none,super,sub)
See Also:   HSSFFont.SS_NONE
See Also:   HSSFFont.SS_SUPER
See Also:   HSSFFont.SS_SUB



getUnderline
public byte getUnderline()(Code)
get type of text underlining to use underlining type
See Also:   HSSFFont.U_NONE
See Also:   HSSFFont.U_SINGLE
See Also:   HSSFFont.U_DOUBLE
See Also:   HSSFFont.U_SINGLE_ACCOUNTING
See Also:   HSSFFont.U_DOUBLE_ACCOUNTING



setBoldweight
public void setBoldweight(short boldweight)(Code)
set the boldness to use
Parameters:
  boldweight -
See Also:   HSSFFont.BOLDWEIGHT_NORMAL
See Also:   HSSFFont.BOLDWEIGHT_BOLD



setCharSet
public void setCharSet(byte charset)(Code)
set character-set to use.
See Also:   HSSFFont.ANSI_CHARSET
See Also:   HSSFFont.DEFAULT_CHARSET
See Also:   HSSFFont.SYMBOL_CHARSET



setColor
public void setColor(short color)(Code)
set the color for the font
Parameters:
  color - to use
See Also:   HSSFFont.COLOR_NORMAL
See Also:    Note: Use this rather than HSSFColor.AUTOMATIC for default font color
See Also:   HSSFFont.COLOR_RED



setFontHeight
public void setFontHeight(short height)(Code)
set the font height in unit's of 1/20th of a point. Maybe you might want to use the setFontHeightInPoints which matches to the familiar 10, 12, 14 etc..
Parameters:
  height - height in 1/20ths of a point
See Also:   HSSFFont.setFontHeightInPoints(short)



setFontHeightInPoints
public void setFontHeightInPoints(short height)(Code)
set the font height
Parameters:
  height - height in the familiar unit of measure - points
See Also:   HSSFFont.setFontHeight(short)



setFontName
public void setFontName(String name)(Code)
set the name for the font (i.e. Arial)
Parameters:
  name - String representing the name of the font to use
See Also:   HSSFFont.FONT_ARIAL



setItalic
public void setItalic(boolean italic)(Code)
set whether to use italics or not
Parameters:
  italic - italics or not



setStrikeout
public void setStrikeout(boolean strikeout)(Code)
set whether to use a strikeout horizontal line through the text or not
Parameters:
  strikeout - or not



setTypeOffset
public void setTypeOffset(short offset)(Code)
set normal,super or subscript.
Parameters:
  offset - type to use (none,super,sub)
See Also:   HSSFFont.SS_NONE
See Also:   HSSFFont.SS_SUPER
See Also:   HSSFFont.SS_SUB



setUnderline
public void setUnderline(byte underline)(Code)
set type of text underlining to use
Parameters:
  underline - type
See Also:   HSSFFont.U_NONE
See Also:   HSSFFont.U_SINGLE
See Also:   HSSFFont.U_DOUBLE
See Also:   HSSFFont.U_SINGLE_ACCOUNTING
See Also:   HSSFFont.U_DOUBLE_ACCOUNTING



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.