Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes
edu.nimbus.glass.TopicView Class Reference
Inheritance diagram for edu.nimbus.glass.TopicView:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void setTopicManager (TopicManager tManager)
void switchScreen (Screen newScreen)
 TopicView (Context context)
 TopicView (Context context, AttributeSet attrs)
 TopicView (Context context, AttributeSet attrs, int defStyle)

Protected Member Functions

void onDraw (Canvas canvas)

Private Member Functions

void animateTo (float end)
void setupAnimator ()

Private Attributes

Screen currentScreen
float mAnimatedHeading
final ValueAnimator mAnimator
float mHeading
final TextPaint mTopicPaint
TopicManager topicManager

Static Private Attributes

static final float MIN_DISTANCE_TO_ANIMATE = 15.0f

Detailed Description

TopicView

Definition at line 57 of file TopicView.java.


Constructor & Destructor Documentation

edu.nimbus.glass.TopicView.TopicView ( Context  context) [inline]

Definition at line 84 of file TopicView.java.

edu.nimbus.glass.TopicView.TopicView ( Context  context,
AttributeSet  attrs 
) [inline]

Definition at line 88 of file TopicView.java.

edu.nimbus.glass.TopicView.TopicView ( Context  context,
AttributeSet  attrs,
int  defStyle 
) [inline]

Definition at line 92 of file TopicView.java.


Member Function Documentation

void edu.nimbus.glass.TopicView.animateTo ( float  end) [inline, private]

Animates the stuff.

Parameters:
endthe desired heading

Definition at line 169 of file TopicView.java.

void edu.nimbus.glass.TopicView.onDraw ( Canvas  canvas) [inline, protected]

Definition at line 125 of file TopicView.java.

Sets the instance of} that this view will use to get the current heading and location.

Parameters:
orientationManagerthe instance of
 OrientationManager 
that this view will use

Definition at line 119 of file TopicView.java.

void edu.nimbus.glass.TopicView.setupAnimator ( ) [inline, private]

when the distance between two sensor events is large.

Definition at line 135 of file TopicView.java.

void edu.nimbus.glass.TopicView.switchScreen ( Screen  newScreen) [inline]

Definition at line 200 of file TopicView.java.


Member Data Documentation

Definition at line 82 of file TopicView.java.

Represents the heading that is currently being displayed when the view is drawn. This is used during animations, to keep track of the heading that should be drawn on the current frame, which may be different than the desired end point.

Definition at line 75 of file TopicView.java.

final ValueAnimator edu.nimbus.glass.TopicView.mAnimator [private]

Definition at line 80 of file TopicView.java.

The actual heading that represents the direction that the user is facing.

Definition at line 68 of file TopicView.java.

final float edu.nimbus.glass.TopicView.MIN_DISTANCE_TO_ANIMATE = 15.0f [static, private]

Various dimensions and other drawing-related constants. If the difference between two consecutive headings is less than this value, the canvas will be redrawn immediately rather than animated.

Definition at line 65 of file TopicView.java.

final TextPaint edu.nimbus.glass.TopicView.mTopicPaint [private]

Definition at line 79 of file TopicView.java.

Definition at line 77 of file TopicView.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