Overview
This class represents an Affine object that translates coordinates
by the specified factors. Normally application developers will use the
static Transform.translate method instead of accessing this class
directly.
The matrix representing the translating transformation is as follows:
[ 1 0 tx ] [ 0 1 ty ] [ 0 0 1 ]
Profile: common
This comment needs review.
Attribute Summary
| name | type | description |
|---|---|---|
| Public | ||
| x | Number |
Defines the distance by which coordinates are translated in the X axis direction More: [+]Defines the distance by which coordinates are translated in the X axis direction Profile: common |
| y | Number |
Defines the distance by which coordinates are translated in the Y axis direction More: [+]Defines the distance by which coordinates are translated in the Y axis direction Profile: common |
| Protected | ||
Inherited Attributes
javafx.scene.transform.Transform
| name | type | description |
|---|---|---|
| impl_node | Node |
More: [+]
This attribute should be treated as private |
Function Summary
- public impl_getAffineTransform() : java.awt.geom.AffineTransform
-
More: [+]
-
Returns
- AffineTransform
Inherited Functions
javafx.scene.transform.Transform
- public static affine(m00: Number, m01: Number, m02: Number, m10: Number, m11: Number, m12: Number) : Affine
-
Returns a new
More: [+]Affineobject from 6 number values representing the 6 specifiable entries of the 3x3 transformation matrix.Returns a new
Affineobject from 6 number values representing the 6 specifiable entries of the 3x3 transformation matrix.-
Parameters
- m00
- the X coordinate scaling element of the 3x3 matrix
- m01
- the Y coordinate shearing element of the 3x3 matrix
- m02
- the X coordinate shearing element of the 3x3 matrix
- m10
- the Y coordinate scaling element of the 3x3 matrix
- m11
- the X coordinate translation element of the 3x3 matrix
- m12
- the Y coordinate translation element of the 3x3 matrix
-
Returns
- Affine
-
a new
Affineobject derived from specified parameters
Profile: common
- public abstract impl_getAffineTransform() : java.awt.geom.AffineTransform
-
Constructs an
More: [+]java.awt.geom.AffineTransformobject which performes the actual transformationConstructs an
java.awt.geom.AffineTransformobject which performes the actual transformation-
Returns
- AffineTransform
-
an
java.awt.geom.AffineTransformobject which performes the actual transformation
- public static rotate(angle: Number, x: Number, y: Number) : Rotate
-
Returns a
More: [+]Rotateobject that rotates coordinates around an anchor point.Returns a
Rotateobject that rotates coordinates around an anchor point. This operation is equivalent to translating the coordinates so that the anchor point is at the origin (S1), then rotating them about the new origin (S2), and finally translating so that the intermediate origin is restored to the coordinates of the original anchor point (S3).The matrix representing the returned transform is:
[ cos(theta) -sin(theta) x-x*cos+y*sin ] [ sin(theta) cos(theta) y-x*sin-y*cos ] [ 0 0 1 ]
Rotating by a positive angle theta rotates points on the positive X axis toward the positive Y axis.-
Parameters
- angle
- the angle of rotation measured in radians
- x
- the X coordinate of the rotation anchor point
- y
- the Y coordinate of the rotation anchor point
-
Returns
- Rotate
-
a
Rotateobject that rotates coordinates around the specified point by the specified angle of rotation.
Profile: common
- public static scale(x: Number, y: Number) : Scale
-
Returns a
More: [+]Scaleobject representing a scaling transformation.Returns a
Scaleobject representing a scaling transformation.The matrix representing the returned transform is:
[ sx 0 0 ] [ 0 sy 0 ] [ 0 0 1 ]
-
Parameters
- x
- the factor by which coordinates are scaled along the X axis direction
- y
- the factor by which coordinates are scaled along the Y axis direction
-
Returns
- Scale
- an <code>AffineTransform</code> object that scales coordinates by the specified factors.
Profile: common
- public static shear(x: Number, y: Number) : Shear
-
Returns a
More: [+]Shearobject representing a shearing transformation.Returns a
Shearobject representing a shearing transformation.The matrix representing the returned transform is:
[ 1 shx 0 ] [ shy 1 0 ] [ 0 0 1 ]
-
Parameters
- x
- the multiplier by which coordinates are shifted in the direction of the positive X axis as a factor of their Y coordinate
- y
- the multiplier by which coordinates are shifted in the direction of the positive Y axis as a factor of their X coordinate
-
Returns
- Shear
- an <code>AffineTransform</code> object that shears coordinates by the specified multipliers.
Profile: common
- public static translate(x: Number, y: Number) : Translate
-
Returns a
More: [+]Translateobject representing a translation transformation.Returns a
Translateobject representing a translation transformation.The matrix representing the returned transform is:
[ 1 0 tx ] [ 0 1 ty ] [ 0 0 1 ]
-
Parameters
- x
- the distance by which coordinates are translated in the X axis direction
- y
- the distance by which coordinates are translated in the Y axis direction
-
Returns
- Translate
-
a
Translateobject that represents a translation transformation, created with the specified vector.
Profile: common