public class Translate extends Transform
Affine object that translates coordinates
by the specified factors. The matrix representing the translating
transformation is as follows:
[ 1 0 0 x ]
[ 0 1 0 y ]
[ 0 0 1 z ]
| Type | Property and Description |
|---|---|
DoubleProperty |
x
Defines the distance by which coordinates are translated in the
X axis direction
|
DoubleProperty |
y
Defines the distance by which coordinates are translated in the
Y axis direction
|
DoubleProperty |
z
Defines the distance by which coordinates are translated in the
Z axis direction
|
identity, onTransformChanged, type2D| Constructor and Description |
|---|
Translate()
Creates a default Translate (identity).
|
Translate(double x,
double y)
Creates a two-dimensional Translate.
|
Translate(double x,
double y,
double z)
Creates a three-dimensional Translate.
|
| Modifier and Type | Method and Description |
|---|---|
Translate |
clone()
Returns a deep copy of this transform.
|
Transform |
createConcatenation(Transform transform)
Returns the concatenation of this transform and the specified transform.
|
Translate |
createInverse()
Returns the inverse transform of this transform.
|
Point2D |
deltaTransform(double x,
double y)
Transforms the relative magnitude vector by this transform.
|
Point3D |
deltaTransform(double x,
double y,
double z)
Transforms the relative magnitude vector by this transform.
|
Point2D |
deltaTransform(Point2D point)
Transforms the relative magnitude vector represented by the specified
Point2D instance by this transform. |
Point3D |
deltaTransform(Point3D point)
Transforms the relative magnitude vector represented by the specified
Point3D instance by this transform. |
double |
getTx()
Gets the X coordinate translation element of the 3x4 matrix.
|
double |
getTy()
Gets the Y coordinate translation element of the 3x4 matrix.
|
double |
getTz()
Gets the Z coordinate translation element of the 3x4 matrix.
|
double |
getX()
Gets the value of the property x.
|
double |
getY()
Gets the value of the property y.
|
double |
getZ()
Gets the value of the property z.
|
Point2D |
inverseDeltaTransform(double x,
double y)
Transforms the relative magnitude vector by the inverse of this transform.
|
Point3D |
inverseDeltaTransform(double x,
double y,
double z)
Transforms the relative magnitude vector by the inverse of this transform.
|
Point2D |
inverseDeltaTransform(Point2D point)
Transforms the relative magnitude vector represented by the specified
Point2D instance by the inverse of this transform. |
Point3D |
inverseDeltaTransform(Point3D point)
Transforms the relative magnitude vector represented by the specified
Point3D instance by the inverse of this transform. |
Point2D |
inverseTransform(double x,
double y)
Transforms the specified point by the inverse of this transform.
|
Point3D |
inverseTransform(double x,
double y,
double z)
Transforms the specified point by the inverse of this transform.
|
void |
setX(double value)
Sets the value of the property x.
|
void |
setY(double value)
Sets the value of the property y.
|
void |
setZ(double value)
Sets the value of the property z.
|
String |
toString()
Returns a string representation of this
Translate object. |
Point2D |
transform(double x,
double y)
Transforms the specified point by this transform.
|
Point3D |
transform(double x,
double y,
double z)
Transforms the specified point by this transform.
|
DoubleProperty |
xProperty()
Defines the distance by which coordinates are translated in the
X axis direction
|
DoubleProperty |
yProperty()
Defines the distance by which coordinates are translated in the
Y axis direction
|
DoubleProperty |
zProperty()
Defines the distance by which coordinates are translated in the
Z axis direction
|
addEventFilter, addEventHandler, affine, affine, buildEventDispatchChain, column, column, determinant, getElement, getMxx, getMxy, getMxz, getMyx, getMyy, getMyz, getMzx, getMzy, getMzz, getOnTransformChanged, identityProperty, inverseTransform, inverseTransform, inverseTransform, inverseTransform2DPoints, inverseTransform3DPoints, isIdentity, isType2D, onTransformChangedProperty, removeEventFilter, removeEventHandler, rotate, row, row, scale, scale, setOnTransformChanged, shear, shear, similarTo, toArray, toArray, transform, transform, transform, transform2DPoints, transform3DPoints, transformChanged, translate, type2DPropertypublic final DoubleProperty xProperty
getX(),
setX(double)public final DoubleProperty yProperty
getY(),
setY(double)public final DoubleProperty zProperty
getZ(),
setZ(double)public Translate()
public Translate(double x,
double y)
x - the distance by which coordinates are translated in the
X axis directiony - the distance by which coordinates are translated in the
Y axis directionpublic Translate(double x,
double y,
double z)
x - the distance by which coordinates are translated in the
X axis directiony - the distance by which coordinates are translated in the
Y axis directionz - the distance by which coordinates are translated in the
Z axis directionpublic final void setX(double value)
public final double getX()
public final DoubleProperty xProperty()
getX(),
setX(double)public final void setY(double value)
public final double getY()
public final DoubleProperty yProperty()
getY(),
setY(double)public final void setZ(double value)
public final double getZ()
public final DoubleProperty zProperty()
getZ(),
setZ(double)public double getTx()
Transformpublic double getTy()
Transformpublic double getTz()
Transformpublic Transform createConcatenation(Transform transform)
TransformgetTransforms() list,
this transform first and the specified transform second.createConcatenation in class Transformtransform - transform to be concatenated with this transformpublic Translate createInverse()
TransformcreateInverse in class Transformpublic Translate clone()
Transformpublic Point2D transform(double x, double y)
Transformpublic Point3D transform(double x, double y, double z)
Transformpublic Point2D deltaTransform(double x, double y)
TransformdeltaTransform in class Transformx - vector magnitude in the direction of the X axisy - vector magnitude in the direction of the Y axisPoint2D instancepublic Point2D deltaTransform(Point2D point)
TransformPoint2D instance by this transform.
The vector is transformed without applying the translation components
of the affine transformation matrix.
This method can be used only for a 2D transform.deltaTransform in class Transformpoint - the relative magnitude vectorPoint2D instancepublic Point3D deltaTransform(double x, double y, double z)
TransformdeltaTransform in class Transformx - vector magnitude in the direction of the X axisy - vector magnitude in the direction of the Y axisPoint3D instancepublic Point3D deltaTransform(Point3D point)
TransformPoint3D instance by this transform.
The vector is transformed without applying the translation components
of the affine transformation matrix.deltaTransform in class Transformpoint - the relative magnitude vectorPoint3D instancepublic Point2D inverseTransform(double x, double y)
TransforminverseTransform in class Transformx - the X coordinate of the pointy - the Y coordinate of the pointpublic Point3D inverseTransform(double x, double y, double z)
TransforminverseTransform in class Transformx - the X coordinate of the pointy - the Y coordinate of the pointz - the Z coordinate of the pointpublic Point2D inverseDeltaTransform(double x, double y)
TransforminverseDeltaTransform in class Transformx - vector magnitude in the direction of the X axisy - vector magnitude in the direction of the Y axisPoint2D instancepublic Point2D inverseDeltaTransform(Point2D point)
TransformPoint2D instance by the inverse of this transform.
The vector is transformed without applying the translation components
of the affine transformation matrix.
This method can be used only for a 2D transform.inverseDeltaTransform in class Transformpoint - the relative magnitude vectorPoint2D instancepublic Point3D inverseDeltaTransform(double x, double y, double z)
TransforminverseDeltaTransform in class Transformx - vector magnitude in the direction of the X axisy - vector magnitude in the direction of the Y axisPoint3D instancepublic Point3D inverseDeltaTransform(Point3D point)
TransformPoint3D instance by the inverse of this transform.
The vector is transformed without applying the translation components
of the affine transformation matrix.inverseDeltaTransform in class Transformpoint - the relative magnitude vectorPoint3D instanceCopyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.