Java Doc for LineMetricsImpl.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
   java.awt.font.LineMetrics
      org.apache.harmony.awt.gl.font.LineMetricsImpl

All known Subclasses:   org.apache.harmony.awt.gl.font.LinuxLineMetrics,
LineMetricsImpl
public class LineMetricsImpl extends LineMetrics implements Cloneable(Code)
LineMetrics implementation class.


Field Summary
 floatascent
    
 intbaseLineIndex
    
 float[]baselineOffsets
    
 floatdescent
    
 floatheight
    
 intlAscent
    
 intlDescent
    
 intlHeight
    
 intlLeading
    
 intlMaxCharWidth
    
 intlStrikethroughOffset
    
 intlStrikethroughThickness
    
 intlUnderlineOffset
    
 intlUnderlineThickness
    
 floatleading
    
 floatmaxCharWidth
    
 intnumChars
    
 floatstrikethroughOffset
    
 floatstrikethroughThickness
    
 floatunderlineOffset
    
 floatunderlineThickness
    
 intunits_per_EM
    

Constructor Summary
public  LineMetricsImpl(int len, float[] metrics, float[] _baselineData)
     Creates LineMetricsImpl object from specified parameters.
public  LineMetricsImpl(int _numChars, int _baseLineIndex, float[] _baselineOffsets, float _underlineThickness, float _underlineOffset, float _strikethroughThickness, float _strikethroughOffset, float _leading, float _height, float _ascent, float _descent, float _maxCharWidth)
     Creates LineMetricsImpl object from specified parameters.
public  LineMetricsImpl()
    

Method Summary
public  Objectclone()
    
public  floatgetAscent()
     Returns the ascent.
public  intgetBaselineIndex()
     Returns index of the baseline, one of predefined constants.
public  float[]getBaselineOffsets()
     Returns offset of the baseline.
public  floatgetDescent()
     Returns the descent.
public  floatgetHeight()
     Returns the height of the font.
public  floatgetLeading()
     Returns the leading.
public  intgetLogicalAscent()
     Returns the logical ascent.
public  intgetLogicalDescent()
     Returns the logical descent.
public  intgetLogicalHeight()
     Returns the logical height of the font.
public  intgetLogicalLeading()
     Returns the logical leading.
public  intgetLogicalMaxCharWidth()
     Returns the logical size of the widest char.
public  intgetLogicalStrikethroughOffset()
     Returns logical offset of the Strikethrough line.
public  intgetLogicalStrikethroughThickness()
     Returns logical thickness of the Strikethrough line.
public  intgetLogicalUnderlineOffset()
     Returns logical offset of the Underline.
public  intgetLogicalUnderlineThickness()
     Returns logical thickness of the Underline.
public  floatgetMaxCharWidth()
     Returns the size of the widest char.
public  intgetNumChars()
    
public  floatgetStrikethroughOffset()
     Returns offset of the Strikethrough line.
public  floatgetStrikethroughThickness()
     Returns thickness of the Strikethrough line.
public  floatgetUnderlineOffset()
     Returns offset of the Underline.
public  floatgetUnderlineThickness()
     Returns thickness of the Underline.
public  voidscale(float scaleX, float scaleY)
     All metrics are scaled according to scaleX and scaleY values.
public  voidsetNumChars(int num)
     Set num chars to the desired value.

Field Detail
ascent
float ascent(Code)



baseLineIndex
int baseLineIndex(Code)



baselineOffsets
float[] baselineOffsets(Code)



descent
float descent(Code)



height
float height(Code)



lAscent
int lAscent(Code)



lDescent
int lDescent(Code)



lHeight
int lHeight(Code)



lLeading
int lLeading(Code)



lMaxCharWidth
int lMaxCharWidth(Code)



lStrikethroughOffset
int lStrikethroughOffset(Code)



lStrikethroughThickness
int lStrikethroughThickness(Code)



lUnderlineOffset
int lUnderlineOffset(Code)



lUnderlineThickness
int lUnderlineThickness(Code)



leading
float leading(Code)



maxCharWidth
float maxCharWidth(Code)



numChars
int numChars(Code)



strikethroughOffset
float strikethroughOffset(Code)



strikethroughThickness
float strikethroughThickness(Code)



underlineOffset
float underlineOffset(Code)



underlineThickness
float underlineThickness(Code)



units_per_EM
int units_per_EM(Code)




Constructor Detail
LineMetricsImpl
public LineMetricsImpl(int len, float[] metrics, float[] _baselineData)(Code)
Creates LineMetricsImpl object from specified parameters. If baseline data parameter is null than {0, (-ascent+descent)/2, -ascent} values are used for baseline offsets.
Parameters:
  len - a number of characters
Parameters:
  metrics - an array of 16 elements with metrics values that can be initialized in native code.

metrics[0] - ascent

metrics[1] - descent

metrics[2] - external leading

metrics[3] - underline thickness

-metrics[4] - underline offset

metrics[5] - strikethrough thickness

-metrics[6] - strikethrough offset

