Enumerated Data Types

Enumerated data types are used to define a list of possible options that control application processing. They provide an easier and more secure means of ensuring application logic flow than passing around String values. The data types used in the graphical module are defined in Figure 15-20.

The YLabelType enumerated data type defines the list of options that are appropriate for how to position the y-axis label; the ItemDisplayType defines a list of possible options for presenting the data. The actual logic that transforms an eItemAndShadow selection into the appropriate rendering of a bar with a drop shadow is controlled within other methods.

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.