The parent class of Circle is Shape.
A scene graph is constructed of Nodes.
Classes that inherit from class Node
may be put into the scene graph.
A Shape object represents a 2D shape.
When a Shape object is part of a scene graph,
and that graph is part of a Scene,
and that Scene has been put on Stage,
then the 2D shape is drawn.
A program can construct a scene graph but not have it displayed.
A Shape is a kind of Node
which is a kind of Object.
The picture (above) shows this.
There are classes of Shapes not shown in the diagram:
Arc, Ellipse, Path, Polygon,
Polyline, and Text.
This chapter discusses some of them.
A Parent is another type of Node.
This will be discussed later.
Another way to show a class hierarchy is with indented names. (This list shows classes not in the picture.)
Object
Node
Shape
Arc
Circle
Ellipse
Line
Path
Polygon
Polyline
Rectangle
Text
Parent
Group
Region
Control
. . .
Pane
HBox
VBox
StackPane
. . .
There are many types of Control (indicated by . . .)
and several other types of Pane.
Some of these will be discussed in future pages.
Can an Ellipse object be put into a scene graph?
(Check the indented list.)