Java Doc for RtfFont.java in  » PDF » pdf-itext » com » lowagie » text » rtf » style » 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 » PDF » pdf itext » com.lowagie.text.rtf.style 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.lowagie.text.Font
      com.lowagie.text.rtf.style.RtfFont

All known Subclasses:   com.lowagie.text.rtf.style.RtfParagraphStyle,
RtfFont
public class RtfFont extends Font implements RtfExtendedElement(Code)
The RtfFont class stores one font for an rtf document. It extends Font, so can be set as a font, to allow adding of fonts with arbitrary names. BaseFont fontname handling contributed by Craig Fleming. Various fixes Renaud Michel, Werner Daehn. Version: $Id: RtfFont.java 2784 2007-05-24 15:43:40Z hallm $
author:
   Mark Hall (mhall@edu.uni-klu.ac.at)
author:
   Craig Fleming (rythos@rhana.dhs.org)
author:
   Renaud Michel (r.michel@immedia.be)
author:
   Werner Daehn (Werner.Daehn@BusinessObjects.com)
author:
   Lidong Liu (tmslld@gmail.com)
author:
   Thomas Bickel (tmb99@inode.at)


Field Summary
final public static  byte[]FONT_SIZE
    
final public static  intSTYLE_BOLD
    
final public static  intSTYLE_DOUBLE_STRIKETHROUGH
    
final public static  intSTYLE_EMBOSSED
    
final public static  intSTYLE_ENGRAVED
    
final public static  intSTYLE_HIDDEN
     Constant for a font that hides the actual text.
final public static  intSTYLE_ITALIC
    
final public static  intSTYLE_NONE
    
final public static  intSTYLE_OUTLINE
    
final public static  intSTYLE_SHADOW
    
final public static  intSTYLE_STRIKETHROUGH
    
final public static  intSTYLE_UNDERLINE
    
protected  RtfDocumentdocument
     The RtfDocument this RtfFont belongs to.

Constructor Summary
public  RtfFont(String fontName)
     Constructs a RtfFont with the given font name and all other properties at their default values.
public  RtfFont(String fontName, float size)
     Constructs a RtfFont with the given font name and font size and all other properties at their default values.
public  RtfFont(String fontName, float size, int style)
     Constructs a RtfFont with the given font name, font size and font style and the default color.
public  RtfFont(String fontName, float size, int style, Color color)
     Constructs a RtfFont with the given font name, font size, font style and color.
public  RtfFont(String fontName, float size, int style, Color color, int charset)
     Constructs a RtfFont with the given font name, font size, font style, colour and charset.
protected  RtfFont(RtfDocument doc, int fontNumber)
    
public  RtfFont(RtfDocument doc, Font font)
    

Method Summary
public  Fontdifference(Font font)
     Replaces the attributes that are equal to null with the attributes of a given font.
public  booleanequals(Object obj)
     Tests for equality of RtfFonts.
public  intgetCharset()
     Gets the charset used for constructing this RtfFont.
public  StringgetFamilyname()
    
public  StringgetFontName()
    
public  intgetFontNumber()
    
public  intgetFontSize()
    
public  intgetFontStyle()
    
public  inthashCode()
     Returns the hash code of this RtfFont.
protected  byte[]intToByteArray(int i)
     Transforms an integer into its String representation and then returns the bytes of that string.
public  voidsetCharset(int charset)
     Sets the charset used for constructing this RtfFont.
public  voidsetColor(Color color)
    
public  voidsetColor(int red, int green, int blue)
    
public  voidsetFamily(String family)
    
protected  voidsetFontName(String fontName)
     Sets the font name of this RtfFont.
public  voidsetInHeader(boolean inHeader)
    
public  voidsetInTable(boolean inTable)
    
public  voidsetRtfDocument(RtfDocument doc)
    
public  voidsetSize(float size)
    
public  voidsetStyle(int style)
    
public  voidsetStyle(String style)
    
public  byte[]write()
    
public  byte[]writeBegin()
    
public  voidwriteContent(OutputStream out)
    
public  byte[]writeDefinition()
    
public  voidwriteDefinition(OutputStream result)
    
public  byte[]writeEnd()
    

Field Detail
FONT_SIZE
final public static byte[] FONT_SIZE(Code)
Constant for the font size



STYLE_BOLD
final public static int STYLE_BOLD(Code)
Constant for a bold font



STYLE_DOUBLE_STRIKETHROUGH
final public static int STYLE_DOUBLE_STRIKETHROUGH(Code)
Constant for a double strikethrough font



