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.

Figure 15-20. Pie chart module enumerator listing.
{define-enum public YLabelType
    eNone,
    eLeft,
    eRight
}

{define-enum public ItemDisplayType
    eDontShow,
    eShadowOnly,
    eItemOnly,
    eItemAndShadow
}

GraphItem contains a number of constant variables that represent colors, and these will be used in the sub-classes ...

Get Enterprise Curl now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.