public class Rotate extends Transform
Affine
オブジェクトを表します。このオペレーションは、座標をアンカー・ポイントが原点(S1)になるように移動し、これらの座標を新しい原点(S2)を中心に回転してから、最後にその仲介的な原点を元のアンカー・ポイント(S3)の座標に戻すために移動することに相当します。
たとえば、Z軸周りのnew Rotate (theta, x, y, z)について返される変換を表す行列は、次のようになります。
[ cos(theta) -sin(theta) 0 x-x*cos+y*sin ] [ sin(theta) cos(theta) 0 y-x*sin-y*cos ] [ 0 0 1 z ]
たとえば、アンカー・ポイントが(50,30)で、Z軸周りにテキストを30度回転する場合は、次のようになります。
Text text = new Text("This is a test");
text.setX(10);
text.setY(50);
text.setFont(new Font(20));
text.getTransforms().add(new Rotate(30, 50, 30));
Type | プロパティと説明 |
---|---|
DoubleProperty |
angle
回転角度を定義します(角度の単位で測定)。
|
ObjectProperty<Point3D> |
axis
ピボット・ポイントの回転軸を定義します。
|
DoubleProperty |
pivotX
回転のピボット・ポイントのX座標を定義します。
|
DoubleProperty |
pivotY
回転のピボット・ポイントのY座標を定義します。
|
DoubleProperty |
pivotZ
回転のピボット・ポイントのZ座標を定義します。
|
identity、onTransformChanged、type2D
修飾子と型 | フィールドと説明 |
---|---|
static Point3D |
X_AXIS
回転の軸としてX軸を指定します。
|
static Point3D |
Y_AXIS
回転の軸としてY軸を指定します。
|
static Point3D |
Z_AXIS
回転の軸としてZ軸を指定します。
|
コンストラクタと説明 |
---|
Rotate()
デフォルトの回転変換(恒等)を作成します。
|
Rotate(double angle)
2次元回転変換を作成します。
|
Rotate(double angle, double pivotX, double pivotY)
ピボットによる2次元回転変換を作成します。
|
Rotate(double angle, double pivotX, double pivotY, double pivotZ)
3次元ピボットによる単純な回転変換を作成します。
|
Rotate(double angle, double pivotX, double pivotY, double pivotZ, Point3D axis)
ピボットによる3D回転変換を作成します。
|
Rotate(double angle, Point3D axis)
3D回転変換を作成します。
|
修飾子と型 | メソッドと説明 |
---|---|
DoubleProperty |
angleProperty()
回転角度を定義します(角度の単位で測定)。
|
ObjectProperty<Point3D> |
axisProperty()
ピボット・ポイントの回転軸を定義します。
|
Rotate |
clone()
この変換のディープ・コピーを返します。
|
Transform |
createConcatenation(Transform transform)
この変換と指定された変換の連結を返します。
|
Transform |
createInverse()
この変換の逆変換を返します。
|
Point2D |
deltaTransform(double x, double y)
相対的な大きさベクトルをこの変換によって変換します。
|
Point3D |
deltaTransform(double x, double y, double z)
相対的な大きさベクトルをこの変換によって変換します。
|
double |
getAngle()
プロパティangleの値を取得します。
|
Point3D |
getAxis()
プロパティaxisの値を取得します。
|
double |
getMxx()
3×4行列のX座標スケーリング要素を取得します。
|
double |
getMxy()
3×4行列のXY座標要素を取得します。
|
double |
getMxz()
3×4行列のXZ座標要素を取得します。
|
double |
getMyx()
3×4行列のYX座標要素を取得します。
|
double |
getMyy()
3×4行列のY座標スケーリング要素を取得します。
|
double |
getMyz()
3×4行列のYZ座標要素を取得します。
|
double |
getMzx()
3×4行列のZX座標要素を取得します。
|
double |
getMzy()
3×4行列のZY座標要素を取得します。
|
double |
getMzz()
3×4行列のZ座標スケーリング要素を取得します。
|
double |
getPivotX()
プロパティpivotXの値を取得します。
|
double |
getPivotY()
プロパティpivotYの値を取得します。
|
double |
getPivotZ()
プロパティpivotZの値を取得します。
|
double |
getTx()
3×4行列のX座標平行移動要素を取得します。
|
double |
getTy()
3×4行列のY座標平行移動要素を取得します。
|
double |
getTz()
3×4行列のZ座標平行移動要素を取得します。
|
Point2D |
inverseDeltaTransform(double x, double y)
相対的な大きさベクトルをこの変換によって逆変換します。
|
Point3D |
inverseDeltaTransform(double x, double y, double z)
相対的な大きさベクトルをこの変換によって逆変換します。
|
Point2D |
inverseTransform(double x, double y)
指定された点をこの変換によって逆変換します。
|
Point3D |
inverseTransform(double x, double y, double z)
指定された点をこの変換によって逆変換します。
|
DoubleProperty |
pivotXProperty()
回転のピボット・ポイントのX座標を定義します。
|
DoubleProperty |
pivotYProperty()
回転のピボット・ポイントのY座標を定義します。
|
DoubleProperty |
pivotZProperty()
回転のピボット・ポイントのZ座標を定義します。
|
void |
setAngle(double value)
プロパティangleの値を設定します。
|
void |
setAxis(Point3D value)
プロパティaxisの値を設定します。
|
void |
setPivotX(double value)
プロパティpivotXの値を設定します。
|
void |
setPivotY(double value)
プロパティpivotYの値を設定します。
|
void |
setPivotZ(double value)
プロパティpivotZの値を設定します。
|
String |
toString()
この
Rotate オブジェクトの文字列表現を返します。 |
Point2D |
transform(double x, double y)
指定された点をこの変換によって変換します。
|
Point3D |
transform(double x, double y, double z)
指定された点をこの変換によって変換します。
|
protected void |
transformChanged()
このメソッドは、いずれかの変換のパラメータが変更された場合に、すべての変換により呼び出される必要があります。
|
addEventFilter、addEventHandler、affine、affine、buildEventDispatchChain、column、column、deltaTransform、deltaTransform、determinant、getElement、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、translate、type2DProperty
public final DoubleProperty angleProperty
getAngle()
、setAngle(double)
public final DoubleProperty pivotXProperty
getPivotX()
, setPivotX(double)
public final DoubleProperty pivotYProperty
getPivotY()
、setPivotY(double)
public final DoubleProperty pivotZProperty
getPivotZ()
、setPivotZ(double)
public final ObjectProperty<Point3D> axisProperty
getAxis()
、setAxis(Point3D)
public static final Point3D X_AXIS
public static final Point3D Y_AXIS
public static final Point3D Z_AXIS
public Rotate()
public Rotate(double angle)
angle
- 回転角度(度単位で測定)。public Rotate(double angle, Point3D axis)
angle
- 回転角度(度単位で測定)。axis
- 回転の軸public Rotate(double angle, double pivotX, double pivotY)
angle
- 回転角度(度単位で測定)。pivotX
- 回転のピボット・ポイントのX座標pivotY
- 回転のピボット・ポイントのY座標public Rotate(double angle, double pivotX, double pivotY, double pivotZ)
angle
- 回転角度(度単位で測定)。pivotX
- 回転のピボット・ポイントのX座標pivotY
- 回転のピボット・ポイントのY座標pivotZ
- 回転のピボット・ポイントのZ座標public Rotate(double angle, double pivotX, double pivotY, double pivotZ, Point3D axis)
angle
- 回転角度(度単位で測定)。pivotX
- 回転のピボット・ポイントのX座標pivotY
- 回転のピボット・ポイントのY座標pivotZ
- 回転のピボット・ポイントのZ座標axis
- 回転の軸public final void setAngle(double value)
public final double getAngle()
public final DoubleProperty angleProperty()
getAngle()
、setAngle(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 final void setAxis(Point3D value)
public final Point3D getAxis()
public final ObjectProperty<Point3D> axisProperty()
getAxis()
、setAxis(Point3D)
public double getMxx()
Transform
public double getMxy()
Transform
public double getMxz()
Transform
public double getTx()
Transform
public double getMyx()
Transform
public double getMyy()
Transform
public double getMyz()
Transform
public double getTy()
Transform
public double getMzx()
Transform
public double getMzy()
Transform
public double getMzz()
Transform
public double getTz()
Transform
public Transform createConcatenation(Transform transform)
Transform
getTransforms()
リストに2つの変換を追加した場合と同じ効果が得られます。1つ目がthis
変換で、2つ目が指定されたtransform
です。createConcatenation
、クラス: Transform
transform
- この変換と連結される変換public Transform createInverse() throws NonInvertibleTransformException
Transform
createInverse
、クラス: Transform
NonInvertibleTransformException
- この変換を反転できない場合public Point2D transform(double x, double y)
Transform
public Point3D transform(double x, double y, double z)
Transform
public Point2D deltaTransform(double x, double y)
Transform
deltaTransform
、クラス: Transform
x
- X軸の方向でのベクトルの大きさy
- Y軸の方向でのベクトルの大きさPoint2D
インスタンスで表される、変換された相対的な大きさベクトルpublic Point3D deltaTransform(double x, double y, double z)
Transform
deltaTransform
、クラス: Transform
x
- X軸の方向でのベクトルの大きさy
- Y軸の方向でのベクトルの大きさPoint3D
インスタンスで表される、変換された相対的な大きさベクトルpublic Point2D inverseTransform(double x, double y)
Transform
inverseTransform
、クラス: Transform
x
- 点のX座標y
- 点のY座標public Point3D inverseTransform(double x, double y, double z)
Transform
inverseTransform
、クラス: Transform
x
- 点のX座標y
- 点のY座標z
- 点のZ座標public Point2D inverseDeltaTransform(double x, double y)
Transform
inverseDeltaTransform
、クラス: Transform
x
- X軸の方向でのベクトルの大きさy
- Y軸の方向でのベクトルの大きさPoint2D
インスタンスで表される、逆変換された相対的な大きさベクトルpublic Point3D inverseDeltaTransform(double x, double y, double z)
Transform
inverseDeltaTransform
、クラス: Transform
x
- X軸の方向でのベクトルの大きさy
- Y軸の方向でのベクトルの大きさPoint3D
インスタンスで表される、逆変換された相対的な大きさベクトルpublic String toString()
Rotate
オブジェクトの文字列表現を返します。protected void transformChanged()
Transform
transformChanged
、クラス: Transform
Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.