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 |
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 drawingtype
- What type of Alert this istxt
- TextView used to display the text of this Alertimg
- Image to display on this Alertind
- Indicator associated with this Alerttt
- 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 Alertimg
- Image to display on this Alertind
- 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