1. A method for displaying data for selection by a user, comprising steps of:
providing a plurality of name pairs, each of the name pairs comprising a name key and an associated name value;
providing a plurality of string pairs, each of the string pairs comprising a string key and an associated string value;
providing a plurality of key pairs, each of the key pairs comprising a first key and a second key, each of the first keys pointing to one of the name keys and each of the second keys pointing to one of the string keys, such that the name value associated with the pointed-to name key is thus associated with the sting value associated with the pointed-to string key; and
accessing the string value associated with a selected name value by using a particular one of the key pairs, wherein the first key in the particular one of the key pairs points to the name key with which the selected name value is associated and the second key in the particular one of the key pairs points to the string key with which the string value to be accessed is associated.
2. The method according to claim 1, wherein the plurality of name pairs and the plurality of string pairs are stored as a resource bundle.
3. The method according to claim 2, wherein the resource bundle is a Java ListResourceBundle.
4. The method according to claim 1, wherein the accessing step further comprises the steps of:
displaying a user interface having a first interactive panel and a second interactive panel;
displaying within the first interactive panel, for selection by a user, at least a portion of the name values;
responsive to selection of the selected name value from the displayed portion, introspecting through the plurality of key pairs to locate the string value to be accessed; and
displaying the located string value within the second interactive panel of the user interface.
5. The method according to claim 4, wherein the selected name value is displayed as a graphical icon.
6. The method according to claim 4, wherein the selected name value is displayed as a text string.
7. The method according to claim 4, wherein the displayed portion is displayed as an ordered list.
8. The method according to claim 7, wherein the ordered list is an outline.
9. The method according to claim 7, wherein the ordered list is an ordered tree.
10. The method according to claim 4, wherein the located string value is a text string.
11. The method according to claim 1, wherein each of the first keys is identical to its pointed-to name key and each of the second keys is identical to its pointed-to string key.
12. A method for displaying textual help information through a graphical user interface (\u201cGUI\u201d) to a user, comprising steps of:
providing a data structure comprising (i) a first array containing topic pairs, each of the topic pairs comprising a topic key and an associated topic text string and (ii) a second array containing text pairs, each of the text pairs comprising a text key and an associated text string;
providing a plurality of key pairs, each of the key pairs comprising a first key and a second key, each of the first keys pointing to one of the topic keys and each of the second keys pointing to one of the text keys, such that the topic text string associated with the pointed-to topic key is thus associated with the text string associated with the pointed-to text key;
displaying through the GUI a window having a first interactive panel and a second interactive panel;
displaying within the first interactive panel, for selection by the user, at least a portion of the topic text strings;
responsive to selection of a particular topic text string from the displayed portion, introspecting through the plurality of key pairs to locate the text string associated with the selected topic text string; and
displaying the located text string within the second interactive panel.
13. The method according to claim 12, wherein the data structure is a Java ListResourceBundle.
14. A computer program product for accessing textual data, the computer program product embodied on one or more computer-readable media and comprising:
computer-readable program code means for encapsulating a data structure comprising (i) a set of topic pairs, each of the topic pairs comprising a topic key and an associated topic text string and (ii) a set of text pairs, each of the text pairs comprising a text key and an associated text string;
computer-readable program code means for providing a set of key pairs, each of the key pairs comprising a first key and a second key, each of the first keys pointing to one of the topic keys and each of the second keys pointing to one of the text keys, such that the topic text string associated with the pointed-to topic key is thus associated with the text string associated with the pointed-to text key;
computer-readable program code means for retrieving the set of key pairs through introspection;
computer-readable program code means for displaying a user interface having a first interactive panel and a second interactive panel;
computer-readable program code means for displaying within the first interactive panel, for selection by a user, at least a portion of the topic text strings;
computer-readable program code means, responsive to selection of a particular one of the displayed topic text strings by the user, for locating the text string associated therewith using the retrieved set of key pairs; and
computer-readable program code means for displaying the located text string within the second interactive panel.
15. The computer program product according to claim 14, wherein the data structure is a Java ListResourceBundle.
16. A system for displaying data for selection by a user, comprising:
means for providing a data structure comprising (i) a set of topic pairs, each of the topic pairs comprising a topic key and an associated topic text string and (ii) a set of text pairs, each of the text pairs comprising a text key and an associated text string;
means for providing a set of key pairs, each of the key pairs comprising a first key and a second key, each of the first keys pointing to one of the topic keys and each of the second keys pointing to one of the text keys, such that the topic text string associated with the pointed-to topic key is thus associated with the text string associated with the pointed-to text key;
means for displaying a user interface having a first interactive panel and a second interactive panel;
means for displaying within the first interactive panel, for selection by a user, at least a portion of the topic text strings;
responsive to selection of a particular one of the displayed topic text strings by the user, means for introspecting through the set of key pairs to locate the text string associated therewith; and
means for displaying the located text string within the second interactive panel.
17. The system according to claim 16, wherein the selected particular one is displayed as a graphical icon.
18. The system according to claim 16, wherein the selected particular one is displayed as a text string.
19. The system according to claim 16, wherein the displayed portion is displayed as one of (1) an ordered list or (2) an ordered tree.
20. The system according to claim 19, wherein the ordered list is an outline.
21. The system according to claim 16, wherein the located text string is a help text string.
22. The system according to claim 16, wherein the data structure is a Java ListResourceBundle.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. An X-ray analyzing apparatus which comprises:
a detector to generate pulses of a pulse height, corresponding to an energy of X-rays incident thereupon, in a number corresponding to an intensity of the X-rays;
a high speed analog-to-digital converter to digitize the pulses generated by the detector;
a counting unit to calculate the intensity of the X-rays on the basis of an energy spectrum representing a distribution of counting rates relative to the pulse heights, which is obtained by determining the counting rates of pulses from the high speed analog-to-digital converter, which are classified for a plurality of continuous pulse height ranges; and
a peak position stabilizing unit to stabilize a peak position in the energy spectrum with respect to the pulses from the high speed analog-to-digital converter;
in which the peak position stabilizing unit comprises:
an input pulse multiplier to which the pulses from the high speed analog-to-digital converter are inputted, the input pulse multiplier providing an output by changing a gain;
a first correcting unit to estimate the peak position in the energy spectrum on the basis of a whole sum of the counting rates determined by the counting unit and then to output an initial value, which is a gain value required to render the peak position, so estimated, to coincide with a reference position;
a second correcting unit to detect the peak position in the energy spectrum, obtained in the counting unit, within a predetermined energy range containing the reference position, and to output a dynamic gain correction value, which is a gain value required to render the peak position, so detected, to coincide with the reference position; and
a gain adder to which the initial value and the dynamic gain correction value are inputted, the gain adder to add the both together and then to output them to the input pulse multiplier.
2. The X-ray analyzing apparatus as claimed in claim 1, in which the peak position stabilizing unit comprises:
a zero position correcting unit to detect a zero peak position, at which no event level frequency peak within a predetermined energy range containing a zero reference position corresponding to a zero pulse height in the energy spectrum obtained in the counting unit and to output a zero position gain value required to render the zero peak position, so detected, to coincide with the zero reference position; and
a zero position adder disposed between the high speed analog-to-digital converter and the input pulse multiplier and to which the pulses from the high speed analog-to-digital converter and the zero position gain value are inputted, the zero position adder operable to add the zero position gain value to the pulses from the high speed analog-to-digital converter and then to output it to the input pulse multiplier.
3. The X-ray analyzing apparatus as claimed in claim 1, in which the detector is a gas flow proportional counter and in which the peak position stabilizing unit comprises:
a temperature sensor to measure a temperature of the detector andor a pressure sensor to measure a gas pressure of the detector;
a gas density correcting unit to estimate the peak position in the energy spectrum on the basis of the temperature measured by the temperature sensor, andor the pressure measured by the pressure sensor and then to output a gas density gain coefficient required to render the peak position, so estimated, to coincide with the reference position; and
an initial value multiplier disposed between the first correcting unit and the gain adder and to which the initial value and the gas density gain coefficient are inputted, the initial value multiplier operable to multiply the initial value by the gas density gain coefficient and then to output it to the gain adder.