PenProfile 2.x

com.livescribe.ui
Class DateIndicator

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.DateIndicator
All Implemented Interfaces:
HorizontalFlickScrub

public class DateIndicator
extends ScrollLabel


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, timer
 
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
 
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

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 scrolling
shiftWidth - this is the width in terms of pixels that is used to shift the contents of the label.
Method Detail

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

PenProfile 2.x

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