com.mot.lnf
Interface CustomItemLNF


public interface CustomItemLNF

Methods needed to customize look and feel of a CustomItem


Method Summary
 int getMinimumHeight(javax.microedition.lcdui.CustomItem ci)
          Get the minimum height of this component
 int getMinimumWidth(javax.microedition.lcdui.CustomItem ci)
          Get the minimum width of this component
 int getPreferredHeight(javax.microedition.lcdui.CustomItem ci, int width)
          Get the preferred height of this component
 int getPreferredWidth(javax.microedition.lcdui.CustomItem ci, int height)
          Get the preferred width of this component
 void paint(javax.microedition.lcdui.Graphics g, javax.microedition.lcdui.CustomItem ci, boolean hasFocus)
          Method to be used for drawing a CustomItem's label.
 

Method Detail

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  javax.microedition.lcdui.CustomItem ci,
                  boolean hasFocus)
Method to be used for drawing a CustomItem's label. The rest of the contents will be drawn by the MIDlet.
Parameters:
g - Graphics object to use for drawing
ci - CustomItem to draw
hasFocus - true if the CustomItem has cursor focus

getMinimumHeight

public int getMinimumHeight(javax.microedition.lcdui.CustomItem ci)
Get the minimum height of this component
Parameters:
ci - CustomItem to obtain size information about
Returns:
minimum height, in pixels

getMinimumWidth

public int getMinimumWidth(javax.microedition.lcdui.CustomItem ci)
Get the minimum width of this component
Parameters:
ci - CustomItem to obtain size information about
Returns:
minimum width, in pixels

getPreferredHeight

public int getPreferredHeight(javax.microedition.lcdui.CustomItem ci,
                              int width)
Get the preferred height of this component
Parameters:
ci - CustomItem to obtain size information about
width - the tentative content width in pixels, or -1 if a tentative width has not been computed
Returns:
preferred height, in pixels

getPreferredWidth

public int getPreferredWidth(javax.microedition.lcdui.CustomItem ci,
                             int height)
Get the preferred width of this component
Parameters:
ci - CustomItem to obtain size information about
height - the tentative content height in pixels, or -1 if a tentative height has not been computed
Returns:
preferred width, in pixels