com.mot.lnf
Interface AlertLNF


public interface AlertLNF

Methods needed to customize look and feel of an Alert


Method Summary
 int getContentHeight(TextView txt, javax.microedition.lcdui.Image img, javax.microedition.lcdui.Gauge ind)
          Method to obtain the height of the Alert's contents
 javax.microedition.lcdui.Font getDefaultFont()
          Get the default font to be used for drawing Alert text
 void paintContents(javax.microedition.lcdui.Graphics g, javax.microedition.lcdui.AlertType type, TextView txt, javax.microedition.lcdui.Image img, javax.microedition.lcdui.Gauge ind, java.util.TimerTask tt)
          Method to be used for drawing an Alert
 

Method Detail

paintContents

public void paintContents(javax.microedition.lcdui.Graphics g,
                          javax.microedition.lcdui.AlertType type,
                          TextView txt,
                          javax.microedition.lcdui.Image img,
                          javax.microedition.lcdui.Gauge ind,
                          java.util.TimerTask tt)
Method to be used for drawing an Alert
Parameters:
g - Graphics object to use for drawing
type - What type of Alert this is
txt - TextView used to display the text of this Alert
img - Image to display on this Alert
ind - Indicator associated with this Alert
tt - TimerTask used for Gauge's animation

getContentHeight

public int getContentHeight(TextView txt,
                            javax.microedition.lcdui.Image img,
                            javax.microedition.lcdui.Gauge ind)
Method to obtain the height of the Alert's contents
Parameters:
txt - TextView used to display the text of this Alert
img - Image to display on this Alert
ind - Indicator associated with this Alert
Returns:
the height required by this Alert

getDefaultFont

public javax.microedition.lcdui.Font getDefaultFont()
Get the default font to be used for drawing Alert text
Returns:
the default Alert font