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"
}

produces:

Profile: common

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicangleNumber0.0

Defines the angle of rotation measured in degrees.

publicpivotXNumber0.0

Defines the X coordinate of the rotation pivot point.

publicpivotYNumber0.0

Defines the Y coordinate of the rotation pivot point.

Inherited Variables

javafx.scene.transform.Transform

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription

Inherited Functions

javafx.scene.transform.Transform

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



Spec-Zone.ru - all specs in one place