com.livescribe.ui
Class TimeIndicator
java.lang.Object
com.livescribe.display.Displayable
com.livescribe.display.Canvas
com.livescribe.ui.ScrollLabel
com.livescribe.ui.TimeIndicator
- All Implemented Interfaces:
- HorizontalFlickScrub
public class TimeIndicator
- extends ScrollLabel
A time indicator component.
|
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 |
TimeIndicator
public TimeIndicator()
- Creates a new time indicator.
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.
Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.