Java Doc for CommonGlyphVector.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.GlyphVector
      org.apache.harmony.awt.gl.font.CommonGlyphVector

CommonGlyphVector
public class CommonGlyphVector extends GlyphVector (Code)
GlyphVector implementation


Field Summary
 floatascent
    
public  char[]charVector
    
 float[]defaultPositions
    
 floatdescent
    
 Fontfont
    
protected  AffineTransform[]glsTransforms
    
protected  Shape[]gvShapes
    
 floatheight
    
protected  intlayoutFlags
    
 floatleading
    
 float[]logicalPositions
    
 FontPeerImplpeer
    
 AffineTransformtransform
    
public  Glyph[]vector
    
protected  FontRenderContextvectorFRC
    
public  float[]visualPositions
    

Constructor Summary
public  CommonGlyphVector(char[] chars, FontRenderContext frc, Font fnt, int flags)
     Creates new CommonGlyphVector object from the specified parameters.
public  CommonGlyphVector(char[] chars, FontRenderContext frc, Font fnt)
     Creates new CommonGlyphVector object from the specified parameters.
public  CommonGlyphVector(String str, FontRenderContext frc, Font fnt)
     Creates new CommonGlyphVector object from the specified parameters.
public  CommonGlyphVector(String str, FontRenderContext frc, Font fnt, int flags)
     Creates new CommonGlyphVector object from the specified parameters.

Method Summary
public  booleanequals(GlyphVector glyphVector)
     Checks whether given GlyphVector equals to this GlyphVector.
public  chargetChar(int index)
     Returns char with the specified index.
public  FontgetFont()
    
public  FontRenderContextgetFontRenderContext()
     Returns the FontRenderContext parameter of this GlyphVector.
public  chargetGlyphChar(int glyphIndex)
     Returns a character value of the specified glyph.
public  intgetGlyphCharIndex(int glyphIndex)
     Returns character index of the specified glyph.
public  int[]getGlyphCharIndices(int beginGlyphIndex, int numEntries, int[] codeReturn)
     Returns an array of numEntries character indices for the specified glyphs.
public  intgetGlyphCode(int glyphIndex)
     Returns glyph code of the specified glyph.
public  int[]getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)
     Returns an array of glyphcodes for the specified glyphs.
public  GlyphJustificationInfogetGlyphJustificationInfo(int glyphIndex)
     Returns a justification information for the glyph with specified glyph index.
public  ShapegetGlyphLogicalBounds(int glyphIndex)
     Returns the logical bounds of the specified glyph within this CommonGlyphVector.
public  GlyphMetricsgetGlyphMetrics(int glyphIndex)
     Returns the metrics of the specified glyph.
public  ShapegetGlyphOutline(int glyphIndex)
     Returns a Shape that encloses specified glyph.
public  RectanglegetGlyphPixelBounds(int glyphIndex, FontRenderContext frc, float x, float y)
     Returnes the pixel bounds of the specified glyph within GlyphVector rendered at the specified x,y location.
public  Point2DgetGlyphPosition(int glyphIndex)
    
public  float[]getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)
     Returns an array of numEntries glyphs positions from beginGlyphIndex glyph in Glyph Vector.
public  AffineTransformgetGlyphTransform(int glyphIndex)
     Returns the affine transform of the specified glyph.
public  ShapegetGlyphVisualBounds(int glyphIndex)
     Returns the visual bounds of the specified glyph.
public  intgetLayoutFlags()
     Returns flags describing the state of the GlyphVector.
public  Rectangle2DgetLogicalBounds()
    
public  intgetNumGlyphs()
    
public  ShapegetOutline(float x, float y)
     Returns a Shape that is the outline representation of this GlyphVector rendered at the specified x,y coordinates.
public  ShapegetOutline()
     Returns a Shape that is the outline representation of this GlyphVector.
public  RectanglegetPixelBounds(FontRenderContext frc, float x, float y)
     Returnes the pixel bounds of this GlyphVector rendered at the specified x,y location with the given FontRenderContext.
public  Rectangle2DgetVisualBounds()
     Returns the visual bounds of this GlyphVector.
public  voidperformDefaultLayout()
     Assigns default positions to each glyph in this GlyphVector.
 voidsetDefaultPositions()
     Set array of logical positions of the glyphs to default with their default advances and height.
