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

Profile: desktop, common

Overview

Provides a simple rotation effect that can be used to transform a node around its vertical axis by a specific angle.

This makes use of a PerspectiveTransform, so it has the same limitation that mouse events will not be mapped to the new coordinates.

the code:

ImageView {
    effect: RotationEffect {
        x: 0
        y: 60
        width: 300
        height: 150
        topRadius: 60
        bottomRadius: 30
        angle: 45
    }
    image: Image {
        url: "{__DIR__}BakuretsuTenshi.jpg"
    }
}

produces:

Variable Summary

accessnametypeCan ReadCan InitCan WriteDefault Valuedescription
publicangleNumber

Angle of rotation around the y-axis.

publicbottomRadiusNumber

Radius of the circle of rotation for the bottom of the node.

publicheightNumber

height of the destination transformation (does not have to match the source node).

publictopRadiusNumber

Radius of the circle of rotation for the top of the node.

publicwidthNumber

width of the destination transformation (does not have to match the source node).

publicxNumber

x offset of the transformation.

publicyNumber

y offset of the transformation.

Inherited Variables

Inherited Functions