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
TypePropertyDescriptionfinal ObjectProperty<Point3D>
Defines the axis of rotation at the pivot point. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ObjectProperty<Point3D>
Defines the axis of rotation at the pivot point.protected Affine
Returns the inverse transform of this transform.final Point3D
getAxis()
Gets the value of theaxis
property.double
getMxx()
double
getMxy()
double
getMyx()
double
getMyy()
double
getTx()
double
getTy()
final void
Sets the value of theaxis
property.transform
(double x, double y) Transforms the specified point by this transform.Methods inherited from class javafx.scene.transform.Transform
inverseTransform, inverseTransform, toAffine, transform, transformChanged
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasAngleProperty
getAngle, setAngle
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasPivotXProperty
getPivotX, setPivotX
Methods inherited from interface dev.webfx.kit.mapper.peers.javafxgraphics.markers.HasPivotYProperty
getPivotY, setPivotY
-
Property Details
-
angle
- Specified by:
angleProperty
in interfaceHasAngleProperty
- Returns:
- the
angle
property - See Also:
-
axis
Defines the axis of rotation at the pivot point.- See Also:
-
pivotX
- Specified by:
pivotXProperty
in interfaceHasPivotXProperty
- Returns:
- the
pivotX
property - See Also:
-
pivotY
- Specified by:
pivotYProperty
in interfaceHasPivotYProperty
- Returns:
- the
pivotY
property - 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:
angleProperty
in interfaceHasAngleProperty
- Returns:
- the
angle
property - See Also:
-
setAxis
Sets the value of theaxis
property.- Property description:
- Defines the axis of rotation at the pivot point.
- Parameters:
value
- the value for theaxis
property- See Also:
-
getAxis
Gets the value of theaxis
property.- Property description:
- Defines the axis of rotation at the pivot point.
- Returns:
- the value of the
axis
property - See Also:
-
axisProperty
Defines the axis of rotation at the pivot point.- Returns:
- the
axis
property - See Also:
-
transform
Description copied from class:Transform
Transforms the specified point by this transform. This method can be used only for 2D transforms. -
createInverse
Description copied from class:Transform
Returns the inverse transform of this transform.- Specified by:
createInverse
in classTransform
- Returns:
- the inverse transform
-
createAffine
- Specified by:
createAffine
in 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:
pivotXProperty
in interfaceHasPivotXProperty
- Returns:
- the
pivotX
property - See Also:
-
pivotYProperty
- Specified by:
pivotYProperty
in interfaceHasPivotYProperty
- Returns:
- the
pivotY
property - See Also:
-