Classes | |
class | RenderThread |
Public Member Functions | |
void | setRendererAllFieldsState () |
void | setRendererFieldFocusState (String field) |
void | setRendererGraphState (String field) |
void | surfaceChanged (SurfaceHolder holder, int format, int width, int height) |
void | surfaceCreated (SurfaceHolder holder) |
void | surfaceDestroyed (SurfaceHolder holder) |
TopicRenderer (Context context, TopicManager topicManager) | |
Private Member Functions | |
void | doLayout () |
synchronized void | repaint () |
Private Attributes | |
SurfaceHolder | mHolder |
final FrameLayout | mLayout |
RenderThread | mRenderThread |
int | mSurfaceHeight |
int | mSurfaceWidth |
final TopicManager | mTopicManager |
final TopicView | mTopicView |
Static Private Attributes | |
static final long | FRAME_TIME_MILLIS = TimeUnit.SECONDS.toMillis(1) / REFRESH_RATE_FPS |
static final int | REFRESH_RATE_FPS = 30 |
static final String | TAG = TopicRenderer.class.getSimpleName() |
The surface callback that provides the rendering logic for topic live card.
Definition at line 53 of file TopicRenderer.java.
edu.nimbus.glass.TopicRenderer.TopicRenderer | ( | Context | context, |
TopicManager | topicManager | ||
) | [inline] |
Creates new renderer.
Definition at line 77 of file TopicRenderer.java.
void edu.nimbus.glass.TopicRenderer.doLayout | ( | ) | [inline, private] |
Requests that the views redo their layout. This must be called manually every time the tips view's text is updated because this layout doesn't exist in a GUI thread where those requests will be enqueued automatically.
Definition at line 131 of file TopicRenderer.java.
synchronized void edu.nimbus.glass.TopicRenderer.repaint | ( | ) | [inline, private] |
Repaints the view
Definition at line 146 of file TopicRenderer.java.
void edu.nimbus.glass.TopicRenderer.setRendererAllFieldsState | ( | ) | [inline] |
Definition at line 92 of file TopicRenderer.java.
void edu.nimbus.glass.TopicRenderer.setRendererFieldFocusState | ( | String | field | ) | [inline] |
Definition at line 100 of file TopicRenderer.java.
void edu.nimbus.glass.TopicRenderer.setRendererGraphState | ( | String | field | ) | [inline] |
Definition at line 96 of file TopicRenderer.java.
void edu.nimbus.glass.TopicRenderer.surfaceChanged | ( | SurfaceHolder | holder, |
int | format, | ||
int | width, | ||
int | height | ||
) | [inline] |
Definition at line 105 of file TopicRenderer.java.
void edu.nimbus.glass.TopicRenderer.surfaceCreated | ( | SurfaceHolder | holder | ) | [inline] |
Definition at line 112 of file TopicRenderer.java.
void edu.nimbus.glass.TopicRenderer.surfaceDestroyed | ( | SurfaceHolder | holder | ) | [inline] |
Definition at line 121 of file TopicRenderer.java.
final long edu.nimbus.glass.TopicRenderer.FRAME_TIME_MILLIS = TimeUnit.SECONDS.toMillis(1) / REFRESH_RATE_FPS [static, private] |
The duration, in milliseconds, of one frame.
Definition at line 63 of file TopicRenderer.java.
SurfaceHolder edu.nimbus.glass.TopicRenderer.mHolder [private] |
Definition at line 65 of file TopicRenderer.java.
final FrameLayout edu.nimbus.glass.TopicRenderer.mLayout [private] |
Definition at line 70 of file TopicRenderer.java.
Definition at line 66 of file TopicRenderer.java.
int edu.nimbus.glass.TopicRenderer.mSurfaceHeight [private] |
Definition at line 68 of file TopicRenderer.java.
int edu.nimbus.glass.TopicRenderer.mSurfaceWidth [private] |
Definition at line 67 of file TopicRenderer.java.
final TopicManager edu.nimbus.glass.TopicRenderer.mTopicManager [private] |
Definition at line 72 of file TopicRenderer.java.
final TopicView edu.nimbus.glass.TopicRenderer.mTopicView [private] |
Definition at line 71 of file TopicRenderer.java.
final int edu.nimbus.glass.TopicRenderer.REFRESH_RATE_FPS = 30 [static, private] |
The refresh rate, in frames per second.
Definition at line 60 of file TopicRenderer.java.
final String edu.nimbus.glass.TopicRenderer.TAG = TopicRenderer.class.getSimpleName() [static, private] |
Definition at line 55 of file TopicRenderer.java.