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


java.lang.Object
   org.openlaszlo.iv.flash.api.FlashItem
      org.openlaszlo.iv.flash.api.shape.ShapeRecords

All known Subclasses:   org.openlaszlo.iv.flash.api.shape.BareShape,
ShapeRecords
public class ShapeRecords extends FlashItem (Code)
Shape records.

Provides basic functionality for drawing geometric primitives.
author:
   Dmitry Skavish




Constructor Summary
public  ShapeRecords()
    
public  ShapeRecords(IVVector shape_records)
    

Method Summary
public  StyleChangeRecordaddStyleChangeRecord(StyleChangeRecord scr)
    
public  StyleChangeRecordaddStyleChangeRecord()
    
protected  FlashItemcopyInto(FlashItem item, ScriptCopier copier)
    
public  voiddrawAWTPathIterator(java.awt.geom.PathIterator pi)
    
public  voiddrawAWTShape(java.awt.Shape shape)
    
public  voiddrawAWTShape(java.awt.Shape shape, AffineTransform matrix)
    
public  voiddrawCurve(int ax1, int ay1, int cx, int cy, int ax2, int ay2)
     Draws curve record.

All coordinates are in twixels.

public  voiddrawCurve(Point2D anchor1, Point2D control, Point2D anchor2)
     Draws curve record.

All coordinates are in twixels.

public  voiddrawCurveTo(int cx, int cy, int ax, int ay)
     Draws curve record.

All coordinates are in twixels.

public  voiddrawLine(int x1, int y1, int x2, int y2)
     Draws a straight line specified by two points.
public  voiddrawLine(Point2D p0, Point2D p1)
     Draws a straight line specified by two points.
public  voiddrawLineTo(int x, int y)
     Draws a straight line from current position to the specified one.

All coordinates are in twixels.

public  voiddrawLineTo(Point2D p1)
     Draws a straight line from current position to the specified one.

All coordinates are in twixels.

public  voiddrawRectangle(int x, int y, int width, int height)
     Draws a rectangle specified by its top-left corner and width and height

All coordinates are in twixels.

public  voiddrawRectangle(Rectangle2D r)
     Draws a rectangle specified by java.awt.geom.Rectangle2D

All coordinates are in twixels.

public  FlashItemgetCopy(ScriptCopier copier)
    
public  Point2DgetCurrentPos()
    
public  Point2DgetFirstPos()
    
public  IVVectorgetShapeRecords()
     Returns vector of shape records.
protected  StyleChangeRecordgetStyleChange()
    
public  voidmovePenTo(int x, int y)
     Moves pen to the specified position.

All coordinates are ABSOLUTE and are in twixels.

public  voidmovePenTo(Point2D p)
    
public static  ShapeRecordsparse(Parser p)
    
public static  IVVectorparseShapeRecords(Parser p)
    
public  voidprintContent(PrintStream out, String indent)
    
public  voidwrite(FlashOutput fob)
     Writes this shape records into specified buffer, writes end of records and flush the bits.
public  voidwrite(FlashOutput fob, int nFillBits, int nLineBits)
     Writes this shape records into specified buffer but does not flush last bits and does not write end of record, it has to be done separatedly.


Constructor Detail
ShapeRecords
public ShapeRecords()(Code)



ShapeRecords
public ShapeRecords(IVVector shape_records)(Code)




Method Detail
addStyleChangeRecord
public StyleChangeRecord addStyleChangeRecord(StyleChangeRecord scr)(Code)
Add style change record
Parameters:
  scr - add this record



addStyleChangeRecord
public StyleChangeRecord addStyleChangeRecord()(Code)
Add style change record



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



drawAWTPathIterator
public void drawAWTPathIterator(java.awt.geom.PathIterator pi)(Code)
Draw AWT PathIterator

All coordinates are in twixels!
Parameters:
  pi - AWT PathIterator




drawAWTShape
public void drawAWTShape(java.awt.Shape shape)(Code)
Draw AWT Shape

All shape coordinates are in twixels!
Parameters:
  shape - AWT shape




drawAWTShape
public void drawAWTShape(java.awt.Shape shape, AffineTransform matrix)(Code)
Draw AWT Shape

