private class FirstBest.ButtonActions extends Object implements android.view.View.OnClickListener, android.widget.SeekBar.OnSeekBarChangeListener
Modifier | Constructor and Description |
---|---|
private |
ButtonActions() |
Modifier and Type | Method and Description |
---|---|
void |
onClick(android.view.View v)
Once the user chooses to start the algorithm, we let he/she choose the color to paint
the final path.
|
void |
onProgressChanged(android.widget.SeekBar seekBar,
int progress,
boolean fromUser)
Refresh rate from the time configured to the movement of the character, controlled
by the thread.
|
void |
onStartTrackingTouch(android.widget.SeekBar seekBar)
Code not used but still needed to be instantiated for the thread to work properly.
|
void |
onStopTrackingTouch(android.widget.SeekBar seekBar)
Code not used but still needed to be instantiated for the thread to work properly.
|
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
v
- The view of the button tapped.public void onProgressChanged(android.widget.SeekBar seekBar, int progress, boolean fromUser)
onProgressChanged
in interface android.widget.SeekBar.OnSeekBarChangeListener
seekBar
- The speed controller.progress
- The progress of the thread itself.fromUser
- Boolean variable from the action of the user.public void onStartTrackingTouch(android.widget.SeekBar seekBar)
onStartTrackingTouch
in interface android.widget.SeekBar.OnSeekBarChangeListener
seekBar
- public void onStopTrackingTouch(android.widget.SeekBar seekBar)
onStopTrackingTouch
in interface android.widget.SeekBar.OnSeekBarChangeListener
seekBar
-