public  voidsetGlyphPosition(int glyphIndex, Point2D newPos)
     Sets new position to the specified glyph.
public  voidsetGlyphPositions(int beginGlyphIndex, int numEntries, float[] setPositions)
     Set numEntries elements of the visualPositions array from beginGlyphIndex of numEntries glyphs positions from beginGlyphIndex glyph in Glyph Vector.
public  voidsetGlyphPositions(float[] setPositions)
     Set elements of the visualPositions array.
public  voidsetGlyphTransform(int glyphIndex, AffineTransform trans)
     Sets new transform to the specified glyph.

Field Detail
ascent
float ascent(Code)



charVector
public char[] charVector(Code)



defaultPositions
float[] defaultPositions(Code)



descent
float descent(Code)



font
Font font(Code)



glsTransforms
protected AffineTransform[] glsTransforms(Code)



gvShapes
protected Shape[] gvShapes(Code)



height
float height(Code)



layoutFlags
protected int layoutFlags(Code)



leading
float leading(Code)



logicalPositions
float[] logicalPositions(Code)



peer
FontPeerImpl peer(Code)



transform
AffineTransform transform(Code)



vector
public Glyph[] vector(Code)



vectorFRC
protected FontRenderContext vectorFRC(Code)



visualPositions
public float[] visualPositions(Code)




Constructor Detail
CommonGlyphVector
public CommonGlyphVector(char[] chars, FontRenderContext frc, Font fnt, int flags)(Code)
Creates new CommonGlyphVector object from the specified parameters.
Parameters:
  chars - an array of chars
Parameters:
  frc - FontRenderContext object
Parameters:
  fnt - Font object
Parameters:
  flags - layout flags



CommonGlyphVector
public CommonGlyphVector(char[] chars, FontRenderContext frc, Font fnt)(Code)
Creates new CommonGlyphVector object from the specified parameters. Layout flags set to default.
Parameters:
  chars - an array of chars
Parameters:
  frc - FontRenderContext object
Parameters:
  fnt - Font object



CommonGlyphVector
public CommonGlyphVector(String str, FontRenderContext frc, Font fnt)(Code)
Creates new CommonGlyphVector object from the specified parameters. Layout flags set to default.
Parameters:
  str - specified string
Parameters:
  frc - FontRenderContext object
Parameters:
  fnt - Font object



CommonGlyphVector
public CommonGlyphVector(String str, FontRenderContext frc, Font fnt, int flags)(Code)
Creates new CommonGlyphVector object from the specified parameters.
Parameters:
  str - specified string
Parameters:
  frc - FontRenderContext object
Parameters:
  fnt - Font object
Parameters:
  flags - layout flags




Method Detail
equals
public boolean equals(GlyphVector glyphVector)(Code)
Checks whether given GlyphVector equals to this GlyphVector.
Parameters:
  glyphVector - GlyphVector object to compare



getChar
public char getChar(int index)(Code)
Returns char with the specified index.
Parameters:
  index - specified index of the char



getFont
public Font getFont()(Code)
Returns the Font parameter of this GlyphVector



getFontRenderContext
public FontRenderContext getFontRenderContext()(Code)
Returns the FontRenderContext parameter of this GlyphVector.



getGlyphChar
public char getGlyphChar(int glyphIndex)(Code)
Returns a character value of the specified glyph.
Parameters:
  glyphIndex - specified index of the glyph



getGlyphCharIndex
public int getGlyphCharIndex(int glyphIndex)(Code)
Returns character index of the specified glyph.
Parameters:
  glyphIndex - specified index of the glyph



getGlyphCharIndices
public int[] getGlyphCharIndices(int beginGlyphIndex, int numEntries, int[] codeReturn)(Code)
Returns an array of numEntries character indices for the specified glyphs.
Parameters:
  beginGlyphIndex - the start index
Parameters:
  numEntries - the number of glyph codes to get
Parameters:
  codeReturn - the array that receives glyph codes' values an array that receives glyph char indices



getGlyphCode
public int getGlyphCode(int glyphIndex)(Code)
Returns glyph code of the specified glyph.
Parameters:
  glyphIndex - specified index of the glyph