STYLE_EMBOSSED
final public static int STYLE_EMBOSSED(Code)
Constant for an embossed font



STYLE_ENGRAVED
final public static int STYLE_ENGRAVED(Code)
Constant for an engraved font



STYLE_HIDDEN
final public static int STYLE_HIDDEN(Code)
Constant for a font that hides the actual text.



STYLE_ITALIC
final public static int STYLE_ITALIC(Code)
Constant for an italic font



STYLE_NONE
final public static int STYLE_NONE(Code)
Constant for a plain font



STYLE_OUTLINE
final public static int STYLE_OUTLINE(Code)
Constant for an outlined font



STYLE_SHADOW
final public static int STYLE_SHADOW(Code)
Constant for a shadowed font



STYLE_STRIKETHROUGH
final public static int STYLE_STRIKETHROUGH(Code)
Constant for a strikethrough font



STYLE_UNDERLINE
final public static int STYLE_UNDERLINE(Code)
Constant for an underlined font



document
protected RtfDocument document(Code)
The RtfDocument this RtfFont belongs to.




Constructor Detail
RtfFont
public RtfFont(String fontName)(Code)
Constructs a RtfFont with the given font name and all other properties at their default values.
Parameters:
  fontName - The font name to use



RtfFont
public RtfFont(String fontName, float size)(Code)
Constructs a RtfFont with the given font name and font size and all other properties at their default values.
Parameters:
  fontName - The font name to use
Parameters:
  size - The font size to use



RtfFont
public RtfFont(String fontName, float size, int style)(Code)
Constructs a RtfFont with the given font name, font size and font style and the default color.
Parameters:
  fontName - The font name to use
Parameters:
  size - The font size to use
Parameters:
  style - The font style to use



RtfFont
public RtfFont(String fontName, float size, int style, Color color)(Code)
Constructs a RtfFont with the given font name, font size, font style and color.
Parameters:
  fontName - The font name to use
Parameters:
  size - the font size to use
Parameters:
  style - The font style to use
Parameters:
  color - The font color to use



RtfFont
public RtfFont(String fontName, float size, int style, Color color, int charset)(Code)
Constructs a RtfFont with the given font name, font size, font style, colour and charset. This can be used when generating non latin-1 text.
Parameters:
  fontName - The font name to use
Parameters:
  size - the font size to use
Parameters:
  style - The font style to use
Parameters:
  color - The font color to use
Parameters:
  charset - The charset of the font content



RtfFont
protected RtfFont(RtfDocument doc, int fontNumber)(Code)
Special constructor for the default font
Parameters:
  doc - The RtfDocument this font appears in
Parameters:
  fontNumber - The id of this font



RtfFont
public RtfFont(RtfDocument doc, Font font)(Code)
Constructs a RtfFont from a com.lowagie.text.Font
Parameters:
  doc - The RtfDocument this font appears in
Parameters:
  font - The Font to use as a base




Method Detail
difference
public Font difference(Font font)(Code)
Replaces the attributes that are equal to null with the attributes of a given font.
Parameters:
  font - The surrounding font A RtfFont



equals
public boolean equals(Object obj)(Code)
Tests for equality of RtfFonts. RtfFonts are equal if their fontName, fontSize, fontStyle and fontSuperSubscript are equal
Parameters:
  obj - The RtfFont to compare with this RtfFont True if the RtfFonts are equal, false otherwise



getCharset
public int getCharset()(Code)
Gets the charset used for constructing this RtfFont. The charset of this RtfFont.



getFamilyname
public String getFamilyname()(Code)

See Also:   com.lowagie.text.Font.getFamilyname



getFontName
public String getFontName()(Code)
Gets the font name of this RtfFont The font name



getFontNumber
public int getFontNumber()(Code)
Gets the font number of this RtfFont The font number



getFontSize
public int getFontSize()(Code)
Gets the font size of this RtfFont The font size



getFontStyle
public int getFontStyle()(Code)
Gets the font style of this RtfFont The font style



hashCode
public int hashCode()(Code)
Returns the hash code of this RtfFont. The hash code is the hash code of the string containing the font name + font size + "-" + the font style + "-" + the font super/supscript value. The hash code of this RtfFont



intToByteArray
protected byte[] intToByteArray(int i)(Code)
Transforms an integer into its String representation and then returns the bytes of that string.
Parameters:
  i - The integer to convert A byte array representing the integer



