Skip to Main Content
Enterprise Curl
book

Enterprise Curl

by Paul Sheehan
December 2002
Intermediate to advanced content levelIntermediate to advanced
400 pages
9h 25m
English
Pearson
Content preview from Enterprise Curl

MultiBar

All the code described so far in this chapter is centered on the creation of a class that defines a single bar or data value, so how are all these individual bars consolidated together and displayed in a graph? Well, there are two possible approaches: We can either display each SimpleBar as an individual object on the SimpleGraph container, or we can use the MultiBar class to present like bars together.

The MultiBar class provides functionality to iterate through a number of SimpleBar classes, and make each bar visible against an appropriate axis scale. The code required in the {constructor} for MultiBar is shown in Figure 17-13.

As the MultiBar class will actually render the bars that will be displayed to the user, it inherits from ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Web 2.0 Architectures

Web 2.0 Architectures

James Governor, Dion Hinchcliffe, Duane Nickull
Juniper Networks® Field Guide and Reference

Juniper Networks® Field Guide and Reference

Aviva Garrett, Gary Drenan, Cris Morris, Juniper Networks®

Publisher Resources

ISBN: 0131461222Purchase book