PenProfile 2.x

com.livescribe.ui
Class BatteryIndicator

java.lang.Object
  extended by com.livescribe.display.Displayable
      extended by com.livescribe.display.Canvas
          extended by com.livescribe.ui.BatteryIndicator

public class BatteryIndicator
extends Canvas

A battery indicator component.


Constructor Summary
BatteryIndicator()
          Creates a new battery indicator.
 
Method Summary
 void drawMiniBattery(Graphics g, int x, int y)
          Draw a miniature battery at the designated coordinates
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 Canvas is current.
protected  void paint(Graphics g)
          Paints this BatteryIndicator
 
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

BatteryIndicator

public BatteryIndicator()
Creates a new battery indicator.

Method Detail

drawMiniBattery

public void drawMiniBattery(Graphics g,
                            int x,
                            int y)
Draw a miniature battery at the designated coordinates

Parameters:
g - the handle to the Graphics object.
x - the x coordinate of the image.
y - the y coordinate of the image.

notifyShown

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

Overrides:
notifyShown in class Displayable
Parameters:
d - The Display on which this Canvas 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 Displayable
Parameters:
d - The Display on which this Canvas is current.

paint

protected void paint(Graphics g)
Paints this BatteryIndicator

Specified by:
paint in class Displayable
Parameters:
g - the specified Graphics context

PenProfile 2.x

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