Java Doc for Transform.java in  » 6.0-JDK-Modules » j2me » com » sun » perseus » j2d » 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 » 6.0 JDK Modules » j2me » com.sun.perseus.j2d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.perseus.j2d.Transform

Transform
public class Transform implements SVGMatrix(Code)
Class for 2D transforms.
version:
   $Id: Transform.java,v 1.8 2006/04/21 06:35:16 st125089 Exp $


Field Summary
 floatm0
     The (0, 0) component of this 3x3 transformation matrix.
 floatm1
     The (1, 0) component of this 3x3 transformation matrix.
 floatm2
     The (0, 1) component of this 3x3 transformation matrix.
 floatm3
     The (1, 1) component of this 3x3 transformation matrix.
 floatm4
     The (0, 2) component of this 3x3 transformation matrix.
 floatm5
     The (1, 2) component of this 3x3 transformation matrix.

Constructor Summary
public  Transform(float m0, float m1, float m2, float m3, float m4, float m5)
    
public  Transform(SVGMatrix transform)
     Constructs an Transform representing the same transform as the given Transform.

Method Summary
public  booleanequals(Object obj)
    
public  booleanequals(float[][] m)
    
Parameters:
  a - 6x1 float array containing the transform matrix.
public  floatgetComponent(int index)
    
public  SVGMatrixinverse()
     Returns the inverse matrix.
public  SVGMatrixinverse(SVGMatrix txf)
     Inverses this transform and stores the resulting transform into the input transform.
public  booleanisIdentity()
     Returns true if the current SVGMatrix is equivalent to the identity matrix, false otherwise.
public  booleanisInvertible()
     Returns true if the matrix is invertible.
public  SVGMatrixmMultiply(SVGMatrix secondMatrix)
    
public  SVGMatrixmRotate(float angle)
    
public  SVGMatrixmScale(float scaleFactor)
    
public  SVGMatrixmScale(float scaleFactorX, float scaleFactorY)
     Post-multiplies a scale transformation on the current matrix and returns the resulting matrix.
public  SVGMatrixmTranslate(float x, float y)
    
public  voidsetTransform(float m0, float m1, float m2, float m3, float m4, float m5)
    
public  voidsetTransform(SVGMatrix transform)
     Sets the transform to the value defined by the input matrix.
public  voidtransformPoint(float[] pt, float[] opt)
     Transforms a point's coordinates.

Field Detail
m0
float m0(Code)
The (0, 0) component of this 3x3 transformation matrix.



m1
float m1(Code)
The (1, 0) component of this 3x3 transformation matrix.



m2
float m2(Code)
The (0, 1) component of this 3x3 transformation matrix.



m3
float m3(Code)
The (1, 1) component of this 3x3 transformation matrix.



m4
float m4(Code)
The (0, 2) component of this 3x3 transformation matrix.



m5
float m5(Code)
The (1, 2) component of this 3x3 transformation matrix.




Constructor Detail
Transform
public Transform(float m0, float m1, float m2, float m3, float m4, float m5)(Code)
Constructs an Transform with a given set of components, representing the transform:
 x' = m0*x + m2*y + m4
 y' = m1*x + m3*y + m5
 
or, representing the matrix:
 [ m0 m2 m4 ]
 [ m1 m3 m5 ]
 [ 0  0  1  ]
 

Parameters:
  m0 - (0, 0) matrix value
Parameters:
  m1 - (1, 0) matrix value
Parameters:
  m2 - (0, 1) matrix value
Parameters:
  m3 - (1, 1) matrix value
Parameters:
  m4 - (0, 2) matrix value
Parameters:
  m5 - (1, 2) matrix value



Transform
public Transform(SVGMatrix transform)(Code)
Constructs an Transform representing the same transform as the given Transform. Future changes to the object supplied as the transform parameter will not affect the newly constructed Transform. If transform is null, the matrix is initialized to be the identity matrix.
Parameters:
  transform - defines the initialstate for the newly constructed Transform.




Method Detail
equals
public boolean equals(Object obj)(Code)
true if obj is a Transform and all its components are the same as this instance.



equals
public boolean equals(float[][] m)(Code)

Parameters:
  a - 6x1 float array containing the transform matrix. true if this transform is equal to the input matrix.



getComponent
public float getComponent(int index) throws DOMException(Code)
The components of the matrix denoted a to f in the API are : [ a c e ] [ b d f ] [ 0 0 1 ]
Parameters:
  index - component index for this matrix the component of the matrix corresponding to the index.
throws:
  DOMException - - INDEX_SIZE_ERR if the index is invalid.



inverse
public SVGMatrix inverse() throws SVGException(Code)
Returns the inverse matrix. the inverted matrix.
throws:
  SVGException - - SVG_MATRIX_NOT_INVERTABLE when determinant of this matrix is zero.



inverse
public SVGMatrix inverse(SVGMatrix txf) throws SVGException(Code)
Inverses this transform and stores the resulting transform into the input transform.
Parameters:
  txf - the SVGMatrix into which the result should be stored.
throws:
  SVGException - - SVG_MATRIX_NOT_INVERTABLE when determinant of this matrix is zero.



isIdentity
public boolean isIdentity()(Code)
Returns true if the current SVGMatrix is equivalent to the identity matrix, false otherwise. true if this matrix is identity, false otherwise.



isInvertible
public boolean isInvertible()(Code)
Returns true if the matrix is invertible. true if the matrix is invertible.



mMultiply
public SVGMatrix mMultiply(SVGMatrix secondMatrix) throws NullPointerException(Code)



mRotate
public SVGMatrix mRotate(float angle)(Code)



mScale
public SVGMatrix mScale(float scaleFactor)(Code)



mScale
public SVGMatrix mScale(float scaleFactorX, float scaleFactorY)(Code)
Post-multiplies a scale transformation on the current matrix and returns the resulting matrix.

 [   scaleFactorX      0          0   ]
 [   0          scaleFactorY      0   ]
 [   0                 0          1   ]
 


Parameters:
  scaleFactorX - the factor by which coordinates are scaled along theX axis direction.
Parameters:
  scaleFactorY - the factor by which coordinates are scaled along theY axis direction. this matrix scaled by the scaleFactor.



mTranslate
public SVGMatrix mTranslate(float x, float y)(Code)



setTransform
public void setTransform(float m0, float m1, float m2, float m3, float m4, float m5)(Code)
Sets the transform to the matrix defined by the input parameters:
 [ m0 m2 m4 ]
 [ m1 m3 m5 ]
 [ 0  0  1  ]
 

Parameters:
  m0 - (0, 0) matrix value
Parameters:
  m1 - (1, 0) matrix value
Parameters:
  m2 - (0, 1) matrix value
Parameters:
  m3 - (1, 1) matrix value
Parameters:
  m4 - (0, 2) matrix value
Parameters:
  m5 - (1, 2) matrix value



setTransform
public void setTransform(SVGMatrix transform)(Code)
Sets the transform to the value defined by the input matrix.
Parameters:
  transform - the transform whose value should be copied. If null,this transform is set to identity.



transformPoint
public void transformPoint(float[] pt, float[] opt)(Code)
Transforms a point's coordinates.
Parameters:
  pt - the point to transform
Parameters:
  opt - the transformed point coordinates.



Methods inherited from java.lang.Object
public boolean equals(Object obj)(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.