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

All known Subclasses:   org.apache.harmony.awt.gl.font.CompositeFont,  org.apache.harmony.awt.gl.font.LinuxFont,  org.apache.harmony.awt.gl.font.WindowsFont,  org.apache.harmony.awt.gl.font.fontlib.FLFontPeer,
FontPeerImpl
abstract public class FontPeerImpl implements FontPeer(Code)
Abstract class for platform dependent peer implementation of the Font class.


Field Summary
 intascent
    
public  chardefaultChar
     Default glyph index, that is used, when the desired glyph is unsupported in this Font.
 intdescent
    
 FontExtraMetricsextraMetrix
    
 StringfaceName
    
 StringfontFamilyName
    
 intfontType
     Flag of the type of this Font that is indicate is the Font has TrueType or Type1 type.
 floatheight
    
 floatitalicAngle
    
 intleading
    
 intlogicalHeight
    
 intmaxAdvance
    
protected  Rectangle2DmaxCharBounds
    
protected  Stringname
    
protected  LineMetricsImplnlm
    
 intnumGlyphs
    
protected  longpFont
    
protected  StringpsName
    
protected  intsize
    
protected  intstyle
    
 booleanuniformLM
     Uniform LineMetrics flag, that is false for CompositeFont.


Method Summary
abstract public  booleancanDisplay(char c)
    
public  intcharWidth(char ch)
     Returns the advance width of the specified char of this FontPeerImpl. Note, if glyph is absent in the font's glyphset - returned value is the advance of the deafualt glyph.
public  intcharWidth(int ind)
     Returns the advance width of the specified char of this FontPeerImpl.
abstract public  voiddispose()
     Disposes nesessary resources.
protected  voidfinalize()
    
public  intgetAscent()
     Returns ascent of this font peer.
abstract public  GlyphgetDefaultGlyph()
     Returns Glyph representing missing char.
public  intgetDescent()
     Returns descent of this font peer.
abstract public  FontExtraMetricsgetExtraMetrics()
    
public  StringgetFamily(Locale l)
     Returns family name of the font in specified locale settings.
public  StringgetFamily()
     Returns family name of this FontPeerImpl.
public  longgetFontHandle()
     Returns native font handle of this font peer.
public  StringgetFontName(Locale l)
     Returns face name of the font in specified locale settings.
public  StringgetFontName()
     Returns face name of this FontPeerImpl.
public  intgetFontType()
     Returns type of this font. one of constant font type values.
abstract public  GlyphgetGlyph(char ch)
     Returns Glyph representation of the given char.
public  Glyph[]getGlyphs(char uFirst, char uLast)
     Returns an array of Glyphs that represent characters from the specified Unicode range.
public  Glyph[]getGlyphs(char[] chars)
     Returns an array of Glyphs representing given array of chars.
public  Glyph[]getGlyphs(String str)
     Returns an array of Glyphs representing given string.
public  floatgetHeight()
     Returns height of this font peer.
public  floatgetItalicAngle()
     Returns tangens of the italic angle of this FontPeerImpl.
public  intgetLeading()
     Returns leading of this font peer.
abstract public  LineMetricsgetLineMetrics(String str, FontRenderContext frc, AffineTransform at)
    
public  LineMetricsgetLineMetrics()
     Returns cached LineMetrics object of this font peer.
public  intgetLogicalHeight()
     Returns height of this font peer in pixels.
public  Rectangle2DgetMaxCharBounds(FontRenderContext frc)
     Returns the bounds of the largest char in this FontPeerImpl in specified render context.
abstract public  intgetMissingGlyphCode()
     Returns code of the missing glyph.
public  StringgetName()
     Returns font name.
public  intgetNumGlyphs()
     Returns the number of glyphs in this FontPeerImpl.
abstract public  StringgetPSName()
     Returns postscript name of the font.
public  intgetSize()
     Returns font size.
public  intgetStyle()
     Returns font style.
public  StringgetTempFontFileName()
     Returns font file name of this font.
public  chargetUnicodeByIndex(int glyphCode)
     Returns unicode by glyph index.
public  booleanhasUniformLineMetrics()
     Returns true if this font peer has uniform line metrics.
public  booleanisCreatedFromStream()
     Returns true, if this font peer was created from InputStream, false otherwise.
public  voidsetCreatedFromStream(boolean value)
     Sets createdFromStream flag to the specified parameter.
public  voidsetFamily(String familyName)
     Sets family name of the font in specified locale settings.
public  voidsetFontFileName(String value)
     Sets font file name of this font to the specified one.
public  voidsetFontName(String fontName)
     Sets font name of the font in specified locale settings.
public  voidsetFontType(int newType)
     Sets new font type to the font object.
public  voidsetLogicalHeight(int newHeight)
     Sets height of this font peer in pixels to the given value.
public  voidsetPSName(String name)
     Set postscript name of the font to the specified parameter.

Field Detail
ascent
int ascent(Code)



defaultChar
public char defaultChar(Code)
Default glyph index, that is used, when the desired glyph is unsupported in this Font.



descent
int descent(Code)



extraMetrix
FontExtraMetrics extraMetrix(Code)



faceName
String faceName(Code)



fontFamilyName
String fontFamilyName(Code)



fontType
int fontType(Code)
Flag of the type of this Font that is indicate is the Font has TrueType or Type1 type. Default value is FONT_TYPE_UNDEF.



height
float height(Code)



italicAngle
float italicAngle(Code)



leading
int leading(Code)



logicalHeight
int logicalHeight(Code)



maxAdvance
int maxAdvance(Code)



