Java Doc for GlyphLayout.java in  » 6.0-JDK-Modules » j2me » com » sun » perseus » model » 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 Modules » j2me » com.sun.perseus.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.perseus.model.GlyphLayout

GlyphLayout
class GlyphLayout (Code)
GlyphLayout is used to represent successing text 'chunks' in a Text layout of glyphs. The notion of 'chunk' is that of the SVG specification.
version:
   $Id: GlyphLayout.java,v 1.4 2006/06/29 10:47:31 ln156897 Exp $


Field Summary
protected  floatadvance
    
protected  GlyphProxyfirstChild
    
protected  float[]helperDashArray
     Used to scale dash array values.
protected  GlyphProxylastChild
    
protected  GlyphLayoutnextSibling
    
protected  DocumentNodeownerDocument
     Owner Document, to get cache objects.
protected  GlyphLayoutprevSibling
     Previous sibling.
protected  floatx
    
protected  floaty
    

Constructor Summary
 GlyphLayout(DocumentNode doc)
    

Method Summary
public  voidadd(GlyphProxy proxy)
    
 BoxaddBBox(Box bbox, Transform t)
    
Parameters:
  bbox - the bounding box to which this node's bounding box should beappended.
final protected  TileaddRenderingTile(Tile tile, TextRenderingProperties trp, Transform t)
     Add this GlyphLayout rendering tile to the input Tile.
Parameters:
  tile - the Tile instance whose bounds should be expanded.
protected  voidapplyInverseTransform(TextRenderingProperties trp, Transform tx)
     Applies the inverse of the chunk's position adjustment due to the text anchor's value.
protected  voidapplyTransform(TextRenderingProperties trp, Transform tx)
     Applies the chunk's position adjustment due to the text anchor's value.
Parameters:
  trp - the TextRenderingProperties on which the font-size property is defined.
Parameters:
  tx - the Transform to apply additional node transforms to.
 voiddrawText(RenderGraphics rg, Transform tx)
     Draws text.
 voidfillText(RenderGraphics rg, Transform tx)
     Fills text.
protected  booleanisHitVP(float[] pt, TextRenderingProperties trp, Transform chunkTxf)
     Returns true if this node is hit by the input point.
public  StringtoString()
    

Field Detail
advance
protected float advance(Code)
The overally layout's advance



firstChild
protected GlyphProxy firstChild(Code)
The first child



helperDashArray
protected float[] helperDashArray(Code)
Used to scale dash array values.



lastChild
protected GlyphProxy lastChild(Code)
The last child



nextSibling
protected GlyphLayout nextSibling(Code)
Next sibling



ownerDocument
protected DocumentNode ownerDocument(Code)
Owner Document, to get cache objects.



prevSibling
protected GlyphLayout prevSibling(Code)
Previous sibling.



x
protected float x(Code)
The chunk's x-axis position



y
protected float y(Code)
The chunk's y-axis position




Constructor Detail
GlyphLayout
GlyphLayout(DocumentNode doc)(Code)

Parameters:
  doc - the DocumentNode scope.




Method Detail
add
public void add(GlyphProxy proxy)(Code)
Appends an element at the end of the list
Parameters:
  proxy - the proxy to add to this GlyphLayout
throws:
  NullPointerException - if the input argument is null.



addBBox
Box addBBox(Box bbox, Transform t)(Code)

Parameters:
  bbox - the bounding box to which this node's bounding box should beappended. That bounding box is in the target coordinate space. It may be null, in which case this node should create a new one.
Parameters:
  t - the transform from the node coordinate system to the coordinatesystem into which the bounds should be computed. the bounding box of this node, in the target coordinate space,



addRenderingTile
final protected Tile addRenderingTile(Tile tile, TextRenderingProperties trp, Transform t)(Code)
Add this GlyphLayout rendering tile to the input Tile.
Parameters:
  tile - the Tile instance whose bounds should be expanded. May benull.
Parameters:
  trp - the TextRenderingProperties describing the nodes rendering characteristics.
Parameters:
  t - the Transform to the requested tile space, from this node's userspace. the expanded tile.



applyInverseTransform
protected void applyInverseTransform(TextRenderingProperties trp, Transform tx)(Code)
Applies the inverse of the chunk's position adjustment due to the text anchor's value.
Parameters:
  trp - the TextRenderingProperties on which the font-size property is defined.
Parameters:
  tx - the Transform to apply the inverse transformto.



applyTransform
protected void applyTransform(TextRenderingProperties trp, Transform tx)(Code)
Applies the chunk's position adjustment due to the text anchor's value.
Parameters:
  trp - the TextRenderingProperties on which the font-size property is defined.
Parameters:
  tx - the Transform to apply additional node transforms to. This is guaranteed to no be null.



drawText
void drawText(RenderGraphics rg, Transform tx)(Code)
Draws text.
Parameters:
  rg - the RenderGraphics where the node should paintitself.
Parameters:
  tx - the rendering transform.



fillText
void fillText(RenderGraphics rg, Transform tx)(Code)
Fills text.
Parameters:
  rg - the RenderGraphics where the node should paintitself.
Parameters:
  tx - the rendering transform.



isHitVP
protected boolean isHitVP(float[] pt, TextRenderingProperties trp, Transform chunkTxf)(Code)
Returns true if this node is hit by the input point. The input point is in viewport space. By default, a node is not hit, not matter what the input coordinate is.
Parameters:
  pt - the x/y coordinate. Should never be null and be of size two. Ifnot, the behavior is unspecified. The x/y coordinate is in the node'suser space.
Parameters:
  trp - the TextRenderingProperties containing the propertiesapplicable to the hit detection operation. This is used because the samenode may be referenced multiple times by different proxies. true if the node is hit by the input point.
See Also:   GlyphLayout.nodeHitAt



toString
public String toString()(Code)
the string description of this layout.



Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.