FiveGrade

The FiveGrade UI component implements a continuous grading scale with "anchors" derived from the ITU-R five-grade impairment scale given in Recommendation ITU-R BS.562 as shown below.

   Impairment                     Grade
   Imperceptible                  5.0
   Perceptible, but not annoying  4.0
   Slightly annoying              3.0
   Annoying                       2.0
   Very annoying                  1.0

One decimal place is used. Here is an example of a five-grade bar with range from 1.0 to 5.0 with one decimal and adjectives:

[image of a FiveGrade]

The FiveGrade component is derived from the GradeBar component. It simply defines the the scale from [1.0,5.0] with one decimal and the adjectives. Equivalent component can be done with a GradeBar only. Here is a list of parameters that are used for the five-grade bar:

Parameter Value Description R/O
class guinea.ui.FiveGrade Java class name of five-grade bar. Req.
question text The question shown to subject. Req.
questionfont font name The font used for question text. Opt.
showValue true or false Whether to show the current value to the subject. Default is true. Opt.

Example of defining a FiveGrade component

Here is an example of how to implement the FiveGrade bar shown above:
   # Example of a FiveGrade question component
   q2.class=guinea.ui.FiveGrade
   q2.question=Grade for impairment
   q2.questionfont=Serif-italic-24

Implementing a FiveGrade with a GradeBar

The FiveGrade can be also implemented with the GradeBar only. Here is a sample how to create an equivalent component that was shown above:
   # Example of emulating a FiveGrade with a GradeBar
   q2.class=guinea.ui.GradeBar
   q2.question=Grade for impairment
   q2.questionfont=Serif-italic-24
   q2.minimum=1.0
   q2.maximum=5.0
   q2.decimals=1
   q2.choiceformat=1.0#Very annoying|2.0#Annoying|3.0#Slightly annoying|4.0#Perceptible, but not annoying|5.0#Imperceptible

· UI index · Document index ·

Last modified: Thu Dec 9 19:11:32 EET 1999