setCharset
public void setCharset(int charset)(Code)
Sets the charset used for constructing this RtfFont.
Parameters:
  charset - The charset to use.



setColor
public void setColor(Color color)(Code)

See Also:   com.lowagie.text.Font.setColor(Color)



setColor
public void setColor(int red, int green, int blue)(Code)

See Also:   com.lowagie.text.Font.setColor(intintint)



setFamily
public void setFamily(String family)(Code)

See Also:   com.lowagie.text.Font.setFamily(String)



setFontName
protected void setFontName(String fontName)(Code)
Sets the font name of this RtfFont.
Parameters:
  fontName - The font name to use



setInHeader
public void setInHeader(boolean inHeader)(Code)
Unused
Parameters:
  inHeader -



setInTable
public void setInTable(boolean inTable)(Code)
Unused
Parameters:
  inTable -



setRtfDocument
public void setRtfDocument(RtfDocument doc)(Code)
Sets the RtfDocument this RtfFont belongs to
Parameters:
  doc - The RtfDocument to use



setSize
public void setSize(float size)(Code)

See Also:   com.lowagie.text.Font.setSize(float)



setStyle
public void setStyle(int style)(Code)

See Also:   com.lowagie.text.Font.setStyle(int)



setStyle
public void setStyle(String style)(Code)

See Also:   com.lowagie.text.Font.setStyle(String)



write
public byte[] write()(Code)
Unused an empty byte arrayRtfFont.writeContent(OutputStream)



writeBegin
public byte[] writeBegin()(Code)
Writes the font beginning A byte array with the font start data



writeContent
public void writeContent(OutputStream out) throws IOException(Code)
unused



writeDefinition
public byte[] writeDefinition()(Code)
Writes the font definition A byte array with the font definitionRtfFont.writeDefinition(OutputStream)



writeDefinition
public void writeDefinition(OutputStream result) throws IOException(Code)
Writes the font definition



writeEnd
public byte[] writeEnd()(Code)
Write the font end A byte array with the end of font data



Fields inherited from com.lowagie.text.Font
final public static int BOLD(Code)(Java Doc)
final public static int BOLDITALIC(Code)(Java Doc)
final public static int COURIER(Code)(Java Doc)
final public static int DEFAULTSIZE(Code)(Java Doc)
final public static int HELVETICA(Code)(Java Doc)
final public static int ITALIC(Code)(Java Doc)
final public static int NORMAL(Code)(Java Doc)
final public static int STRIKETHRU(Code)(Java Doc)
final public static int SYMBOL(Code)(Java Doc)
final public static int TIMES_ROMAN(Code)(Java Doc)
final public static int UNDEFINED(Code)(Java Doc)
final public static int UNDERLINE(Code)(Java Doc)
final public static int ZAPFDINGBATS(Code)(Java Doc)

Methods inherited from com.lowagie.text.Font
public Color color()(Code)(Java Doc)
public int compareTo(Object object)(Code)(Java Doc)
public Font difference(Font font)(Code)(Java Doc)
public int family()(Code)(Java Doc)
public BaseFont getBaseFont()(Code)(Java Doc)
public BaseFont getCalculatedBaseFont(boolean specialEncoding)(Code)(Java Doc)
public float getCalculatedLeading(float linespacing)(Code)(Java Doc)
public float getCalculatedSize()(Code)(Java Doc)
public int getCalculatedStyle()(Code)(Java Doc)
public Color getColor()(Code)(Java Doc)
public int getFamily()(Code)(Java Doc)
public static int getFamilyIndex(String family)(Code)(Java Doc)
public String getFamilyname()(Code)(Java Doc)
public float getSize()(Code)(Java Doc)
public int getStyle()(Code)(Java Doc)
public static int getStyleValue(String style)(Code)(Java Doc)
public boolean isBold()(Code)(Java Doc)
public boolean isItalic()(Code)(Java Doc)
public boolean isStandardFont()(Code)(Java Doc)
public boolean isStrikethru()(Code)(Java Doc)
public boolean isUnderlined()(Code)(Java Doc)
public float leading(float linespacing)(Code)(Java Doc)
public void setColor(Color color)(Code)(Java Doc)
public void setColor(int red, int green, int blue)(Code)(Java Doc)
public void setFamily(String family)(Code)(Java Doc)
public void setSize(float size)(Code)(Java Doc)
public void setStyle(int style)(Code)(Java Doc)
public void setStyle(String style)(Code)(Java Doc)
public float size()(Code)(Java Doc)
public int style()(Code)(Java Doc)

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.