All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class guinea.ui.VolumeGradeBar

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----guinea.ui.GradeBar
                           |
                           +----guinea.ui.VolumeGradeBar

public class VolumeGradeBar
extends GradeBar
The VolumeGradeBar is an extension to the normal grader bar which given numbers as answers. This version gives Volume objects as answers by converting graderbar's numeric answers to Volume type.


Variable Index

· scale
The volume scale type to use.

Constructor Index

· VolumeGradeBar()

Method Index

· getAnswer_internal()
Convert the Number value the GradeBar normally uses to a Volume object in selected volume scale type.
· propertyLoad(Properties, String)
· setAnswer(Object)
Set answer of question.

Variables

· scale
 public int scale
The volume scale type to use. Default is VOLUME_DECIBEL.

See Also:
Volume

Constructors

· VolumeGradeBar
 public VolumeGradeBar()

Methods

· getAnswer_internal
 protected Object getAnswer_internal()
Convert the Number value the GradeBar normally uses to a Volume object in selected volume scale type.

Returns:
A volume object.
Overrides:
getAnswer_internal in class GradeBar
See Also:
scale, Volume
· setAnswer
 public void setAnswer(Object answer)
Set answer of question. If the answer is a Volume object, it is converted to a Number using the selected scale.

Parameters:
answer - The answer as a guinea.player.Volume. A java.lang.Number and a null are also possible.
Overrides:
setAnswer in class GradeBar
See Also:
scale
· propertyLoad
 public void propertyLoad(Properties p,
                          String name) throws IllegalArgumentException
Overrides:
propertyLoad in class GradeBar

All Packages  Class Hierarchy  This Package  Previous  Next  Index