JavaFX CylinderIn general, a cylinder can be defined as a three dimensional solid object having two parallel circular basis connected by a curved surface. There are the two main parameters that describe a cylinder, namely height of the curved surface and the radius of the circular base. The radius and the height of a cylinder are shown in the following image. In JavaFX, the class javafx.scene.shape.Cylinder represents a cylinder. We just need to instantiate this class in order to create a cylinder. PropertiesThe properties of the class along with the setter methods are described in the following table.
ConstructorsThere are the three constructors in the class.
ExampleNext TopicJavaFX Sphere |