metrics[7] - maximum char width

metrics[8] - ascent in pixels

metrics[9] - descent in pixles

metrics[10] - external leading in pixels

metrics[11] - underline thickness in pixels

-metrics[12] - underline offset in pixels

metrics[13] - strikethrough thickness in pixels

-metrics[14] - strikethrough offset in pixels

metrics[15] - maximum char width in pixels


Parameters:
  _baselineData - an array of 3 elements with baseline offsets metrics

_baselineData[0] - roman baseline offset

_baselineData[1] - center baseline offset

_baselineData[2] - hanging baseline offset




LineMetricsImpl
public LineMetricsImpl(int _numChars, int _baseLineIndex, float[] _baselineOffsets, float _underlineThickness, float _underlineOffset, float _strikethroughThickness, float _strikethroughOffset, float _leading, float _height, float _ascent, float _descent, float _maxCharWidth)(Code)
Creates LineMetricsImpl object from specified parameters. If baseline data parameter is null than {0, (-ascent+descent)/2, -ascent} values are used for baseline offsets.
Parameters:
  _numChars - number of chars
Parameters:
  _baseLineIndex - index of the baseline offset
Parameters:
  _baselineOffsets - an array of baseline offsets
Parameters:
  _underlineThickness - underline thickness
Parameters:
  _underlineOffset - underline offset
Parameters:
  _strikethroughThickness - strikethrough thickness
Parameters:
  _strikethroughOffset - strinkethrough offset
Parameters:
  _leading - leading of the font
Parameters:
  _height - font height
Parameters:
  _ascent - ascent of the font
Parameters:
  _descent - descent of the font
Parameters:
  _maxCharWidth - max char width



LineMetricsImpl
public LineMetricsImpl()(Code)




Method Detail
clone
public Object clone()(Code)



getAscent
public float getAscent()(Code)
Returns the ascent.



getBaselineIndex
public int getBaselineIndex()(Code)
Returns index of the baseline, one of predefined constants.



getBaselineOffsets
public float[] getBaselineOffsets()(Code)
Returns offset of the baseline.



getDescent
public float getDescent()(Code)
Returns the descent.



getHeight
public float getHeight()(Code)
Returns the height of the font.



getLeading
public float getLeading()(Code)
Returns the leading.



getLogicalAscent
public int getLogicalAscent()(Code)
Returns the logical ascent.



getLogicalDescent
public int getLogicalDescent()(Code)
Returns the logical descent.



getLogicalHeight
public int getLogicalHeight()(Code)
Returns the logical height of the font.



getLogicalLeading
public int getLogicalLeading()(Code)
Returns the logical leading.



getLogicalMaxCharWidth
public int getLogicalMaxCharWidth()(Code)
Returns the logical size of the widest char.



getLogicalStrikethroughOffset
public int getLogicalStrikethroughOffset()(Code)
Returns logical offset of the Strikethrough line.



getLogicalStrikethroughThickness
public int getLogicalStrikethroughThickness()(Code)
Returns logical thickness of the Strikethrough line.



getLogicalUnderlineOffset
public int getLogicalUnderlineOffset()(Code)
Returns logical offset of the Underline.



getLogicalUnderlineThickness
public int getLogicalUnderlineThickness()(Code)
Returns logical thickness of the Underline.



getMaxCharWidth
public float getMaxCharWidth()(Code)
Returns the size of the widest char.



getNumChars
public int getNumChars()(Code)
Returns a number of chars in specified text



getStrikethroughOffset
public float getStrikethroughOffset()(Code)
Returns offset of the Strikethrough line.



getStrikethroughThickness
public float getStrikethroughThickness()(Code)
Returns thickness of the Strikethrough line.



getUnderlineOffset
public float getUnderlineOffset()(Code)
Returns offset of the Underline.



getUnderlineThickness
public float getUnderlineThickness()(Code)
Returns thickness of the Underline.



scale
public void scale(float scaleX, float scaleY)(Code)
All metrics are scaled according to scaleX and scaleY values. This function helps to recompute metrics according to the scale factors of desired AffineTransform.
Parameters:
  scaleX - scale X factor
Parameters:
  scaleY - scale Y factor



setNumChars
public void setNumChars(int num)(Code)
Set num chars to the desired value.
Parameters:
  num - specified number of chars



Methods inherited from java.awt.font.LineMetrics
abstract public float getAscent()(Code)(Java Doc)
abstract public int getBaselineIndex()(Code)(Java Doc)
abstract public float[] getBaselineOffsets()(Code)(Java Doc)
abstract public float getDescent()(Code)(Java Doc)
abstract public float getHeight()(Code)(Java Doc)
abstract public float getLeading()(Code)(Java Doc)
abstract public int getNumChars()(Code)(Java Doc)
abstract public float getStrikethroughOffset()(Code)(Java Doc)
abstract public float getStrikethroughThickness()(Code)(Java Doc)
abstract public float getUnderlineOffset()(Code)(Java Doc)
abstract public float getUnderlineThickness()(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.