All shape coordinates are in twixels!
Parameters:
  shape - AWT shape




drawCurve
public void drawCurve(int ax1, int ay1, int cx, int cy, int ax2, int ay2)(Code)
Draws curve record.

All coordinates are in twixels.
Parameters:
  ax1 - X anchor point 1
Parameters:
  ay1 - Y anchor point 1
Parameters:
  cx - X control point
Parameters:
  cy - Y control point
Parameters:
  ax2 - X anchor point 2
Parameters:
  ay2 - Y anchor point 2




drawCurve
public void drawCurve(Point2D anchor1, Point2D control, Point2D anchor2)(Code)
Draws curve record.

All coordinates are in twixels.
Parameters:
  anchor0 - first anchor point
Parameters:
  control - control point
Parameters:
  anchor1 - second anchor point




drawCurveTo
public void drawCurveTo(int cx, int cy, int ax, int ay)(Code)
Draws curve record.

All coordinates are in twixels.
Parameters:
  cx - X control point
Parameters:
  cy - Y control point
Parameters:
  ax - X anchor point
Parameters:
  ay - Y anchor point




drawLine
public void drawLine(int x1, int y1, int x2, int y2)(Code)
Draws a straight line specified by two points.

All coordinates are in twixels.
Parameters:
  x1 - X of the beginning of the line
Parameters:
  y1 - Y of the beginning of the line
Parameters:
  x2 - X of the end of the line
Parameters:
  y2 - Y of the end of the line




drawLine
public void drawLine(Point2D p0, Point2D p1)(Code)
Draws a straight line specified by two points.

All coordinates are in twixels.
Parameters:
  p0 - first point
Parameters:
  p1 - second point




drawLineTo
public void drawLineTo(int x, int y)(Code)
Draws a straight line from current position to the specified one.

All coordinates are in twixels.
Parameters:
  x - X of end of line
Parameters:
  y - Y of end of line




drawLineTo
public void drawLineTo(Point2D p1)(Code)
Draws a straight line from current position to the specified one.

All coordinates are in twixels.
Parameters:
  p1 - end of line




drawRectangle
public void drawRectangle(int x, int y, int width, int height)(Code)
Draws a rectangle specified by its top-left corner and width and height

All coordinates are in twixels.
Parameters:
  x - x coordinates of top-left corner of the rectangle
Parameters:
  y - y coordinates of top-left corner of the rectangle
Parameters:
  width - width of the rectangle
Parameters:
  height - height of the rectangle




drawRectangle
public void drawRectangle(Rectangle2D r)(Code)
Draws a rectangle specified by java.awt.geom.Rectangle2D

All coordinates are in twixels.
Parameters:
  r - specified rectangle




getCopy
public FlashItem getCopy(ScriptCopier copier)(Code)



getCurrentPos
public Point2D getCurrentPos()(Code)
Returns current pen position current pen position



getFirstPos
public Point2D getFirstPos()(Code)
Returns first pen position (first moveTo) first pen position



getShapeRecords
public IVVector getShapeRecords()(Code)
Returns vector of shape records. vector of shape records



getStyleChange
protected StyleChangeRecord getStyleChange()(Code)



movePenTo
public void movePenTo(int x, int y)(Code)
Moves pen to the specified position.

All coordinates are ABSOLUTE and are in twixels.
Parameters:
  x - new current X
Parameters:
  y - new current Y




movePenTo
public void movePenTo(Point2D p)(Code)
Moves pen to the specified point.

All coordinates are ABSOLUTE and are in twixels!
Parameters:
  p - new pen position




parse
public static ShapeRecords parse(Parser p)(Code)



parseShapeRecords
public static IVVector parseShapeRecords(Parser p)(Code)



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



write
public void write(FlashOutput fob)(Code)
Writes this shape records into specified buffer, writes end of records and flush the bits. Number of fill and line style bits is considered to be 0 (zero).
Parameters:
  fob - buffer



write
public void write(FlashOutput fob, int nFillBits, int nLineBits)(Code)
Writes this shape records into specified buffer but does not flush last bits and does not write end of record, it has to be done separatedly.
Parameters:
  fob - specified buffer
Parameters:
  nFillBits - number of fill bits
Parameters:
  nLineBits - number of line bits



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.