📅  最后修改于: 2020-10-14 01:47:30             🧑  作者: Mango
可以将变换定义为图形的形式,性质或外观的变化。在JavaFX中,名为javafx.scene.transform的包表示所有转换。
它包含表中提供的各种类型的转换的类。名为javafx.scene.transform.Transform的类是所有转换类的父类。
SN | Transformation | Description |
---|---|---|
1 | Translation | Translation is used to change the position of the node. The class javafx.scene.transform.Translate represents the translation. |
2 | Rotation | Rotation is used to rotate the object from its origin by a certain angle. The class javafx.scene.transform.Rotate represents the rotation. |
3 | Scaling | Scaling is used to alter the size of the node. The class javafx.scene.transform.Scale represents Scaling. |
4 | Shearing | Shearing is used to alter the slope of the object in a particular direction. The class javafx.scene.transform.Shear represents Shearing. |
在JavaFX中,将转换应用于节点非常简单。我们只需要按照下面给出的步骤进行转换即可。