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

TextRunSegment
abstract public class TextRunSegment implements Cloneable(Code)
Abstract class which represents the segment of the text with constant attributes running in one direction (i.e. constant level).


Field Summary
 TextDecorator.Decorationdecoration
    
 Rectangle2DlogicalBounds
    
 BasicMetricsmetrics
    
 Rectangle2DvisualBounds
    
 floatx
    
 floaty
    


Method Summary
abstract  booleancharHasZeroAdvance(int index)
    
abstract public  Objectclone()
    
abstract  floatdoJustification(TextRunBreaker.JustificationInfo jInfos)
     Performs justification of the segment.
abstract  voiddraw(Graphics2D g2d, float xOffset, float yOffset)
    
abstract  floatgetAdvance()
    
abstract  floatgetAdvanceDelta(int start, int end)
    
abstract  floatgetCharAdvance(int index)
    
abstract  intgetCharIndexFromAdvance(float advance, int start)
     Calculates index of the character which advance is equal to the given.
abstract  floatgetCharPosition(int index)
    
abstract  ShapegetCharsBlackBoxBounds(int start, int limit)
    
abstract  intgetEnd()
    
abstract  intgetLength()
    
abstract  Rectangle2DgetLogicalBounds()
    
abstract  ShapegetOutline()
    
abstract  intgetStart()
    
abstract  Rectangle2DgetVisualBounds()
    
abstract  TextHitInfohitTest(float x, float y)
    
abstract  voidupdateJustificationInfo(TextRunBreaker.JustificationInfo jInfo)
    

Field Detail
decoration
TextDecorator.Decoration decoration(Code)



logicalBounds
Rectangle2D logicalBounds(Code)



metrics
BasicMetrics metrics(Code)



visualBounds
Rectangle2D visualBounds(Code)



x
float x(Code)



y
float y(Code)





Method Detail
charHasZeroAdvance
abstract boolean charHasZeroAdvance(int index)(Code)
Checks if the character doesn't contribute to the text advance
Parameters:
  index - - character index true if the character has zero advance



clone
abstract public Object clone()(Code)



doJustification
abstract float doJustification(TextRunBreaker.JustificationInfo jInfos)(Code)
Performs justification of the segment. Updates positions of individual characters.
Parameters:
  jInfos - - justification information, gathered by the previous passes amount of growth or shrink of the segment



draw
abstract void draw(Graphics2D g2d, float xOffset, float yOffset)(Code)
Renders this text run segment
Parameters:
  g2d - - graphics to render to
Parameters:
  xOffset - - X offset from the graphics origin to theorigin of the text layout
Parameters:
  yOffset - - Y offset from the graphics origin to theorigin of the text layout



getAdvance
abstract float getAdvance()(Code)
Calculates advance of the segment advance



getAdvanceDelta
abstract float getAdvanceDelta(int start, int end)(Code)
Calculates advance delta between two characters
Parameters:
  start - - 1st position
Parameters:
  end - - 2nd position advance increment between specified positions



getCharAdvance
abstract float getCharAdvance(int index)(Code)
Returns the advance of the individual character
Parameters:
  index - - character index character advance



getCharIndexFromAdvance
abstract int getCharIndexFromAdvance(float advance, int start)(Code)
Calculates index of the character which advance is equal to the given. If the given advance is greater then the segment advance it returns the position after the last character.
Parameters:
  advance - - given advance
Parameters:
  start - - character, from which to start measuring advance character index



getCharPosition
abstract float getCharPosition(int index)(Code)
Calculates position of the character on the screen
Parameters:
  index - - character index X coordinate of the character position



getCharsBlackBoxBounds
abstract Shape getCharsBlackBoxBounds(int start, int limit)(Code)
Creates black box bounds shape for the specified range
Parameters:
  start - - range sart
Parameters:
  limit - - range end black box bounds shape



getEnd
abstract int getEnd()(Code)
Returns end index of the segment end index



getLength
abstract int getLength()(Code)
Returns the number of characters in the segment number of characters



getLogicalBounds
abstract Rectangle2D getLogicalBounds()(Code)
Returns logical bounds of this segment logical bounds



getOutline
abstract Shape getOutline()(Code)
Returns the outline shape outline



getStart
abstract int getStart()(Code)
Returns start index of the segment start index



getVisualBounds
abstract Rectangle2D getVisualBounds()(Code)
Returns visual bounds of this segment visual bounds



hitTest
abstract TextHitInfo hitTest(float x, float y)(Code)
Creates text hit info from the hit position
Parameters:
  x - - X coordinate relative to the origin of the layout
Parameters:
  y - - Y coordinate relative to the origin of the layout hit info



updateJustificationInfo
abstract void updateJustificationInfo(TextRunBreaker.JustificationInfo jInfo)(Code)
Collects justification information into JustificationInfo object
Parameters:
  jInfo - - JustificationInfo object



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.