Package javafx.scene.transform
Class Rotate
java.lang.Object
javafx.scene.transform.Transform
javafx.scene.transform.Rotate
- All Implemented Interfaces:
HasAngleProperty,HasPivotXProperty,HasPivotYProperty
- Author:
- Bruno Salmon
-
Property Summary
PropertiesTypePropertyDescriptionfinal ObjectProperty<Point3D>Defines the axis of rotation at the pivot point. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectProperty<Point3D>Defines the axis of rotation at the pivot point.protected AffineReturns the inverse transform of this transform.final Point3DgetAxis()Gets the value of theaxisproperty.doublegetMxx()doublegetMxy()doublegetMyx()doublegetMyy()doublegetTx()doublegetTy()final voidSets the value of theaxisproperty.transform(double x, double y) Transforms the specified point by this transform.Methods inherited from class javafx.scene.transform.Transform
inverseTransform, inverseTransform, toAffine, transform, transformChangedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasAngleProperty
getAngle, setAngleMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasPivotXProperty
getPivotX, setPivotXMethods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasPivotYProperty
getPivotY, setPivotY
-
Property Details
-
angle
- Specified by:
anglePropertyin interfaceHasAngleProperty- Returns:
- the
angleproperty - See Also:
-
axis
Defines the axis of rotation at the pivot point.- See Also:
-
pivotX
- Specified by:
pivotXPropertyin interfaceHasPivotXProperty- Returns:
- the
pivotXproperty - See Also:
-
pivotY
- Specified by:
pivotYPropertyin interfaceHasPivotYProperty- Returns:
- the
pivotYproperty - See Also:
-
-
Field Details
-
X_AXIS
Specifies the X-axis as the axis of rotation. -
Y_AXIS
Specifies the Y-axis as the axis of rotation. -
Z_AXIS
Specifies the Z-axis as the axis of rotation.
-
-
Constructor Details
-
Rotate
public Rotate()Creates a default Rotate transform (identity). -
Rotate
public Rotate(double angle) Creates a two-dimensional Rotate transform. The pivot point is set to (0,0)- Parameters:
angle- the angle of rotation measured in degrees
-
Rotate
Creates a three-dimensional Rotate transform. The pivot point is set to (0,0,0)- Parameters:
angle- the angle of rotation measured in degreesaxis- the axis of rotation
-
Rotate
public Rotate(double angle, double pivotX, double pivotY) Creates a two-dimensional Rotate transform with pivot.- Parameters:
angle- the angle of rotation measured in degreespivotX- the X coordinate of the rotation pivot pointpivotY- the Y coordinate of the rotation pivot point
-
-
Method Details
-
angleProperty
- Specified by:
anglePropertyin interfaceHasAngleProperty- Returns:
- the
angleproperty - See Also:
-
setAxis
Sets the value of theaxisproperty.- Property description:
- Defines the axis of rotation at the pivot point.
- Parameters:
value- the value for theaxisproperty- See Also:
-
getAxis
Gets the value of theaxisproperty.- Property description:
- Defines the axis of rotation at the pivot point.
- Returns:
- the value of the
axisproperty - See Also:
-
axisProperty
Defines the axis of rotation at the pivot point.- Returns:
- the
axisproperty - See Also:
-
transform
Description copied from class:TransformTransforms the specified point by this transform. This method can be used only for 2D transforms. -
createInverse
Description copied from class:TransformReturns the inverse transform of this transform.- Specified by:
createInversein classTransform- Returns:
- the inverse transform
-
createAffine
- Specified by:
createAffinein classTransform
-
getMxx
public double getMxx() -
getMxy
public double getMxy() -
getMyx
public double getMyx() -
getMyy
public double getMyy() -
getTx
public double getTx() -
getTy
public double getTy() -
pivotXProperty
- Specified by:
pivotXPropertyin interfaceHasPivotXProperty- Returns:
- the
pivotXproperty - See Also:
-
pivotYProperty
- Specified by:
pivotYPropertyin interfaceHasPivotYProperty- Returns:
- the
pivotYproperty - See Also:
-