getGlyphCodes
public int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)(Code)
Returns an array of glyphcodes for the specified glyphs.
Parameters:
  beginGlyphIndex - the start index
Parameters:
  numEntries - the number of glyph codes to get
Parameters:
  codeReturn - the array that receives glyph codes' values an array that receives glyph codes' values



getGlyphJustificationInfo
public GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex)(Code)
Returns a justification information for the glyph with specified glyph index.
Parameters:
  glyphIndex - index of a glyph which GlyphJustificationInfo is to be received a GlyphJustificationInfo object that contains glyph justification properties of the specified glyph



getGlyphLogicalBounds
public Shape getGlyphLogicalBounds(int glyphIndex)(Code)
Returns the logical bounds of the specified glyph within this CommonGlyphVector.
Parameters:
  glyphIndex - index of the glyph to get it's logical bounds logical bounds of the specified glyph



getGlyphMetrics
public GlyphMetrics getGlyphMetrics(int glyphIndex)(Code)
Returns the metrics of the specified glyph.
Parameters:
  glyphIndex - specified index of the glyph



getGlyphOutline
public Shape getGlyphOutline(int glyphIndex)(Code)
Returns a Shape that encloses specified glyph.
Parameters:
  glyphIndex - specified index of the glyph



getGlyphPixelBounds
public Rectangle getGlyphPixelBounds(int glyphIndex, FontRenderContext frc, float x, float y)(Code)
Returnes the pixel bounds of the specified glyph within GlyphVector rendered at the specified x,y location.
Parameters:
  glyphIndex - index of the glyph
Parameters:
  frc - a FontRenderContext that is used
Parameters:
  x - specified x coordinate value
Parameters:
  y - specified y coordinate value a Rectangle that bounds pixels of the specified glyph



getGlyphPosition
public Point2D getGlyphPosition(int glyphIndex)(Code)
Returns the position of the specified glyph relative to the origin of this GlyphVector a Point2D that the origin of the glyph with specified index



getGlyphPositions
public float[] getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)(Code)
Returns an array of numEntries glyphs positions from beginGlyphIndex glyph in Glyph Vector.
Parameters:
  beginGlyphIndex - the start index
Parameters:
  numEntries - the number of glyph codes to get
Parameters:
  positionReturn - the array that receives glyphs' positions an array of floats that receives glyph char indices



getGlyphTransform
public AffineTransform getGlyphTransform(int glyphIndex)(Code)
Returns the affine transform of the specified glyph.
Parameters:
  glyphIndex - specified index of the glyph an AffineTransform of the glyph with specified index



getGlyphVisualBounds
public Shape getGlyphVisualBounds(int glyphIndex)(Code)
Returns the visual bounds of the specified glyph.
Parameters:
  glyphIndex - specified index of the glyph



getLayoutFlags
public int getLayoutFlags()(Code)
Returns flags describing the state of the GlyphVector.



getLogicalBounds
public Rectangle2D getLogicalBounds()(Code)
Returns the logical bounds of this GlyphVector



getNumGlyphs
public int getNumGlyphs()(Code)
Returns the number of glyphs in this Glyph Vector



getOutline
public Shape getOutline(float x, float y)(Code)
Returns a Shape that is the outline representation of this GlyphVector rendered at the specified x,y coordinates.
Parameters:
  x - specified x coordinate value
Parameters:
  y - specified y coordinate value a Shape object that is the outline of this GlyphVectorat the specified coordinates.



getOutline
public Shape getOutline()(Code)
Returns a Shape that is the outline representation of this GlyphVector. a Shape object that is the outline of this GlyphVector



getPixelBounds
public Rectangle getPixelBounds(FontRenderContext frc, float x, float y)(Code)
Returnes the pixel bounds of this GlyphVector rendered at the specified x,y location with the given FontRenderContext.
Parameters:
  frc - a FontRenderContext that is used
Parameters:
  x - specified x coordinate value
Parameters:
  y - specified y coordinate value a Rectangle that bounds pixels of this GlyphVector



getVisualBounds
public Rectangle2D getVisualBounds()(Code)
Returns the visual bounds of this GlyphVector. The visual bounds is the bounds of the total outline of this GlyphVector. a Rectangle2D that id the visual bounds of this GlyphVector



