O'Reilly logo

Enterprise Curl by Paul Sheehan

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.

Start Free Trial

No credit card required

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 ...

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

Start Free Trial

No credit card required