Java Doc for FontDef.java in  » Ajax » Laszlo-4.0.10 » org » openlaszlo » iv » flash » api » text » 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 » Ajax » Laszlo 4.0.10 » org.openlaszlo.iv.flash.api.text 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.openlaszlo.iv.flash.api.FlashItem
      org.openlaszlo.iv.flash.api.FlashObject
         org.openlaszlo.iv.flash.api.FlashDef
            org.openlaszlo.iv.flash.api.text.FontDef

FontDef
final public class FontDef extends FlashDef (Code)
Instance of Font in particular flash file.

There may be several instances of one font in one file.
author:
   Dmitry Skavish




Constructor Summary
public  FontDef()
    
public  FontDef(Font font, int id)
    

Method Summary
public  voidaddTextBlock(TextBlock tblock)
    
public  voidaddTextBlocks(IVVector tblocks)
    
public static  voidchangeRecordsFont(IVVector records, Font old_font, Font new_font)
    
protected  FlashItemcopyInto(FlashItem item, ScriptCopier copier)
    
public  FlashItemgetCopy(ScriptCopier copier)
    
public  FontgetFont()
    
public  StringgetFontName()
    
public  intgetTag()
    
public  IVVectorgetTextBlocks()
    
public  booleanisConstant()
    
public  booleanisWriteAllChars()
    
public  booleanisWriteLayout()
    
public static  Fontload(String fontFileName, FlashFile file)
    
public static  Fontload(String fontFileName)
    
public static  FontmergeFonts(Font f1, Font f2)
    
public static  FontDefparse(Parser p)
     Parses DefineFont tag.
public static  FontDefparse2(Parser p)
    
public static  FontDefparseExternalFontTag(Parser p)
    
public static  voidparseFontInfoTag(Parser p, boolean MX)
    
public static  voidparseFontInfoTag(Parser p)
    
public static  voidparseFontInfoTag2(Parser p)
    
public  voidprintContent(PrintStream out, String indent)
    
public  voidsetFont(Font font)
    
public  voidsetWriteAllChars(boolean v)
     Specifies whether to write all font's character or only used (in text blocks) ones.
public  voidsetWriteLayout(boolean v)
    
public  voidwrite(FlashOutput fob)
    


Constructor Detail
FontDef
public FontDef()(Code)
Creates empty font definition



FontDef
public FontDef(Font font, int id)(Code)
Creates font definition of specified font and ID
Parameters:
  font - specified font
Parameters:
  id - ID of font definition to be created




Method Detail
addTextBlock
public void addTextBlock(TextBlock tblock)(Code)
Adds specified text block to this fontdef
Parameters:
  tblock - specified text block



addTextBlocks
public void addTextBlocks(IVVector tblocks)(Code)
Adds vector of text blocks to this fontdef
Parameters:
  tblocks - vector of text blocks



changeRecordsFont
public static void changeRecordsFont(IVVector records, Font old_font, Font new_font)(Code)
Change font in all specified records to new one
Parameters:
  records - vector containing TextRecord and TextStyleChangeRecord
Parameters:
  new_font - new font



copyInto
protected FlashItem copyInto(FlashItem item, ScriptCopier copier)(Code)



getCopy
public FlashItem getCopy(ScriptCopier copier)(Code)



getFont
public Font getFont()(Code)
Returns font font



getFontName
public String getFontName()(Code)
Returns font name font name



getTag
public int getTag()(Code)



getTextBlocks
public IVVector getTextBlocks()(Code)
Returns all text blocks added to this fontdef all text blocks added to this fontdef



isConstant
public boolean isConstant()(Code)



isWriteAllChars
public boolean isWriteAllChars()(Code)
Returns true if all font's character are going to be generated true if all font's character are going to be generated



isWriteLayout
public boolean isWriteLayout()(Code)
Returns true if layout information is going to generated true if layout information is going to generated



load
public static Font load(String fontFileName, FlashFile file)(Code)
Loads external font to the specified file



load
public static Font load(String fontFileName)(Code)
Loads font from file (FFT)
Parameters:
  fontFileName - font file name loaded font



mergeFonts
public static Font mergeFonts(Font f1, Font f2)(Code)
Merge two fonts
Parameters:
  f1 - font to merge
Parameters:
  f2 - font to merge new merged font



parse
public static FontDef parse(Parser p)(Code)
Parses DefineFont tag.

We expect that after DefineFont tag, DefineFontInfo tag will follow which will define codetable for this font.
This is not always true of course, but in majority of cases it is.
Parameters:
  p - parser font def




parse2
public static FontDef parse2(Parser p)(Code)
Parse DefineFont2 tag



parseExternalFontTag
public static FontDef parseExternalFontTag(Parser p)(Code)
Parses External font tag



parseFontInfoTag
public static void parseFontInfoTag(Parser p, boolean MX)(Code)
Parse DefineFontInfo tag



parseFontInfoTag
public static void parseFontInfoTag(Parser p)(Code)
Parse DefineFontInfo tag



parseFontInfoTag2
public static void parseFontInfoTag2(Parser p)(Code)
Parse DefineFontInfo2 tag



printContent
public void printContent(PrintStream out, String indent)(Code)



setFont
public void setFont(Font font)(Code)



setWriteAllChars
public void setWriteAllChars(boolean v)(Code)
Specifies whether to write all font's character or only used (in text blocks) ones.
Parameters:
  v - true - write all characters



setWriteLayout
public void setWriteLayout(boolean v)(Code)
Specifies whether to write layout information when generating this font or not
Parameters:
  v - true - write layout



write
public void write(FlashOutput fob)(Code)
Builds and generates this font into buffer
Parameters:
  fob - flash buffer



Methods inherited from org.openlaszlo.iv.flash.api.FlashDef
protected FlashItem copyInto(FlashItem item, ScriptCopier copier)(Code)(Java Doc)
public int getID()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public void setID(int id)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)

Methods inherited from org.openlaszlo.iv.flash.api.FlashObject
protected boolean _isConstant()(Code)(Java Doc)
public void apply(Context context)(Code)(Java Doc)
public void collectDeps(DepsCollector dc)(Code)(Java Doc)
public void collectFonts(FontsCollector fc)(Code)(Java Doc)
protected FlashItem copyInto(FlashItem item, ScriptCopier copier)(Code)(Java Doc)
public void generate(FlashOutput fob, DepsCollector dc)(Code)(Java Doc)
public Rectangle2D getBounds()(Code)(Java Doc)
abstract public int getTag()(Code)(Java Doc)
public boolean isConstant()(Code)(Java Doc)
public boolean isProcessed()(Code)(Java Doc)
public void printContent(PrintStream out, String indent)(Code)(Java Doc)
public void process(FlashFile file, Context context) throws IVException(Code)(Java Doc)
protected void setConstant(boolean is_const)(Code)(Java Doc)
public void setProcessed()(Code)(Java Doc)

Methods inherited from org.openlaszlo.iv.flash.api.FlashItem
protected FlashItem copyInto(FlashItem item, ScriptCopier copier)(Code)(Java Doc)
public FlashItem getCopy(ScriptCopier copier)(Code)(Java Doc)
abstract public void printContent(PrintStream out, String indent)(Code)(Java Doc)
public String toString()(Code)(Java Doc)
abstract public void write(FlashOutput fob)(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.