com.livescribe.ui
Class DateIndicator
java.lang.Object
com.livescribe.display.Displayable
com.livescribe.display.Canvas
com.livescribe.ui.ScrollLabel
com.livescribe.ui.DateIndicator
- All Implemented Interfaces:
- HorizontalFlickScrub
public class DateIndicator
- extends ScrollLabel
|
Constructor Summary |
DateIndicator()
Creates an uninitialized DateIndicator |
DateIndicator(long animDelay,
int spaceWidth,
int shiftWidth)
Creates a DateIndicator |
|
Method Summary |
String |
getDate()
Returns the current date in a String format |
protected void |
notifyShown(Display d)
When called by the system indicates that this ScrollLabel is
current. |
void |
showDate()
Shows the date on the Screen |
| 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, notifyHidden, notifyScrollingPausedAtEnd, notifyScrollingPausedAtStart, onResize, paint, scheduleFlickRepaintTask, scheduleRepaintTask, scrubHorizontally, setContent, setFont, setViewportWidth, stopScrolling |
| Methods inherited from class com.livescribe.display.Canvas |
repaint |
DateIndicator
public DateIndicator()
- Creates an uninitialized
DateIndicator
DateIndicator
public DateIndicator(long animDelay,
int spaceWidth,
int shiftWidth)
- Creates a
DateIndicator
- Parameters:
animDelay - animation delay in milliseconds. This is used when the
text is scrolled.spaceWidth - this is width in terms of pixels that is used to space
the end of the content and the beginning of the content while
scrollingshiftWidth - this is the width in terms of pixels that is used to
shift the contents of the label.
showDate
public void showDate()
- Shows the date on the Screen
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.
getDate
public String getDate()
- Returns the current date in a String format
- Returns:
- String - the current date
Copyright © 2010 Livescribe Inc. All Rights Reserved.
Confidential and subject to NDA.