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
|
| 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 |
|---|---|
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.
|
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.
|
java.lang.String |
toString()
Returns a string representation of this
Translate object. |
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
|
public 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 java.lang.String toString()
Translate object.toString in class java.lang.ObjectTranslate object.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.