Java Doc for CompositeFont.java in  » Apache-Harmony-Java-SE » org-package » org » apache » harmony » awt » gl » font » 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 » Apache Harmony Java SE » org package » org.apache.harmony.awt.gl.font 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.harmony.awt.gl.font.FontPeerImpl
      org.apache.harmony.awt.gl.font.CompositeFont

CompositeFont
public class CompositeFont extends FontPeerImpl (Code)
CompositeFont class is the implementation of logical font classes. Every logical font consists of several physical fonts that described in font.properties file according to the face name of this logical font.


Field Summary
 intcachedNumGlyphs
    
public  FontPeerImpl[]fPhysicalFonts
    
 Stringface
    
 Stringfamily
    
 String[]fontNames
    
 FontProperty[]fontProperties
    
 intmissingGlyphCode
    
 LineMetricsImplnlm
    
 intnumFonts
    

Constructor Summary
public  CompositeFont(String familyName, String faceName, int _style, int _size, FontProperty[] fProperties, FontPeerImpl[] physFonts)
     Creates CompositeFont object that is corresponding to the specified logical family name.

Method Summary
public  booleancanDisplay(char chr)
     Returns true if one of the physical fonts composing this font CompositeFont can display specified character.
public  intcharWidth(int ind)
     Returns width of the char with specified index.
public  intcharWidth(char c)
     Returns width of the specified char.
public  voiddispose()
     Disposes CompositeFont object's resources.
public  intgetAscent()
    
public  intgetCharFontIndex(char chr)
     Returns the index of the FontPeer in array of physical fonts that is applicable for the given character.
public  intgetCharFontIndex(char chr, int defaultValue)
     Returns the index of the FontPeer in array of physical fonts that is applicable for the given character.
public  GlyphgetDefaultGlyph()
     Returns Glyph object corresponding to the default glyph.
public  FontExtraMetricsgetExtraMetrics()
     Returns FontExtraMetrics object with extra metrics related to this CompositeFont.
public  StringgetFamily()
     Returns font family name.
public  StringgetFontName()
     Returns font name.
public  GlyphgetGlyph(char ch)
     Returns Glyph object corresponding to the specified character.
public  floatgetItalicAngle()
     Returns the italic angle of this object.
public  LineMetricsgetLineMetrics(String str, FontRenderContext frc, AffineTransform at)
     Returns LineMetrics instance scaled according to the specified transform.
public  LineMetricsgetLineMetrics()
     Returns cached LineMetrics instance for the null string or creates it if it wasn't cached yet.
public  Rectangle2DgetMaxCharBounds(FontRenderContext frc)
     Returns maximum rectangle that encloses all maximum char bounds of physical fonts composing this CompositeFont.
public  intgetMissingGlyphCode()
     Returns the code of the missing glyph.
public  intgetNumGlyphs()
     Returns the number of glyphs in this CompositeFont object.
public  StringgetPSName()
     Returns font postscript name.
public  Rectangle2DgetStringBounds(char[] chars, int start, int end, FontRenderContext frc)
     Returns rectangle that bounds the specified string in terms of composite line metrics.
public  StringtoString()
     Returns debug information about this class.

Field Detail
cachedNumGlyphs
int cachedNumGlyphs(Code)



fPhysicalFonts
public FontPeerImpl[] fPhysicalFonts(Code)



face
String face(Code)



family
String family(Code)



fontNames
String[] fontNames(Code)



fontProperties
FontProperty[] fontProperties(Code)



missingGlyphCode
int missingGlyphCode(Code)



nlm
LineMetricsImpl nlm(Code)



numFonts
int numFonts(Code)




Constructor Detail
CompositeFont
public CompositeFont(String familyName, String faceName, int _style, int _size, FontProperty[] fProperties, FontPeerImpl[] physFonts)(Code)
Creates CompositeFont object that is corresponding to the specified logical family name.
Parameters:
  familyName - logical family name CompositeFont is to be created from
Parameters:
  faceName - logical face name CompositeFont is to be created from
Parameters:
  _style - style of the CompositeFont to be created
Parameters:
  _size - size of the CompositeFont to be created
Parameters:
  fProperties - an array of FontProperties describing physical fonts - parts of logical font
Parameters:
  physFonts - an array of physical font peers related to the CompositeFontto be created




Method Detail
canDisplay
public boolean canDisplay(char chr)(Code)
Returns true if one of the physical fonts composing this font CompositeFont can display specified character.
Parameters:
  chr - specified character



charWidth
public int charWidth(int ind)(Code)
Returns width of the char with specified index.
Parameters:
  ind - specified index of the character



charWidth
public int charWidth(char c)(Code)
Returns width of the specified char.
Parameters:
  c - specified character



dispose
public void dispose()(Code)
Disposes CompositeFont object's resources.



getAscent
public int getAscent()(Code)
Returns logical ascent (in pixels)



getCharFontIndex
public int getCharFontIndex(char chr)(Code)
Returns the index of the FontPeer in array of physical fonts that is applicable for the given character. This font has to have the highest priority among fonts that can display this character and don't have exclusion range covering specified character. If there is no desired fonts -1 is returned.
Parameters:
  chr - specified character index of the font from the array of physical fonts that will be used during processing of the specified character.



getCharFontIndex
public int getCharFontIndex(char chr, int defaultValue)(Code)
Returns the index of the FontPeer in array of physical fonts that is applicable for the given character. This font has to have the highest priority among fonts that can display this character and don't have exclusion range covering specified character. If there is no desired fonts default value is returned.
Parameters:
  chr - specified character
Parameters:
  defaultValue - default index that is returned if the necessary font couldn't be found. index of the font from the array of physical fonts that will be used during processing of the specified character.



