Java Doc for X11FontMetrics.java in  » 6.0-JDK-Platform » solaris » sun » awt » motif » 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 » 6.0 JDK Platform » solaris » sun.awt.motif 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   java.awt.FontMetrics
      sun.awt.motif.X11FontMetrics

X11FontMetrics
public class X11FontMetrics extends FontMetrics (Code)
A font metrics object for a WServer font.
version:
   1.34, 05/05/07
author:
   Jim Graham


Field Summary
 intascent
     The standard ascent of the font.
 intdescent
     The standard descent of the font.
 intheight
     The standard height of a line of text in this font.
 intleading
     The standard leading for the font.
 intmaxAdvance
     The maximum advance width of any character in this font.
 intmaxAscent
     The maximum ascent for all characters in this font.
 intmaxDescent
     The maximum descent for all characters in this font.
 intmaxHeight
     The maximum possible height of a line of text in this font. Adjacent lines of text spaced this distance apart will be guaranteed not to overlap.
static  Hashtabletable
    
 intwidths
     The widths of the first 256 characters.

Constructor Summary
public  X11FontMetrics(Font font)
     Calculate the metrics from the given WServer and font.

Method Summary
native public  intbytesWidth(byte data, int off, int len)
     Return the width of the specified byte[] in this Font.
public  intcharsWidth(char chars, int offset, int length)
     Return the width of the specified char[] in this Font.
public  intgetAscent()
     Get ascent.
public  intgetDescent()
    
static synchronized  FontMetricsgetFontMetrics(Font font)
    
public  intgetHeight()
    
public  intgetLeading()
    
public  intgetMaxAdvance()
    
public  intgetMaxAscent()
    
public  intgetMaxDescent()
    
public  int[]getWidths()
     Get the widths of the first 256 characters in the font.
native  voidinit()
    
public  intstringWidth(String string)
     Return the width of the specified string in this Font.

Field Detail
ascent
int ascent(Code)
The standard ascent of the font. This is the logical height above the baseline for the Alphanumeric characters and should be used for determining line spacing. Note, however, that some characters in the font may extend above this height.



descent
int descent(Code)
The standard descent of the font. This is the logical height below the baseline for the Alphanumeric characters and should be used for determining line spacing. Note, however, that some characters in the font may extend below this height.



height
int height(Code)
The standard height of a line of text in this font. This is the distance between the baseline of adjacent lines of text. It is the sum of the ascent+descent+leading. There is no guarantee that lines of text spaced at this distance will be disjoint; such lines may overlap if some characters overshoot the standard ascent and descent metrics.



leading
int leading(Code)
The standard leading for the font. This is the logical amount of space to be reserved between the descent of one line of text and the ascent of the next line. The height metric is calculated to include this extra space.



maxAdvance
int maxAdvance(Code)
The maximum advance width of any character in this font.



maxAscent
int maxAscent(Code)
The maximum ascent for all characters in this font. No character will extend further above the baseline than this metric.



maxDescent
int maxDescent(Code)
The maximum descent for all characters in this font. No character will descend further below the baseline than this metric.



maxHeight
int maxHeight(Code)
The maximum possible height of a line of text in this font. Adjacent lines of text spaced this distance apart will be guaranteed not to overlap. Note, however, that many paragraphs that contain ordinary alphanumeric text may look too widely spaced if this metric is used to determine line spacing. The height field should be preferred unless the text in a given line contains particularly tall characters.



table
static Hashtable table(Code)



widths
int widths(Code)
The widths of the first 256 characters.




Constructor Detail
X11FontMetrics
public X11FontMetrics(Font font)(Code)
Calculate the metrics from the given WServer and font.




Method Detail
bytesWidth
native public int bytesWidth(byte data, int off, int len)(Code)
Return the width of the specified byte[] in this Font.



charsWidth
public int charsWidth(char chars, int offset, int length)(Code)
Return the width of the specified char[] in this Font.



getAscent
public int getAscent()(Code)
Get ascent.



getDescent
public int getDescent()(Code)
Get descent



getFontMetrics
static synchronized FontMetrics getFontMetrics(Font font)(Code)



getHeight
public int getHeight()(Code)
Get height



getLeading
public int getLeading()(Code)
Get leading



getMaxAdvance
public int getMaxAdvance()(Code)
Get maxAdvance



getMaxAscent
public int getMaxAscent()(Code)
Get maxAscent



getMaxDescent
public int getMaxDescent()(Code)
Get maxDescent



getWidths
public int[] getWidths()(Code)
Get the widths of the first 256 characters in the font.



init
native void init()(Code)



stringWidth
public int stringWidth(String string)(Code)
Return the width of the specified string in this Font.



Fields inherited from java.awt.FontMetrics
protected Font font(Code)(Java Doc)

Methods inherited from java.awt.FontMetrics
public int bytesWidth(byte data, int off, int len)(Code)(Java Doc)
public int charWidth(int codePoint)(Code)(Java Doc)
public int charWidth(char ch)(Code)(Java Doc)
public int charsWidth(char data, int off, int len)(Code)(Java Doc)
public int getAscent()(Code)(Java Doc)
public int getDescent()(Code)(Java Doc)
public Font getFont()(Code)(Java Doc)
public FontRenderContext getFontRenderContext()(Code)(Java Doc)
public int getHeight()(Code)(Java Doc)
public int getLeading()(Code)(Java Doc)
public LineMetrics getLineMetrics(String str, Graphics context)(Code)(Java Doc)
public LineMetrics getLineMetrics(String str, int beginIndex, int limit, Graphics context)(Code)(Java Doc)
public LineMetrics getLineMetrics(char[] chars, int beginIndex, int limit, Graphics context)(Code)(Java Doc)
public LineMetrics getLineMetrics(CharacterIterator ci, int beginIndex, int limit, Graphics context)(Code)(Java Doc)
public int getMaxAdvance()(Code)(Java Doc)
public int getMaxAscent()(Code)(Java Doc)
public Rectangle2D getMaxCharBounds(Graphics context)(Code)(Java Doc)
public int getMaxDecent()(Code)(Java Doc)
public int getMaxDescent()(Code)(Java Doc)
public Rectangle2D getStringBounds(String str, Graphics context)(Code)(Java Doc)
public Rectangle2D getStringBounds(String str, int beginIndex, int limit, Graphics context)(Code)(Java Doc)
public Rectangle2D getStringBounds(char[] chars, int beginIndex, int limit, Graphics context)(Code)(Java Doc)
public Rectangle2D getStringBounds(CharacterIterator ci, int beginIndex, int limit, Graphics context)(Code)(Java Doc)
public int[] getWidths()(Code)(Java Doc)
public boolean hasUniformLineMetrics()(Code)(Java Doc)
public int stringWidth(String str)(Code)(Java Doc)
public String toString()(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.