All Packages Class Hierarchy This Package Previous Next Index
Class guinea.ui.GradeBar
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----guinea.ui.BaseGrader
|
+----guinea.ui.GradeBar
- public class GradeBar
- extends BaseGrader
- implements AdjustmentListener, QuestionInterface, ControlInterface, PropertyLoader, Serializable
GradeBar is a UI component with a continuous scale. The grading
slider is implemented with Java's Scrollbar component. The
minimum and maximum values of the grade can be specified as well
as number of decimal places and possible "anchors".
Variable Index
- ·
scrollBar
- The Scrollbar object for giving grade.
Constructor Index
- ·
GradeBar()
- Create a new grade bar with default grade parameters and no
question.
- ·
GradeBar(double, double, int)
- Create a new grade bar with given parameters.
- ·
GradeBar(double, double, int, String)
- Create a new grade bar with given parameters.
- ·
GradeBar(String)
- Create a new grade bar with default grade parameters.
Method Index
- ·
getAdjustable()
-
- ·
getAdjustable(Component)
-
- ·
getAdjustableComponent()
-
- ·
setAdjustableValues(int)
- Update values for the adjustable component.
Variables
·
scrollBar
protected Scrollbar scrollBar
- The Scrollbar object for giving grade.
Constructors
·
GradeBar
public GradeBar()
- Create a new grade bar with default grade parameters and no
question.
·
GradeBar
public GradeBar(String qtext)
- Create a new grade bar with default grade parameters.
- Parameters:
- qtext - Text of question.
·
GradeBar
public GradeBar(double minVal,
double maxVal,
int decimals)
- Create a new grade bar with given parameters.
- Parameters:
- minVal - minimum value of grade.
- maxVal - maximum value of grade.
- decimals - number of decimals.
·
GradeBar
public GradeBar(double minVal,
double maxVal,
int decimals,
String qtext)
- Create a new grade bar with given parameters.
- Parameters:
- minVal - minimum value of grade.
- maxVal - maximum value of grade.
- decimals - number of decimals.
- qtext - text of question.
Methods
·
getAdjustableComponent
public Component getAdjustableComponent()
- Overrides:
- getAdjustableComponent in class BaseGrader
·
getAdjustable
public Adjustable getAdjustable(Component c)
- Overrides:
- getAdjustable in class BaseGrader
·
getAdjustable
public Adjustable getAdjustable()
- Overrides:
- getAdjustable in class BaseGrader
·
setAdjustableValues
protected void setAdjustableValues(int value)
- Update values for the adjustable component.
- Overrides:
- setAdjustableValues in class BaseGrader
All Packages Class Hierarchy This Package Previous Next Index