Classes | Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
edu.nimbus.glass.TopicRenderer Class Reference

List of all members.

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()

Detailed Description

The surface callback that provides the rendering logic for topic live card.

Definition at line 53 of file TopicRenderer.java.


Constructor & Destructor Documentation

edu.nimbus.glass.TopicRenderer.TopicRenderer ( Context  context,
TopicManager  topicManager 
) [inline]

Creates new renderer.

Definition at line 77 of file TopicRenderer.java.


Member Function Documentation

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.

Definition at line 92 of file TopicRenderer.java.

Definition at line 100 of file TopicRenderer.java.

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.


Member Data Documentation

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.

Definition at line 68 of file TopicRenderer.java.

Definition at line 67 of file TopicRenderer.java.

Definition at line 72 of file TopicRenderer.java.

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.


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


ros_glass_tools
Author(s):
autogenerated on Thu Aug 27 2015 14:47:21