Java Doc for FontDefinition.java in  » Report » pentaho-report » org » jfree » report » 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 » Report » pentaho report » org.jfree.report.style 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jfree.report.style.FontDefinition

FontDefinition
public class FontDefinition implements Serializable,Cloneable(Code)
The FontDefinition encapsulates all Font-Style information. The java.awt.Font class does not support extended Styles like Strikethrough or Underline or font metadata like the base encoding.
author:
   Thomas Morgner


Field Summary
final public static  booleanBOLD
     a constant to draw a font in bold style.
final public static  booleanITALIC
     a constant to draw a font in italic style.
final public static  booleanPLAIN
     a constant to draw a font in plain style.
final public static  booleanSTRIKETHROUGH
     a constant to draw a font with strikethrough style.
final public static  booleanUNDERLINE
     a constant to draw a font with underline style.

Constructor Summary
public  FontDefinition(String fontName, int fontSize, boolean bold, boolean italic, boolean underline, boolean strikeThrough, String encoding, boolean embedded)
     Creates a font definition using the given name and size and with the given styles defined.
public  FontDefinition(String fontName, int fontSize, boolean bold, boolean italic, boolean underline, boolean strikeThrough)
     Creates a font definition using the given name and size and with the given styles defined.
public  FontDefinition(String fontName, int fontSize)
     Creates a font definition using the given name and size and with no additional style enabled.
public  FontDefinition(Font font)
     Creates a font definition base on the given AWT font.

Method Summary
public  Objectclone()
     Creates and returns a copy of this object.
public  booleanequals(Object o)
     Indicates whether some other object is "equal to" this one.
Parameters:
  o - the reference object with which to compare.
public  FontgetFont()
     returns the AWT-Font defined by this FontDefinition.
public  StringgetFontEncoding(String defaultEncoding)
     Returns this fonts string encoding.
public  StringgetFontName()
     Returns the font name of this font definition.
public  intgetFontSize()
     Returns the size of the defined font.
public  inthashCode()
     Returns a hash code value for the object.
public  booleanisBold()
     Returns the bold style of this font definition.
public  booleanisCourier()
     Returns true if the logical font name is equivalent to 'Courier', and false otherwise.
public  booleanisEmbeddedFont()
     Returns whether the font should be embedded in the target document.
public  booleanisItalic()
     Returns the italic style of this font definition.
public  booleanisSansSerif()
     Returns true if the logical font name is equivalent to 'SansSerif', and false otherwise.
public  booleanisSerif()
     Returns true if the logical font name is equivalent to 'Serif', and false otherwise.
public  booleanisStrikeThrough()
     Returns the strikethrough style of this font definition.
public  booleanisUnderline()
     Returns the underline style of this font definition.
public  StringtoString()
     Returns a string representation of this font definition.

Field Detail
BOLD
final public static boolean BOLD(Code)
a constant to draw a font in bold style.



ITALIC
final public static boolean ITALIC(Code)
a constant to draw a font in italic style.



PLAIN
final public static boolean PLAIN(Code)
a constant to draw a font in plain style.



STRIKETHROUGH
final public static boolean STRIKETHROUGH(Code)
a constant to draw a font with strikethrough style.



UNDERLINE
final public static boolean UNDERLINE(Code)
a constant to draw a font with underline style.




Constructor Detail
FontDefinition
public FontDefinition(String fontName, int fontSize, boolean bold, boolean italic, boolean underline, boolean strikeThrough, String encoding, boolean embedded)(Code)
Creates a font definition using the given name and size and with the given styles defined.
Parameters:
  fontName - the font name used in this font definition.
Parameters:
  fontSize - the font size for the defined font.
Parameters:
  bold - true, if the font should be bold, false otherwise
Parameters:
  italic - true, if the font should be italic, false otherwise
Parameters:
  underline - true, if the font should be drawn with underline style, falseotherwise
Parameters:
  strikeThrough - true, if the font should be drawn with strikethrough style,false otherwise
Parameters:
  encoding - the default text encoding that should be used with this font.
Parameters:
  embedded - whether this font should be embedded in the target document.



FontDefinition
public FontDefinition(String fontName, int fontSize, boolean bold, boolean italic, boolean underline, boolean strikeThrough)(Code)
Creates a font definition using the given name and size and with the given styles defined.
Parameters:
  fontName - the font name used in this font definition.
Parameters:
  fontSize - the font size for the defined font.
Parameters:
  bold - true, if the font should be bold, false otherwise
Parameters:
  italic - true, if the font should be italic, false otherwise
Parameters:
  underline - true, if the font should be drawn with underline style, falseotherwise
Parameters:
  strikeThrough - true, if the font should be drawn with strikethrough style,false otherwise



FontDefinition
public FontDefinition(String fontName, int fontSize)(Code)
Creates a font definition using the given name and size and with no additional style enabled.
Parameters:
  fontName - the font name used in this font definition.
Parameters:
  fontSize - the font size for the defined font.



FontDefinition
public FontDefinition(Font font)(Code)
Creates a font definition base on the given AWT font.
Parameters:
  font - the awt font that should be used as definition source.




Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)
Creates and returns a copy of this object. a clone of this instance.
throws:
  CloneNotSupportedException - if a error occured during cloning .
See Also:   java.lang.Cloneable



equals
public boolean equals(Object o)(Code)
Indicates whether some other object is "equal to" this one.
Parameters:
  o - the reference object with which to compare. true if this object is the same as the obj argument;false otherwise.
See Also:   FontDefinition.hashCode()
See Also:   java.util.Hashtable



getFont
public Font getFont()(Code)
returns the AWT-Font defined by this FontDefinition. the AWT font.



getFontEncoding
public String getFontEncoding(String defaultEncoding)(Code)
Returns this fonts string encoding. If the font does not define an encoding, the given default encoding is returned.
Parameters:
  defaultEncoding - the font encoding to be used if this font definition does notdefine an own encoding. the font encoding or the default encoding.



getFontName
public String getFontName()(Code)
Returns the font name of this font definition. The font name is the font face name. the name of the font.



getFontSize
public int getFontSize()(Code)
Returns the size of the defined font. the font size in points.



hashCode
public int hashCode()(Code)
Returns a hash code value for the object. This method is supported for the benefit of hashtables such as those provided by java.util.Hashtable. a hash code value for this object.
See Also:   java.lang.Object.equals(java.lang.Object)



isBold
public boolean isBold()(Code)
Returns the bold style of this font definition. true, if the font should be drawn in bold style.



isCourier
public boolean isCourier()(Code)
Returns true if the logical font name is equivalent to 'Courier', and false otherwise. true or false.



isEmbeddedFont
public boolean isEmbeddedFont()(Code)
Returns whether the font should be embedded in the target document. true, if the font should be embedded.



isItalic
public boolean isItalic()(Code)
Returns the italic style of this font definition. true, if the font should be drawn in italic style.



isSansSerif
public boolean isSansSerif()(Code)
Returns true if the logical font name is equivalent to 'SansSerif', and false otherwise. true or false.



isSerif
public boolean isSerif()(Code)
Returns true if the logical font name is equivalent to 'Serif', and false otherwise. true or false.



isStrikeThrough
public boolean isStrikeThrough()(Code)
Returns the strikethrough style of this font definition. true, if the font should be drawn in strikethrough style.



isUnderline
public boolean isUnderline()(Code)
Returns the underline style of this font definition. true, if the font should be drawn in underline style.



toString
public String toString()(Code)
Returns a string representation of this font definition. a string representation of this font definition.



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.