Using Special Classes that Group Properties for Graph Components

Several properties that can apply to a number of graph components are collected into special classes. These classes are the GraphFont class, the SFX class, and the ThreeDViewMatrix class. The GraphFont class has font properties, such as font color or font size, and these properties can apply to any graph component that displays text. Each graph component has get and set methods to access the object that stores these property values. For example, the GraphTitle has a getGraphFont method, which retrieves the GraphFont object for the GraphTitle.

To access the properties in the special classes, you call the get method of the class that you want to format, to get the special class. Then you call the set method for the property in the special class. For example, you call getGraphFont on the GraphTitle, and then, on the returned GraphFont object, you call setGraphFontColor to set the color.