Java Doc for Type1CFont.java in  » PDF » PDF-Renderer » com » sun » pdfview » 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 » PDF » PDF Renderer » com.sun.pdfview.font 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.pdfview.font.PDFFont
      com.sun.pdfview.font.OutlineFont
         com.sun.pdfview.font.Type1CFont

Type1CFont
public class Type1CFont extends OutlineFont (Code)
A representation, with parser, of an Adobe Type 1C font.
author:
   Mike Wessler

Inner Class :class Range

Field Summary
static  intCMD
    
static  intFLT
    
static  intNUM
    
 AffineTransformat
    
 intcharsetbase
    
 intcharstringbase
    
 intcharstringtype
    
 Stringchr2name
    
 byte[]data
    
 intencoding
    
 intencodingbase
    
 floatfnum
    
 Stringfontname
    
 intglyphnames
    
 intgsubrbase
    
 intgsubrsoffset
    
 intlsubrbase
    
 intlsubrsoffset
    
 Stringnames
    
 intnglyphs
    
 intnum
    
 intpos
    
 intprivatebase
    
 intprivatesize
    
 float[]stack
    
 intstackptr
    
 byte[]subrs
    
 floattemps
    
 inttype
    

Constructor Summary
public  Type1CFont(String baseFont, PDFObject src, PDFFontDescriptor descriptor)
    

Method Summary
public  intcalcoffset(int base)
    
 RangegetIndexEntry(int index, int id)
     Get the range of a particular index in a dictionary.
public  intgetIndexSize(int loc)
     get the size of the dictionary located within the stream at some offset.
protected  GeneralPathgetOutline(String name, float width)
    
protected  GeneralPathgetOutline(char src, float width)
    
public  StringgetSID(int id)
     get the name associated with an ID.
 voidparseGlyph(Range r, GeneralPath gp, FlPoint pt)
    
public  voidreadFNum()
     read the next funky floating point number from the input stream.

Field Detail
CMD
static int CMD(Code)



FLT
static int FLT(Code)



NUM
static int NUM(Code)



at
AffineTransform at(Code)



charsetbase
int charsetbase(Code)



charstringbase
int charstringbase(Code)



charstringtype
int charstringtype(Code)



chr2name
String chr2name(Code)



data
byte[] data(Code)



encoding
int encoding(Code)



encodingbase
int encodingbase(Code)



fnum
float fnum(Code)



fontname
String fontname(Code)



glyphnames
int glyphnames(Code)



gsubrbase
int gsubrbase(Code)



gsubrsoffset
int gsubrsoffset(Code)



lsubrbase
int lsubrbase(Code)



lsubrsoffset
int lsubrsoffset(Code)



names
String names(Code)



nglyphs
int nglyphs(Code)



num
int num(Code)



pos
int pos(Code)



privatebase
int privatebase(Code)



privatesize
int privatesize(Code)



stack
float[] stack(Code)



stackptr
int stackptr(Code)



subrs
byte[] subrs(Code)



temps
float temps(Code)



type
int type(Code)




Constructor Detail
Type1CFont
public Type1CFont(String baseFont, PDFObject src, PDFFontDescriptor descriptor) throws IOException(Code)
create a new Type1CFont based on a font data stream and a descriptor
Parameters:
  baseFont - the postscript name of this font
Parameters:
  src - a stream containing the font
Parameters:
  descriptor - the descriptor for this font




Method Detail
calcoffset
public int calcoffset(int base)(Code)
calculate an offset code for a dictionary
Parameters:
  base - the index of the start of the dictionary



getIndexEntry
Range getIndexEntry(int index, int id)(Code)
Get the range of a particular index in a dictionary.
Parameters:
  index - the start of the dictionary.
Parameters:
  id - the index of the entry in the dictionary a range describing the offsets of the start and end ofthe entry from the start of the file, not the dictionary



getIndexSize
public int getIndexSize(int loc)(Code)
get the size of the dictionary located within the stream at some offset.
Parameters:
  loc - the index of the start of the dictionary the size of the dictionary, in bytes.



getOutline
protected GeneralPath getOutline(String name, float width)(Code)
Get a glyph outline by name
Parameters:
  name - the name of the desired glyph the glyph outline, or null if unavailable



getOutline
protected GeneralPath getOutline(char src, float width)(Code)
Get a glyph outline by character code Note this method must always return an outline
Parameters:
  src - the character code of the desired glyph the glyph outline



getSID
public String getSID(int id)(Code)
get the name associated with an ID.
Parameters:
  id - the index of the name the name from the FontSupport.stdNames table augmentedby the local name table



parseGlyph
void parseGlyph(Range r, GeneralPath gp, FlPoint pt)(Code)
parse a glyph defined in a particular range
Parameters:
  r - the range of the glyph definition
Parameters:
  gp - a GeneralPath in which to store the glyph outline
Parameters:
  pt - a FlPoint representing the end of the current path



readFNum
public void readFNum()(Code)
read the next funky floating point number from the input stream. value gets put into the fnum field.



Methods inherited from com.sun.pdfview.font.OutlineFont
public int getCharCount()(Code)(Java Doc)
public int getDefaultWidth()(Code)(Java Doc)
public int getFirstChar()(Code)(Java Doc)
protected PDFGlyph getGlyph(char src, String name)(Code)(Java Doc)
public int getLastChar()(Code)(Java Doc)
abstract protected GeneralPath getOutline(String name, float width)(Code)(Java Doc)
abstract protected GeneralPath getOutline(char src, float width)(Code)(Java Doc)
public float getWidth(char code, String name)(Code)(Java Doc)

Methods inherited from com.sun.pdfview.font.PDFFont
public boolean equals(Object o)(Code)(Java Doc)
public String getBaseFont()(Code)(Java Doc)
public PDFGlyph getCachedGlyph(char src, String name)(Code)(Java Doc)
public PDFFontDescriptor getDescriptor()(Code)(Java Doc)
public PDFFontEncoding getEncoding()(Code)(Java Doc)
public static synchronized PDFFont getFont(PDFObject obj, HashMap resources) throws IOException(Code)(Java Doc)
abstract protected PDFGlyph getGlyph(char src, String name)(Code)(Java Doc)
public List getGlyphs(String text)(Code)(Java Doc)
public String getSubtype()(Code)(Java Doc)
public PDFCMap getUnicodeMap()(Code)(Java Doc)
public int hashCode()(Code)(Java Doc)
public void setBaseFont(String baseFont)(Code)(Java Doc)
public void setDescriptor(PDFFontDescriptor descriptor)(Code)(Java Doc)
public void setEncoding(PDFFontEncoding encoding)(Code)(Java Doc)
public void setSubtype(String subtype)(Code)(Java Doc)
public void setUnicodeMap(PDFCMap unicodeMap)(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.