Spec-Zone .ru
спецификации, руководства, описания, API
|
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()
Transform
public double getTy()
Transform
public double getTz()
Transform
public java.lang.String toString()
Translate
object.toString
in class java.lang.Object
Translate
object.Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. Use is subject to