Class Overview
Class to hold the timed text's metadata, including:
- The characters for rendering
- The rendering position for the timed text
To render the timed text, applications need to do the following:
Summary
Public Methods |
Rect
|
getBounds()
Get the rectangle area or region for rendering the timed text as specified
by a Rect object.
|
String
|
getText()
Get the characters in the timed text.
|
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
|
Public Methods
public
Rect
getBounds
()
Get the rectangle area or region for rendering the timed text as specified
by a Rect object.
Returns
- the rectangle region to render the characters in the timed text.
If no bounds information is available (a null is returned), render the
timed text at the center bottom of the display.
public
String
getText
()
Get the characters in the timed text.
Returns
- the characters as a String object in the TimedText. Applications
should stop rendering previous timed text at the current rendering region if
a null is returned, until the next non-null timed text is received.