Java Doc for WindowsFont.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.WindowsFont

WindowsFont
public class WindowsFont extends FontPeerImpl (Code)
Windows platform font peer implementation based on GDI font object.



Constructor Summary
public  WindowsFont(String fontName, int fontStyle, int fontSize)
    

Method Summary
public  booleanaddGlyph(char uChar)
     Add existing glyph to this WindowsFont object.
public  voidaddGlyphs(char uFirst, char uLast)
    
public  booleancanDisplay(char chr)
     Returns true if the specified character can be displayed by this WindowsFont.
public  intcharWidth(int ind)
     Returns the advance width of the specified char of this WindowsFont.
public  voiddispose()
     Dispose all native resources and deleting temporary font file if this WindowsFont object was created from stream.
public static  FontembedFont(String absolutePath)
     Return Font object if it was successfully embedded in the system.
public  GlyphgetDefaultGlyph()
     Returns default Glyph object of this WindowsFont.
public  FontExtraMetricsgetExtraMetrics()
     Returns initiated FontExtraMetrics instance of this WindowsFont.
public  StringgetFamily(Locale l)
     Returns locale dependent family name of this WindowsFont.
public  StringgetFontName(Locale l)
     Returns locale dependent face name of this WindowsFont.
public  StringgetFontName()
     Returns face name of this WindowsFont.
public  GlyphgetGlyph(char index)
     Returns Glyph object for the specified character in this WindowsFont.
public  LineMetricsgetLineMetrics(String str, FontRenderContext frc, AffineTransform at)
     Returns a LineMetrics object that contains text metrics of this WindowsFont.
public  intgetMissingGlyphCode()
    
public  StringgetPSName()
     Returns postscript name of this WindowsFont.
public  BufferedImagegetStringImage(String str)
     Returns string image, that can be blitted onto a BufferedImageGraphics2D.
public  chargetUnicodeByIndex(int glyphCode)
     Returns unicode by index from the 'cmap' table of this font.
public  int[]getUnicodeRanges()
     Returns an array of unicode ranges that are supported by this WindowsFont.
public  voidinitWindowsFont()
    
public  booleanisGlyphExists(char uIndex)
     Checks whether given Glyph belongs to any font supported unicode range.
public  voidsetUnicodeRanges(int[] ranges)
     Initializes the array of unicode ranges that are supported by this WindowsFont with the values from the specified array.


Constructor Detail
WindowsFont
public WindowsFont(String fontName, int fontStyle, int fontSize)(Code)




Method Detail
addGlyph
public boolean addGlyph(char uChar)(Code)
Add existing glyph to this WindowsFont object.
Parameters:
  uChar - the specified character true if glyph of the specified character exists in thisWindowsFont or this character is escape sequence character.



addGlyphs
public void addGlyphs(char uFirst, char uLast)(Code)
Adds range of existing glyphs to this WindowsFont object
Parameters:
  uFirst - the lowest range's bound, inclusive
Parameters:
  uLast - the highest range's bound, exclusive



canDisplay
public boolean canDisplay(char chr)(Code)
Returns true if the specified character can be displayed by this WindowsFont.
Parameters:
  chr - the specified character



charWidth
public int charWidth(int ind)(Code)
Returns the advance width of the specified char of this WindowsFont.
Parameters:
  ind - the char which width is to be returned the advance width of the specified char of this WindowsFont



dispose
public void dispose()(Code)
Dispose all native resources and deleting temporary font file if this WindowsFont object was created from stream.



embedFont
public static Font embedFont(String absolutePath) throws IOException(Code)
Return Font object if it was successfully embedded in the system.



getDefaultGlyph
public Glyph getDefaultGlyph()(Code)
Returns default Glyph object of this WindowsFont.



getExtraMetrics
public FontExtraMetrics getExtraMetrics()(Code)
Returns initiated FontExtraMetrics instance of this WindowsFont.



getFamily
public String getFamily(Locale l)(Code)
Returns locale dependent family name of this WindowsFont.



getFontName
public String getFontName(Locale l)(Code)
Returns locale dependent face name of this WindowsFont.



getFontName
public String getFontName()(Code)
Returns face name of this WindowsFont.



getGlyph
public Glyph getGlyph(char index)(Code)
Returns Glyph object for the specified character in this WindowsFont. Default Glyph object returned if the specified character doesn't exist in the WindowsFont
Parameters:
  index - the specified character



getLineMetrics
public LineMetrics getLineMetrics(String str, FontRenderContext frc, AffineTransform at)(Code)
Returns a LineMetrics object that contains text metrics of this WindowsFont.



getMissingGlyphCode
public int getMissingGlyphCode()(Code)



getPSName
public String getPSName()(Code)
Returns postscript name of this WindowsFont.



getStringImage
public BufferedImage getStringImage(String str)(Code)
Returns string image, that can be blitted onto a BufferedImageGraphics2D.
Parameters:
  str - the specified string a BufferedImage object that is the representation of the renderedstring



getUnicodeByIndex
public char getUnicodeByIndex(int glyphCode)(Code)
Returns unicode by index from the 'cmap' table of this font.



getUnicodeRanges
public int[] getUnicodeRanges()(Code)
Returns an array of unicode ranges that are supported by this WindowsFont.



initWindowsFont
public void initWindowsFont()(Code)



isGlyphExists
public boolean isGlyphExists(char uIndex)(Code)
Checks whether given Glyph belongs to any font supported unicode range.
Parameters:
  uIndex - specified character true if specified character in unicode ranges, false otherwise



setUnicodeRanges
public void setUnicodeRanges(int[] ranges)(Code)
Initializes the array of unicode ranges that are supported by this WindowsFont with the values from the specified array.
Parameters:
  ranges - the array of unicode ranges values



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.