maxCharBounds
protected Rectangle2D maxCharBounds(Code)



name
protected String name(Code)



nlm
protected LineMetricsImpl nlm(Code)



numGlyphs
int numGlyphs(Code)



pFont
protected long pFont(Code)



psName
protected String psName(Code)



size
protected int size(Code)



style
protected int style(Code)



uniformLM
boolean uniformLM(Code)
Uniform LineMetrics flag, that is false for CompositeFont. Default value is true.





Method Detail
canDisplay
abstract public boolean canDisplay(char c)(Code)
Returns true if this FontPeerImpl can display the specified char



charWidth
public int charWidth(char ch)(Code)
Returns the advance width of the specified char of this FontPeerImpl. Note, if glyph is absent in the font's glyphset - returned value is the advance of the deafualt glyph. For escape-chars returned width value is 0.
Parameters:
  ch - the char which width is to be returned the advance width of the specified char of this FontPeerImpl



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



dispose
abstract public void dispose()(Code)
Disposes nesessary resources.



finalize
protected void finalize() throws Throwable(Code)



getAscent
public int getAscent()(Code)
Returns ascent of this font peer.



getDefaultGlyph
abstract public Glyph getDefaultGlyph()(Code)
Returns Glyph representing missing char.



getDescent
public int getDescent()(Code)
Returns descent of this font peer.



getExtraMetrics
abstract public FontExtraMetrics getExtraMetrics()(Code)



getFamily
public String getFamily(Locale l)(Code)
Returns family name of the font in specified locale settings.
Parameters:
  l - specified Locale



getFamily
public String getFamily()(Code)
Returns family name of this FontPeerImpl.



getFontHandle
public long getFontHandle()(Code)
Returns native font handle of this font peer.



getFontName
public String getFontName(Locale l)(Code)
Returns face name of the font in specified locale settings.
Parameters:
  l - specified Locale



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



getFontType
public int getFontType()(Code)
Returns type of this font. one of constant font type values.



getGlyph
abstract public Glyph getGlyph(char ch)(Code)
Returns Glyph representation of the given char.
Parameters:
  ch - specified char



getGlyphs
public Glyph[] getGlyphs(char uFirst, char uLast)(Code)
Returns an array of Glyphs that represent characters from the specified Unicode range.
Parameters:
  uFirst - start position in Unicode range
Parameters:
  uLast - end position in Unicode range



getGlyphs
public Glyph[] getGlyphs(char[] chars)(Code)
Returns an array of Glyphs representing given array of chars.
Parameters:
  chars - specified array of chars



getGlyphs
public Glyph[] getGlyphs(String str)(Code)
Returns an array of Glyphs representing given string.
Parameters:
  str - specified string



getHeight
public float getHeight()(Code)
Returns height of this font peer.



getItalicAngle
public float getItalicAngle()(Code)
Returns tangens of the italic angle of this FontPeerImpl. If the FontPeerImpl has TrueType font type, italic angle value can be calculated as (CharSlopeRun / CharSlopeRise) in terms of GDI.



getLeading
public int getLeading()(Code)
Returns leading of this font peer.



getLineMetrics
abstract public LineMetrics getLineMetrics(String str, FontRenderContext frc, AffineTransform at)(Code)
Returns LineMetrics object with specified parameters
Parameters:
  str - specified String
Parameters:
  frc - specified render context
Parameters:
  at - specified affine transform



getLineMetrics
public LineMetrics getLineMetrics()(Code)
Returns cached LineMetrics object of this font peer.



getLogicalHeight
public int getLogicalHeight()(Code)
Returns height of this font peer in pixels.



getMaxCharBounds
public Rectangle2D getMaxCharBounds(FontRenderContext frc)(Code)
Returns the bounds of the largest char in this FontPeerImpl in specified render context.
Parameters:
  frc - specified FontRenderContext



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



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



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



getPSName
abstract public String getPSName()(Code)
Returns postscript name of the font.



getSize
public int getSize()(Code)
Returns font size.



getStyle
public int getStyle()(Code)
Returns font style.



getTempFontFileName
public String getTempFontFileName()(Code)
Returns font file name of this font.



getUnicodeByIndex
public char getUnicodeByIndex(int glyphCode)(Code)
Returns unicode by glyph index.



hasUniformLineMetrics
public boolean hasUniformLineMetrics()(Code)
Returns true if this font peer has uniform line metrics.



isCreatedFromStream
public boolean isCreatedFromStream()(Code)
Returns true, if this font peer was created from InputStream, false otherwise. In case of creating fonts from InputStream some font peer implementations may need to free temporary resources.



setCreatedFromStream
public void setCreatedFromStream(boolean value)(Code)
Sets createdFromStream flag to the specified parameter. If parameter is true it means font peer was created from InputStream.
Parameters:
  value - true, if font peer was created from InputStream



setFamily
public void setFamily(String familyName)(Code)
Sets family name of the font in specified locale settings.



setFontFileName
public void setFontFileName(String value)(Code)
Sets font file name of this font to the specified one.
Parameters:
  value - String representing font file name



setFontName
public void setFontName(String fontName)(Code)
Sets font name of the font in specified locale settings.



setFontType
public void setFontType(int newType)(Code)
Sets new font type to the font object.
Parameters:
  newType - new type value



setLogicalHeight
public void setLogicalHeight(int newHeight)(Code)
Sets height of this font peer in pixels to the given value.
Parameters:
  newHeight - new height in pixels value



setPSName
public void setPSName(String name)(Code)
Set postscript name of the font to the specified parameter.



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.