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

Text
final public class Text extends FlashDef implements TextBlock(Code)
This class represent MM Generator undocumented text tag.

It contains vector of TextItem s.
author:
   Dmitry Skavish



Field Summary
final public static  intJG_STYLE
    
final public static  intMM_STYLE
    
final public static  intPROPERTY_CONTROLLED
    

Constructor Summary
public  Text()
    
public  Text(boolean withAlpha)
    

Method Summary
public  TextItemaddTextItem(TextItem item)
    
public  voidapply(Context context)
    
public  voidchangeFont(Font old_font, Font new_font)
     Updates records' font.
public  voidcollectDeps(DepsCollector dc)
    
public  voidcollectFonts(FontsCollector fc)
    
protected  FlashItemcopyInto(FlashItem item, ScriptCopier copier)
    
protected  voiddoLayout()
    
public static  intgen2DBCSbytes(byte[] buf, int pos, int length, byte[] outbuf)
     Converts array of bytes in Macromedia Generator character format into array of bytes suitable to be processed by encoding converters.
public static  intgen2DBCSchars(byte[] buf, int pos, int length, char[] outbuf)
    
public  IVVectorgetAllTextRecords()
    
public  Rectangle2DgetBounds()
    
public  intgetBoundsStyle()
    
public  FlashItemgetCopy(ScriptCopier copier)
    
public  AffineTransformgetMatrix()
    
public  intgetTag()
    
public  IVVectorgetTextItems()
     Returns vector of all text items ( TextItem ) of this text.
public  IVVectorgetTextRecords(Font font)
     Returns vector of TextRecord s from this text of specified font.
public  booleanisConstant()
    
public  voidlayout()
    
public static  TextnewText()
    
public static  FlashDefparse(Parser p, boolean withAlpha)
     Parses any DefineText tag.
public  voidparseGenText(Parser p)
     Parses MM Generator define text tag: 0x2A.
public  voidprintContent(PrintStream out, String indent)
    
public  voidsetBounds(Rectangle2D bounds)
    
public  voidsetBounds(int x, int y, int width, int height)
    
public  voidsetBoundsStyle(int boundsStyle)
    
public  voidsetGenBounds(Rectangle2D bounds)
    
public  voidsetMatrix(AffineTransform matrix)
    
public  voidsetTextItems(IVVector items)
     Sets new vector of text items ( TextItem ) for this text.
public  voidwrite(FlashOutput fob)
    
public  voidwrite(FlashOutput fob, FlashDef def)
    

Field Detail
JG_STYLE
final public static int JG_STYLE(Code)



MM_STYLE
final public static int MM_STYLE(Code)



PROPERTY_CONTROLLED
final public static int PROPERTY_CONTROLLED(Code)




Constructor Detail
Text
public Text()(Code)



Text
public Text(boolean withAlpha)(Code)




Method Detail
addTextItem
public TextItem addTextItem(TextItem item)(Code)
Adds new text item to this text
Parameters:
  item - new text item to be added added text item



apply
public void apply(Context context)(Code)



changeFont
public void changeFont(Font old_font, Font new_font)(Code)
Updates records' font.

Changes one specified font into another in all records. In text records also updates indexes.
Parameters:
  old_font - old font
Parameters:
  new_font - new font




collectDeps
public void collectDeps(DepsCollector dc)(Code)



collectFonts
public void collectFonts(FontsCollector fc)(Code)



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



doLayout
protected void doLayout()(Code)



gen2DBCSbytes
public static int gen2DBCSbytes(byte[] buf, int pos, int length, byte[] outbuf)(Code)
Converts array of bytes in Macromedia Generator character format into array of bytes suitable to be processed by encoding converters.

Chars are considered to be in broken DBCS, result is suitable to be converted to UNICODE.
Parameters:
  buf - array of bytes in MM Generator char format
Parameters:
  pos - position in this array
Parameters:
  length - length of this array
Parameters:
  outbuf - output buffer suitable to be converted to Unicode size of output buffer




gen2DBCSchars
public static int gen2DBCSchars(byte[] buf, int pos, int length, char[] outbuf)(Code)
Converts array of bytes in Macromedia Generator character format into array of DBCS bytes

Chars are considered to be in broken DBCS, result is DBCS
Parameters:
  buf - array of bytes in MM Generator char format
Parameters:
  pos - position in this array
Parameters:
  length - length of this array
Parameters:
  outbuf - output buffer, array od DBCS chars size of output buffer




getAllTextRecords
public IVVector getAllTextRecords()(Code)
Returns vector of all TextRecord s and TextStyleChangeRecord s from this text all text records



getBounds
public Rectangle2D getBounds()(Code)



getBoundsStyle
public int getBoundsStyle()(Code)



getCopy
public FlashItem getCopy(ScriptCopier copier)(Code)



getMatrix
public AffineTransform getMatrix()(Code)



getTag
public int getTag()(Code)



getTextItems
public IVVector getTextItems()(Code)
Returns vector of all text items ( TextItem ) of this text. vector of TextItem



getTextRecords
public IVVector getTextRecords(Font font)(Code)
Returns vector of TextRecord s from this text of specified font.
Parameters:
  font - font of text records to be returned text records of specified font



isConstant
public boolean isConstant()(Code)



layout
public void layout()(Code)
Layout this text



newText
public static Text newText()(Code)



parse
public static FlashDef parse(Parser p, boolean withAlpha)(Code)
Parses any DefineText tag.

If current parsed file is not generator template then parse text lazy ( LazyText ).
Parameters:
  p - parser to parse with
Parameters:
  withAlpha - with alpha or not LazyText or Text




parseGenText
public void parseGenText(Parser p)(Code)
Parses MM Generator define text tag: 0x2A.

Creates vector of TextItems




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



setBounds
public void setBounds(Rectangle2D bounds)(Code)



setBounds
public void setBounds(int x, int y, int width, int height)(Code)



setBoundsStyle
public void setBoundsStyle(int boundsStyle)(Code)



setGenBounds
public void setGenBounds(Rectangle2D bounds)(Code)



setMatrix
public void setMatrix(AffineTransform matrix)(Code)



setTextItems
public void setTextItems(IVVector items)(Code)
Sets new vector of text items ( TextItem ) for this text.
Parameters:
  items - new vector of TextItem



write
public void write(FlashOutput fob)(Code)



write
public void write(FlashOutput fob, FlashDef def)(Code)



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.