|
Spec-Zone .ru
спецификации, руководства, описания, API
|
public class Scale extends Transform
Affine object that scales coordinates
by the specified factors. The matrix representing the scaling transformation
is as follows:
[ x 0 0 0 ]
[ 0 y 0 0 ]
[ 0 0 z 0 ]
| Type | Property and Description |
|---|---|
DoubleProperty |
pivotX
Defines the X coordinate about which point the scale occurs.
|
DoubleProperty |
pivotY
Defines the Y coordinate about which point the scale occurs.
|
DoubleProperty |
pivotZ
Defines the Z coordinate about which point the scale occurs.
|
DoubleProperty |
x
Defines the factor by which coordinates are scaled
along the X axis direction.
|
DoubleProperty |
y
Defines the factor by which coordinates are scaled
along the Y axis direction.
|
DoubleProperty |
z
Defines the factor by which coordinates are scaled
along the Z axis direction.
|
| Constructor and Description |
|---|
Scale()
Creates a default Scale (identity).
|
Scale(double x,
double y)
Creates a two-dimensional Scale.
|
Scale(double x,
double y,
double z)
Creates a three-dimensional Scale.
|
Scale(double x,
double y,
double pivotX,
double pivotY)
Creates a two-dimensional Scale with pivot.
|
Scale(double x,
double y,
double z,
double pivotX,
double pivotY,
double pivotZ)
Creates a three-dimensional Scale with pivot.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getPivotX()
Defines the X coordinate about which point the scale occurs.
|
double |
getPivotY()
Defines the Y coordinate about which point the scale occurs.
|
double |
getPivotZ()
Defines the Z coordinate about which point the scale occurs.
|
double |
getX()
Defines the factor by which coordinates are scaled
along the X axis direction.
|
double |
getY()
Defines the factor by which coordinates are scaled
along the Y axis direction.
|
double |
getZ()
Defines the factor by which coordinates are scaled
along the Z axis direction.
|
DoubleProperty |
pivotXProperty()
Defines the X coordinate about which point the scale occurs.
|
DoubleProperty |
pivotYProperty()
Defines the Y coordinate about which point the scale occurs.
|
DoubleProperty |
pivotZProperty()
Defines the Z coordinate about which point the scale occurs.
|
void |
setPivotX(double value)
Defines the X coordinate about which point the scale occurs.
|
void |
setPivotY(double value)
Defines the Y coordinate about which point the scale occurs.
|
void |
setPivotZ(double value)
Defines the Z coordinate about which point the scale occurs.
|
void |
setX(double value)
Defines the factor by which coordinates are scaled
along the X axis direction.
|
void |
setY(double value)
Defines the factor by which coordinates are scaled
along the Y axis direction.
|
void |
setZ(double value)
Defines the factor by which coordinates are scaled
along the Z axis direction.
|
java.lang.String |
toString()
Returns a string representation of this
Scale object. |
DoubleProperty |
xProperty()
Defines the factor by which coordinates are scaled
along the X axis direction.
|
DoubleProperty |
yProperty()
Defines the factor by which coordinates are scaled
along the Y axis direction.
|
DoubleProperty |
zProperty()
Defines the factor by which coordinates are scaled
along the Z axis direction.
|
1.0.getX(),
setX(double)1.0.getY(),
setY(double)1.0.getZ(),
setZ(double)getPivotX(),
setPivotX(double)getPivotY(),
setPivotY(double)getPivotZ(),
setPivotZ(double)public Scale()
public Scale(double x,
double y)
x - the factor by which coordinates are scaled along the X axisy - the factor by which coordinates are scaled along the Y axispublic Scale(double x,
double y,
double pivotX,
double pivotY)
x - the factor by which coordinates are scaled along the X axisy - the factor by which coordinates are scaled along the Y axispivotX - the X coordinate about which point the scale occurspivotY - the Y coordinate about which point the scale occurspublic Scale(double x,
double y,
double z)
x - the factor by which coordinates are scaled along the X axisy - the factor by which coordinates are scaled along the Y axisz - the factor by which coordinates are scaled along the Z axispublic Scale(double x,
double y,
double z,
double pivotX,
double pivotY,
double pivotZ)
x - the factor by which coordinates are scaled along the X axisy - the factor by which coordinates are scaled along the Y axisz - the factor by which coordinates are scaled along the Z axispivotX - the X coordinate about which point the scale occurspivotY - the Y coordinate about which point the scale occurspivotZ - the Z coordinate about which point the scale occurspublic final void setX(double value)
1.0.public final double getX()
1.0.public final DoubleProperty xProperty()
1.0.getX(),
setX(double)public final void setY(double value)
1.0.public final double getY()
1.0.public final DoubleProperty yProperty()
1.0.getY(),
setY(double)public final void setZ(double value)
1.0.public final double getZ()
1.0.public final DoubleProperty zProperty()
1.0.getZ(),
setZ(double)public final void setPivotX(double value)
public final double getPivotX()
public final DoubleProperty pivotXProperty()
getPivotX(),
setPivotX(double)public final void setPivotY(double value)
public final double getPivotY()
public final DoubleProperty pivotYProperty()
getPivotY(),
setPivotY(double)public final void setPivotZ(double value)
public final double getPivotZ()
public final DoubleProperty pivotZProperty()
getPivotZ(),
setPivotZ(double)public java.lang.String toString()
Scale object.toString in class java.lang.ObjectScale object.Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. Use is subject to .