performDefaultLayout
public void performDefaultLayout()(Code)
Assigns default positions to each glyph in this GlyphVector.



setDefaultPositions
void setDefaultPositions()(Code)
Set array of logical positions of the glyphs to default with their default advances and height.



setGlyphPosition
public void setGlyphPosition(int glyphIndex, Point2D newPos)(Code)
Sets new position to the specified glyph.



setGlyphPositions
public void setGlyphPositions(int beginGlyphIndex, int numEntries, float[] setPositions)(Code)
Set numEntries elements of the visualPositions array from beginGlyphIndex of numEntries glyphs positions from beginGlyphIndex glyph in Glyph Vector.
Parameters:
  beginGlyphIndex - the start index
Parameters:
  numEntries - the number of glyph codes to get
Parameters:
  setPositions - the array of positions to set



setGlyphPositions
public void setGlyphPositions(float[] setPositions)(Code)
Set elements of the visualPositions array.
Parameters:
  setPositions - the array of positions to set



setGlyphTransform
public void setGlyphTransform(int glyphIndex, AffineTransform trans)(Code)
Sets new transform to the specified glyph.
Parameters:
  glyphIndex - specified index of the glyph
Parameters:
  trans - AffineTransform of the glyph with specified index



Fields inherited from java.awt.font.GlyphVector
final public static int FLAG_COMPLEX_GLYPHS(Code)(Java Doc)
final public static int FLAG_HAS_POSITION_ADJUSTMENTS(Code)(Java Doc)
final public static int FLAG_HAS_TRANSFORMS(Code)(Java Doc)
final public static int FLAG_MASK(Code)(Java Doc)
final public static int FLAG_RUN_RTL(Code)(Java Doc)

Methods inherited from java.awt.font.GlyphVector
abstract public boolean equals(GlyphVector set)(Code)(Java Doc)
abstract public Font getFont()(Code)(Java Doc)
abstract public FontRenderContext getFontRenderContext()(Code)(Java Doc)
public int getGlyphCharIndex(int glyphIndex)(Code)(Java Doc)
public int[] getGlyphCharIndices(int beginGlyphIndex, int numEntries, int[] codeReturn)(Code)(Java Doc)
abstract public int getGlyphCode(int glyphIndex)(Code)(Java Doc)
abstract public int[] getGlyphCodes(int beginGlyphIndex, int numEntries, int[] codeReturn)(Code)(Java Doc)
abstract public GlyphJustificationInfo getGlyphJustificationInfo(int glyphIndex)(Code)(Java Doc)
abstract public Shape getGlyphLogicalBounds(int glyphIndex)(Code)(Java Doc)
abstract public GlyphMetrics getGlyphMetrics(int glyphIndex)(Code)(Java Doc)
abstract public Shape getGlyphOutline(int glyphIndex)(Code)(Java Doc)
public Shape getGlyphOutline(int glyphIndex, float x, float y)(Code)(Java Doc)
public Rectangle getGlyphPixelBounds(int index, FontRenderContext renderFRC, float x, float y)(Code)(Java Doc)
abstract public Point2D getGlyphPosition(int glyphIndex)(Code)(Java Doc)
abstract public float[] getGlyphPositions(int beginGlyphIndex, int numEntries, float[] positionReturn)(Code)(Java Doc)
abstract public AffineTransform getGlyphTransform(int glyphIndex)(Code)(Java Doc)
abstract public Shape getGlyphVisualBounds(int glyphIndex)(Code)(Java Doc)
public int getLayoutFlags()(Code)(Java Doc)
abstract public Rectangle2D getLogicalBounds()(Code)(Java Doc)
abstract public int getNumGlyphs()(Code)(Java Doc)
abstract public Shape getOutline()(Code)(Java Doc)
abstract public Shape getOutline(float x, float y)(Code)(Java Doc)
public Rectangle getPixelBounds(FontRenderContext renderFRC, float x, float y)(Code)(Java Doc)
abstract public Rectangle2D getVisualBounds()(Code)(Java Doc)
abstract public void performDefaultLayout()(Code)(Java Doc)
abstract public void setGlyphPosition(int glyphIndex, Point2D newPos)(Code)(Java Doc)
abstract public void setGlyphTransform(int glyphIndex, AffineTransform newTX)(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.