Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, tutorials, and more.

GraphItem

The GraphItem class is used as the ancestor for all implementations of graphs that will be displayed in the SimpleGraph container. It contains a number of constants, getters, and setters, as well as abstract methods that will be implemented in descendent sub-classes, for example, the PieChart class that will be discussed later in this chapter. The constructor and class field code required in GraphItem are shown in Figure 15-21.