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 twodimensional Translate.

Translate(double x,
double y,
double z)
Creates a threedimensional Translate.

Modifier and Type  Method and Description 

double 
getX()
Defines the distance by which coordinates are translated in the
X axis direction

double 
getY()
Defines the distance by which coordinates are translated in the
Y axis direction

double 
getZ()
Defines the distance by which coordinates are translated in the
Z axis direction

void 
setX(double value)
Defines the distance by which coordinates are translated in the
X axis direction

void 
setY(double value)
Defines the distance by which coordinates are translated in the
Y axis direction

void 
setZ(double value)
Defines the distance by which coordinates are translated in the
Z axis direction

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

getX()
,
setX(double)
getY()
,
setY(double)
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 java.lang.String toString()
Translate
object.toString
in class java.lang.Object
Translate
object.Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to