Java Doc for CDSMatrix.java in  » PDF » jPod » de » intarsys » pdf » cds » 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 » jPod » de.intarsys.pdf.cds 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


de.intarsys.pdf.cds.CDSBase
   de.intarsys.pdf.cds.CDSMatrix

CDSMatrix
public class CDSMatrix extends CDSBase (Code)
The implementation of the pdf transformation matrix.

Each matrix is represented as an array.

 The transformation matrix:
 +       +
 | a b 0 |
 | c d 0 |
 | e f 1 |
 +       +
 is written as a COSArray in the form:
 [ a b c d e f ]
 The identity transformation has the form:
 [ 1 0 0 1 0 0 ]
 

Coordinates could be transformed by a matrix.

 A coordinate transformation is defined as:
 +       +
 | a b 0 |
 [ x' y' 1 ] = [ x y 1] * | c d 0 |
 | e f 1 |
 +       +
 so that
 x' = x*a + y*c + e
 y' = x*b + y*d + f
 



Field Summary
public static  float[]MATRIX_0
    
public static  float[]MATRIX_180
    
public static  float[]MATRIX_270
    
public static  float[]MATRIX_90
    

Constructor Summary
public  CDSMatrix()
     CDSMatrix constructor.
public  CDSMatrix(float[] data)
     Create a CDSMatrix based on the array in the parameter.
protected  CDSMatrix(COSArray newM)
     Create a CDSMatrix based on the array in the parameter.

Method Summary
public  CDSMatrixcopy()
    
public static  CDSMatrixcreateFromCOS(COSArray array)
     Create a CDSMatrix from an array holding the transformation parameters.
public  floatgetA()
     Return the matrix element "a".
public  floatgetB()
     Return the matrix element "b".
public  floatgetC()
     Return the matrix element "c".
public  floatgetD()
     Return the matrix element "d".
public  floatgetE()
     Return the matrix element "e".
public  floatgetF()
     Return the matrix element "f".
public  voidinvalidateCaches()
    
public  voidrotate(float angle)
     Concatenate this transformation with a rotation transformation.
public  voidscale(float[] v)
     Concatenate this transformation with a scaling transformation.
public  voidsetA(float num)
     Set the matrix element "a".
public  voidsetB(float num)
     Set the matrix element "b".
public  voidsetC(float num)
     Set the matrix element "c".
public  voidsetD(float num)
     Set the matrix element "d".
public  voidsetE(float num)
     Set the matrix element "e".
public  voidsetF(float num)
     Set the matrix element "f".
public  voidsetTransformation(float a, float b, float c, float d, float e, float f)
    
public  voidsetTransformation(float[] data)
    
public  voidsetTransformation(AffineTransform transform)
    
public  AffineTransformtoTransform()
     Create an AffineTransform that corresponds to this.
public  float[]transform(float[] v)
     Transform a vector v using this.
Parameters:
  v - The vector that will be transformed.
public  voidtranslate(float[] v)
     Concatenate this transformation with a translation transformation.
public  voidtranslate(float x, float y)
     Concatenate this transformation with a translation transformation.

Field Detail
MATRIX_0
public static float[] MATRIX_0(Code)
Static information needed for rotation: rotate 0 degress (identity matrix)



MATRIX_180
public static float[] MATRIX_180(Code)
Static information needed for rotation: rotate 180 degrees



MATRIX_270
public static float[] MATRIX_270(Code)
Static information needed for rotation: rotate 270 degrees



MATRIX_90
public static float[] MATRIX_90(Code)
Static information needed for rotation: rotate 90 degrees




Constructor Detail
CDSMatrix
public CDSMatrix()(Code)
CDSMatrix constructor.

Create a new identity matrix




CDSMatrix
public CDSMatrix(float[] data)(Code)
Create a CDSMatrix based on the array in the parameter. The array must have 6 elements.
Parameters:
  data - The array defining the matrix.



CDSMatrix
protected CDSMatrix(COSArray newM)(Code)
Create a CDSMatrix based on the array in the parameter.
Parameters:
  newM - The array defining the matrix.




Method Detail
copy
public CDSMatrix copy()(Code)
Create a copy of the receiver a new copy of the receiver



createFromCOS
public static CDSMatrix createFromCOS(COSArray array)(Code)
Create a CDSMatrix from an array holding the transformation parameters.
Parameters:
  array - The base COSArray Create a CDSMatrix from array



getA
public float getA()(Code)
Return the matrix element "a". The matrix element "a".



getB
public float getB()(Code)
Return the matrix element "b". The matrix element "b".



getC
public float getC()(Code)
Return the matrix element "c". The matrix element "c".



getD
public float getD()(Code)
Return the matrix element "d". The matrix element "d".



getE
public float getE()(Code)
Return the matrix element "e". The matrix element "e".



getF
public float getF()(Code)
Return the matrix element "f". The matrix element "f".



invalidateCaches
public void invalidateCaches()(Code)



rotate
public void rotate(float angle)(Code)
Concatenate this transformation with a rotation transformation.
Parameters:
  angle - Rotation angle in radians



scale
public void scale(float[] v)(Code)
Concatenate this transformation with a scaling transformation.
Parameters:
  v - The scale factor.



setA
public void setA(float num)(Code)
Set the matrix element "a".
Parameters:
  num - The new matrix element "a".



setB
public void setB(float num)(Code)
Set the matrix element "b".
Parameters:
  num - The new matrix element "b".



setC
public void setC(float num)(Code)
Set the matrix element "c".
Parameters:
  num - The new matrix element "c".



setD
public void setD(float num)(Code)
Set the matrix element "d".
Parameters:
  num - The new matrix element "d".



setE
public void setE(float num)(Code)
Set the matrix element "e".
Parameters:
  num - The new matrix element "e".



setF
public void setF(float num)(Code)
Set the matrix element "f".
Parameters:
  num - The new matrix element "f".



setTransformation
public void setTransformation(float a, float b, float c, float d, float e, float f)(Code)
Set all matrix elements "a" - "f"
Parameters:
  a - The new matrix element "a".
Parameters:
  b - The new matrix element "b".
Parameters:
  c - The new matrix element "c".
Parameters:
  d - The new matrix element "d".
Parameters:
  e - The new matrix element "e".
Parameters:
  f - The new matrix element "f".



setTransformation
public void setTransformation(float[] data)(Code)
Set all matrix elements "a" - "f"
Parameters:
  data - The array defining the new parameters



setTransformation
public void setTransformation(AffineTransform transform)(Code)
Set all matrix elements "a" - "f"
Parameters:
  transform - The matrix defining the new parameters



toTransform
public AffineTransform toTransform()(Code)
Create an AffineTransform that corresponds to this. Create an AffineTransform that corresponds to this.



transform
public float[] transform(float[] v)(Code)
Transform a vector v using this.
Parameters:
  v - The vector that will be transformed. The transformed vector.



translate
public void translate(float[] v)(Code)
Concatenate this transformation with a translation transformation.
Parameters:
  v - The transaltion definition



translate
public void translate(float x, float y)(Code)
Concatenate this transformation with a translation transformation.
Parameters:
  x - The translation in x direction
Parameters:
  y - The translation in y direction




www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.