com.mot.lnf
Interface TitleLNF
- public interface TitleLNF
Methods needed to customize look and feel of a Title bar
Method Summary |
int |
getHeight(java.lang.String title,
boolean fullScreenMode)
Get the height of the area of the screen which should be reserved
for the title bar. |
void |
paint(javax.microedition.lcdui.Graphics g,
java.lang.String title,
boolean fullScreenMode)
Method to be used for drawing the Title bar. |
void |
updateTitleText(java.lang.String title,
boolean fullScreenMode)
Method to update the text of a title. |
paint
public void paint(javax.microedition.lcdui.Graphics g,
java.lang.String title,
boolean fullScreenMode)
- Method to be used for drawing the Title bar.
- Parameters:
g
- Graphics object to use for drawingtitle
- Text to display in the title barfullScreenMode
- true if the parent screen is a Canvas in
full screen mode
getHeight
public int getHeight(java.lang.String title,
boolean fullScreenMode)
- Get the height of the area of the screen which should be reserved
for the title bar.
- Parameters:
title
- Text that will be displayed in the titlebarfullScreenMode
- true if the parent screen is a Canvas in
full screen mode- Returns:
- height in pixels
updateTitleText
public void updateTitleText(java.lang.String title,
boolean fullScreenMode)
- Method to update the text of a title. This is used for
the case when a native titlebar is used, to modify the title
text.
- Parameters:
title
- the new title textfullScreenMode
- true if the parent screen is a Canvas in
full screen mode