Spec-Zone .ru
спецификации, руководства, описания, API

JavaFX: Bringing Rich Experiences To All the Screens Of Your Life

Profile: desktop, common

Overview

This class represents an Affine object that rotates coordinates around an anchor point. This operation is equivalent to translating the coordinates so that the anchor point is at the origin (S1), then rotating them about the new origin (S2), and finally translating so that the intermediate origin is restored to the coordinates of the original anchor point (S3).

The matrix representing the returned transform is:

              [   cos(theta)    -sin(theta)    x-x*cos+y*sin  ]
              [   sin(theta)     cos(theta)    y-x*sin-y*cos  ]
 

the code:

import javafx.scene.text.*;
    import javafx.scene.transform.*;

    Text {
    transforms: Rotate { angle: 30 }
    x: 10 y: 50
    font: Font { size: 20 }
    content: "This is a test"
    }

Profile: common

Variable Summary

access name type Can Read Can Init Can Write Default Value description
public angle Number 0.0

Defines the angle of rotation measured in degrees.

public pivotX Number 0.0

Defines the X coordinate of the rotation pivot point.

public pivotY Number 0.0

Defines the Y coordinate of the rotation pivot point.

Inherited Variables

javafx.scene.transform.Transform

access name type Can Read Can Init Can Write Default Value description

Inherited Functions

javafx.scene.transform.Transform

public impl_mul(transform: com.sun.javafx.geom.AffineTransform) : Void
Parameters
transform