App

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | List of all members
mhr.appandroid.views.LabelledSeekBar.LinearTranslator Class Reference
Inheritance diagram for mhr.appandroid.views.LabelledSeekBar.LinearTranslator:

## Public Member Functions
| LinearTranslator ()
float | getValue ()
void | setValue (float v)

## Detailed Description

Definition at line 27 of file LabelledSeekBar.java.

## Constructor & Destructor Documentation

mhr.appandroid.views.LabelledSeekBar.LinearTranslator.LinearTranslator | ( |  | ) |
| inline

Definition at line 30 of file LabelledSeekBar.java.

{
factor = (max - min) / count;
}

## Member Function Documentation

float mhr.appandroid.views.LabelledSeekBar.LinearTranslator.getValue | ( |  | ) |
| inline

Implements mhr.appandroid.views.LabelledSeekBar.SBValueTranslator.

Definition at line 35 of file LabelledSeekBar.java.

{
return valueSB.getProgress() * factor + min;
}

void mhr.appandroid.views.LabelledSeekBar.LinearTranslator.setValue | ( | float | v | ) |
| inline

Implements mhr.appandroid.views.LabelledSeekBar.SBValueTranslator.

Definition at line 40 of file LabelledSeekBar.java.

{
valueSB.setProgress(Math.round((v - min) / factor));
}

The documentation for this class was generated from the following file:

- /home/xxx/eclipse_workspaces/app/appandroid/src/mhr/appandroid/views/LabelledSeekBar.java