PenProfile 2.x

com.livescribe.ui
Class DiskUsageIndicator

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

public class DiskUsageIndicator
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
DiskUsageIndicator()
          Creates an uninitialized DiskUsageIndicator
DiskUsageIndicator(long animDelay, int spaceWidth, int shiftWidth)
          Creates a DiskUsageIndicator
 
Method Summary
protected  void notifyShown(Display d)
          When called by the system indicates that this ScrollLabel is current.
 void showAvailableAsBytes()
          Shows the available bytes in Bytes in the disk usage.
 void showAvailableAsDuration()
          Shows the availability (in bytes) of recording duration * The information is rendered on the display
 
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

DiskUsageIndicator

public DiskUsageIndicator()
Creates an uninitialized DiskUsageIndicator


DiskUsageIndicator

public DiskUsageIndicator(long animDelay,
                          int spaceWidth,
                          int shiftWidth)
Creates a DiskUsageIndicator

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

showAvailableAsBytes

public void showAvailableAsBytes()
Shows the available bytes in Bytes in the disk usage. The information is rendered on the display


showAvailableAsDuration

public void showAvailableAsDuration()
Shows the availability (in bytes) of recording duration * The information is rendered on the display


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.

PenProfile 2.x

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