getDefaultGlyph
public Glyph getDefaultGlyph()(Code)
Returns Glyph object corresponding to the default glyph.



getExtraMetrics
public FontExtraMetrics getExtraMetrics()(Code)
Returns FontExtraMetrics object with extra metrics related to this CompositeFont.



getFamily
public String getFamily()(Code)
Returns font family name.



getFontName
public String getFontName()(Code)
Returns font name.



getGlyph
public Glyph getGlyph(char ch)(Code)
Returns Glyph object corresponding to the specified character.
Parameters:
  ch - specified char



getItalicAngle
public float getItalicAngle()(Code)
Returns the italic angle of this object.



getLineMetrics
public LineMetrics getLineMetrics(String str, FontRenderContext frc, AffineTransform at)(Code)
Returns LineMetrics instance scaled according to the specified transform.
Parameters:
  str - specified String
Parameters:
  frc - specified FontRenderContext
Parameters:
  at - specified AffineTransform



getLineMetrics
public LineMetrics getLineMetrics()(Code)
Returns cached LineMetrics instance for the null string or creates it if it wasn't cached yet.



getMaxCharBounds
public Rectangle2D getMaxCharBounds(FontRenderContext frc)(Code)
Returns maximum rectangle that encloses all maximum char bounds of physical fonts composing this CompositeFont.
Parameters:
  frc - specified FontRenderContext



getMissingGlyphCode
public int getMissingGlyphCode()(Code)
Returns the code of the missing glyph.



getNumGlyphs
public int getNumGlyphs()(Code)
Returns the number of glyphs in this CompositeFont object.



getPSName
public String getPSName()(Code)
Returns font postscript name.



getStringBounds
public Rectangle2D getStringBounds(char[] chars, int start, int end, FontRenderContext frc)(Code)
Returns rectangle that bounds the specified string in terms of composite line metrics.
Parameters:
  chars - an array of chars
Parameters:
  start - the initial offset in array of chars
Parameters:
  end - the end offset in array of chars
Parameters:
  frc - specified FontRenderContext



toString
public String toString()(Code)
Returns debug information about this class.



Fields inherited from org.apache.harmony.awt.gl.font.FontPeerImpl
int ascent(Code)(Java Doc)
public char defaultChar(Code)(Java Doc)
int descent(Code)(Java Doc)
FontExtraMetrics extraMetrix(Code)(Java Doc)
String faceName(Code)(Java Doc)
String fontFamilyName(Code)(Java Doc)
int fontType(Code)(Java Doc)
float height(Code)(Java Doc)
float italicAngle(Code)(Java Doc)
int leading(Code)(Java Doc)
int logicalHeight(Code)(Java Doc)
int maxAdvance(Code)(Java Doc)
protected Rectangle2D maxCharBounds(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected LineMetricsImpl nlm(Code)(Java Doc)
int numGlyphs(Code)(Java Doc)
protected long pFont(Code)(Java Doc)
protected String psName(Code)(Java Doc)
protected int size(Code)(Java Doc)
protected int style(Code)(Java Doc)
boolean uniformLM(Code)(Java Doc)

Methods inherited from org.apache.harmony.awt.gl.font.FontPeerImpl
abstract public boolean canDisplay(char c)(Code)(Java Doc)
public int charWidth(char ch)(Code)(Java Doc)
public int charWidth(int ind)(Code)(Java Doc)
abstract public void dispose()(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
public int getAscent()(Code)(Java Doc)
abstract public Glyph getDefaultGlyph()(Code)(Java Doc)
public int getDescent()(Code)(Java Doc)
abstract public FontExtraMetrics getExtraMetrics()(Code)(Java Doc)
public String getFamily(Locale l)(Code)(Java Doc)
public String getFamily()(Code)(Java Doc)
public long getFontHandle()(Code)(Java Doc)
public String getFontName(Locale l)(Code)(Java Doc)
public String getFontName()(Code)(Java Doc)
public int getFontType()(Code)(Java Doc)
abstract public Glyph getGlyph(char ch)(Code)(Java Doc)
public Glyph[] getGlyphs(char uFirst, char uLast)(Code)(Java Doc)
public Glyph[] getGlyphs(char[] chars)(Code)(Java Doc)
public Glyph[] getGlyphs(String str)(Code)(Java Doc)
public float getHeight()(Code)(Java Doc)
public float getItalicAngle()(Code)(Java Doc)
public int getLeading()(Code)(Java Doc)
abstract public LineMetrics getLineMetrics(String str, FontRenderContext frc, AffineTransform at)(Code)(Java Doc)
public LineMetrics getLineMetrics()(Code)(Java Doc)
public int getLogicalHeight()(Code)(Java Doc)
public Rectangle2D getMaxCharBounds(FontRenderContext frc)(Code)(Java Doc)
abstract public int getMissingGlyphCode()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public int getNumGlyphs()(Code)(Java Doc)
abstract public String getPSName()(Code)(Java Doc)
public int getSize()(Code)(Java Doc)
public int getStyle()(Code)(Java Doc)
public String getTempFontFileName()(Code)(Java Doc)
public char getUnicodeByIndex(int glyphCode)(Code)(Java Doc)
public boolean hasUniformLineMetrics()(Code)(Java Doc)
public boolean isCreatedFromStream()(Code)(Java Doc)
public void setCreatedFromStream(boolean value)(Code)(Java Doc)
public void setFamily(String familyName)(Code)(Java Doc)
public void setFontFileName(String value)(Code)(Java Doc)
public void setFontName(String fontName)(Code)(Java Doc)
public void setFontType(int newType)(Code)(Java Doc)
public void setLogicalHeight(int newHeight)(Code)(Java Doc)
public void setPSName(String name)(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.