PenProfile 2.x

com.livescribe.ui
Class TimeIndicator

java.lang.Object
  extended by com.livescribe.display.Displayable
      extended by com.livescribe.display.Canvas
          extended by com.livescribe.ui.ScrollLabel
              extended by com.livescribe.ui.TimeIndicator
All Implemented Interfaces:
HorizontalFlickScrub

public class TimeIndicator
extends ScrollLabel

A time indicator component.


Field Summary
 
Fields inherited from class com.livescribe.ui.ScrollLabel
DEFAULT_ANIMATION_DELAY, DEFAULT_SHIFT_WIDTH, DEFAULT_SPACE_WIDTH, displayableWidth, font, SCROLL_UNIT_MILLIS, shiftWidth, spaceWidth
 
Constructor Summary
TimeIndicator()
          Creates a new time indicator.
 
Method Summary
 String getTime()
          Returns the current time in a format specifically the current locale.
protected  void notifyHidden(Display d)
          When called indicates that this Displayable is no longer shown on the display device due to another Displayable being set to current.
protected  void notifyShown(Display d)
          When called by the system indicates that this ScrollLabel is current.
 void showTime()
          Shows the time.
 
Methods inherited from class com.livescribe.ui.ScrollLabel
cancelFlickRepaintTask, cancelRepaintTask, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, draw, drawRightJustified, drawRightJustified, enableFlickScrub, flickHorizontally, getContentWidth, getOffset, getShiftWidth, getViewportWidth, hasScrollableContent, isHorizontalFlickScrubEnabled, isPauseEnabled, isWrapEnabled, notifyScrollingPausedAtEnd, notifyScrollingPausedAtStart, onResize, paint, scheduleFlickRepaintTask, scheduleRepaintTask, scrubHorizontally, setContent, setFont, setViewportWidth, stopScrolling
 
Methods inherited from class com.livescribe.display.Canvas
repaint
 
Methods inherited from class com.livescribe.display.Displayable
getSurface, isCurrent, notifySystemTrayHidden, notifySystemTrayShown
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeIndicator

public TimeIndicator()
Creates a new time indicator.

Method Detail

showTime

public void showTime()
Shows the time.


notifyShown

protected void notifyShown(Display d)
When called by the system indicates that this ScrollLabel is current.

Overrides:
notifyShown in class ScrollLabel
Parameters:
d - The Display on which this ScrollLabel is current.

notifyHidden

protected void notifyHidden(Display d)
When called indicates that this Displayable is no longer shown on the display device due to another Displayable being set to current.

Overrides:
notifyHidden in class ScrollLabel
Parameters:
d - The Display on which this Canvas is current.

getTime

public String getTime()
Returns the current time in a format specifically the current locale. If the time has not been set, then this will return a "Set Time" message.

Returns:
the current time as a string.

PenProfile 2.x

Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.