Prism 6.0 User's Guide

Using the Customize Utility

Many aspects of Prism's behavior and appearance--for example, the colors it displays on color workstations, and the fonts it uses for text--are controlled by the settings of Prism resources. The default settings for many of these resources appear in the file Prism in the X11 app-defaults directory for your system. Your system administrator can change these system-wide defaults. You can override these defaults in two ways:

Choosing Customize from the Utilities menu displays the window shown in Figure 10-3.

Figure 10-3 Customize Window

Graphic

How to Change a Setting

On the left of the Customize window are the names of the resources. Next to each resource is a text-entry box that contains the resource's setting (if any). To the right of the fields are Help buttons. Clicking on a Help button or anywhere in the text-entry field displays help about the associated resource in the box at the top of the window.

The way you set a value for a resource differs depending on the resource:

Whenever you make a change in a text-entry box, Apply and Cancel buttons appear to the right of it. Click on Apply to save the new setting; it takes effect immediately. Click on Cancel to cancel it; the setting changes back to its previous value.

Click on Close or press the Esc key to close the Customize window.

Resources

You can customize the X Window System resources that Prism (and other X applications) uses.

The file must be in ASCII format. Each line of the file must contain three integers between 0 and 255 that specify the red, green, and blue components of a color.

The first line of the visualizer color file contains the color that is to be displayed for values that fall below the minimum you specify in creating the visualizer. The next-to-last line contains the color for values that exceed the maximum. The last line contains the color used to display the values of elements that are not in the context specified by the user in a where statement. Prism uses the colors in between to display the values falling between the minimum and the maximum. See Table 10-1 for an example.

Table 10-1 Sample Visualizer Colors

Red 

Green 

Blue 

255 

255 

255 

255 

255 

255 

255 

255 

255 

255 

255 

255 

100 

100 

100 

Like the default settings, this file specifies black for values below the minimum, white for values above the maximum, and gray for values outside the context. But the file reverses the default spectral map for other values: from lowest to highest, values are mapped red-yellow-green-cyan-blue-magenta.

Where Prism Stores Your Changes

Prism maintains a file called .prism_defaults in your home directory. In it, Prism keeps:

Do not attempt to edit this file; make all changes to it through Prism itself. If you remove this file, you get the default configuration the next time you start Prism.