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 (1-x)*pivotX ]
[ 0 y 0 (1-y)*pivotY ]
[ 0 0 z (1-z)*pivotZ ]
| 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.
|
identity, onTransformChanged, type2D| 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 |
|---|---|
Scale |
clone()
Returns a deep copy of this transform.
|
Transform |
createConcatenation(Transform transform)
Returns the concatenation of this transform and the specified transform.
|
Scale |
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.
|
double |
getMxx()
Gets the X coordinate scaling element of the 3x4 matrix.
|
double |
getMyy()
Gets the Y coordinate scaling element of the 3x4 matrix.
|
double |
getMzz()
Gets the Z coordinate scaling element of the 3x4 matrix.
|
double |
getPivotX()
Gets the value of the property pivotX.
|
double |
getPivotY()
Gets the value of the property pivotY.
|
double |
getPivotZ()
Gets the value of the property pivotZ.
|
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 |
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.
|
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)
Sets the value of the property pivotX.
|
void |
setPivotY(double value)
Sets the value of the property pivotY.
|
void |
setPivotZ(double value)
Sets the value of the property pivotZ.
|
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
Scale 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 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.
|
addEventFilter, addEventHandler, affine, affine, buildEventDispatchChain, column, column, deltaTransform, deltaTransform, determinant, getElement, getMxy, getMxz, getMyx, getMyz, getMzx, getMzy, getOnTransformChanged, identityProperty, inverseDeltaTransform, inverseDeltaTransform, 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
1.0.getX(),
setX(double)public final DoubleProperty yProperty
1.0.getY(),
setY(double)public final DoubleProperty zProperty
1.0.getZ(),
setZ(double)public final DoubleProperty pivotXProperty
getPivotX(),
setPivotX(double)public final DoubleProperty pivotYProperty
getPivotY(),
setPivotY(double)public final DoubleProperty pivotZProperty
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 double getMxx()
Transformpublic double getMyy()
Transformpublic double getMzz()
Transformpublic 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 Scale createInverse() throws NonInvertibleTransformException
TransformcreateInverse in class TransformNonInvertibleTransformException - if this transform
cannot be invertedpublic Scale 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 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 Point2D inverseTransform(double x, double y) throws NonInvertibleTransformException
TransforminverseTransform in class Transformx - the X coordinate of the pointy - the Y coordinate of the pointNonInvertibleTransformException - if this transform
cannot be invertedpublic Point3D inverseTransform(double x, double y, double z) throws NonInvertibleTransformException
TransforminverseTransform in class Transformx - the X coordinate of the pointy - the Y coordinate of the pointz - the Z coordinate of the pointNonInvertibleTransformException - if this transform
cannot be invertedpublic Point2D inverseDeltaTransform(double x, double y) throws NonInvertibleTransformException
TransforminverseDeltaTransform in class Transformx - vector magnitude in the direction of the X axisy - vector magnitude in the direction of the Y axisPoint2D instanceNonInvertibleTransformException - if this transform
cannot be invertedpublic Point3D inverseDeltaTransform(double x, double y, double z) throws NonInvertibleTransformException
TransforminverseDeltaTransform in class Transformx - vector magnitude in the direction of the X axisy - vector magnitude in the direction of the Y axisPoint3D instanceNonInvertibleTransformException - if this transform
cannot be invertedCopyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.