December 2002
Intermediate to advanced
400 pages
9h 25m
English
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.
{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 ...