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

SimpleGraph

The SimpleGraph class is used as a container for a report, regardless of the report's style. In this chapter, we will see how a 2D pie chart can be added into and displayed within its boundaries, and in Chapter 17, we will see how a 2D bar chart can be added to it. A SimpleGraph is really used to provide a consistent way of labeling charts and applying common font characteristics to text displayed on a graph. The {constructor} and class fields required to support this functionality are shown in Figure 15-2.

SimpleGraph inherits from the Curl system class BaseFrame, which is the base class for containers that contain one graphical child. We use the {…} rest argument definition in the {constructor} declaration, as this enables it to ...

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