|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectdanger.app.Listener
danger.ui.View
danger.ui.AudioRecordTimeIndicator
public class AudioRecordTimeIndicator
View used to display the elapsed time during audio recording.
It is general enough to be used to display time for other purposes.
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
AudioRecordTimeIndicator()
Create an instance of this view. |
|
| Method Summary | |
|---|---|
void |
onDecoded()
This method is called when this view has been completely decoded from a dialog or screen resource. |
void |
paint(Pen pen)
Draw the contents of this View. |
void |
setTime(int milliseconds)
Set the time to display. |
| Methods inherited from class danger.app.Listener |
|---|
cancelEvents, childEventPump, childEventPumpDone, eventProblem, isDispatchingThread, receiveEvent, sendEvent, sendEvent, sendEvent, sendEvent, sendEvent, sendLowPriorityEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AudioRecordTimeIndicator()
| Method Detail |
|---|
public void onDecoded()
View
onDecoded in class Viewpublic final void setTime(int milliseconds)
Set the time to display.
milliseconds - the time, in milliseconds. The time is displayed
in hours:minutes:seconds format. There is no notion of date or am/pm.public void paint(Pen pen)
ViewThe implementation of this method in this class will merely call
clear() pen, if this View is opaque (not transparent),
and will do nothing otherwise. If you don't need this behavior, then
there is no point in calling super.paint() in an
overriding method.
paint in class Viewpen - non-null; the pen to use for drawing operations
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||