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 |
Definition at line 57 of file TopicView.java.
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.
void edu.nimbus.glass.TopicView.animateTo | ( | float | end | ) | [inline, private] |
Animates the stuff.
end | the 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.
void edu.nimbus.glass.TopicView.setTopicManager | ( | TopicManager | tManager | ) | [inline] |
Sets the instance of} that this view will use to get the current heading and location.
orientationManager | the instance of OrientationManager |
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.
Definition at line 82 of file TopicView.java.
float edu.nimbus.glass.TopicView.mAnimatedHeading [private] |
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.
float edu.nimbus.glass.TopicView.mHeading [private] |
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.