com.mot.lnf
Interface ImageItemLNF


public interface ImageItemLNF

Methods needed to customize look and feel of an ImageItem


Method Summary
 int getMinimumHeight(java.lang.String label, javax.microedition.lcdui.Image img, int layout, java.lang.String altTxt, int appearanceMode)
          Get the minimum height of this component
 int getMinimumWidth(java.lang.String label, javax.microedition.lcdui.Image img, int layout, java.lang.String altTxt, int appearanceMode)
          Get the minimum width of this component
 int getPreferredHeight(java.lang.String label, javax.microedition.lcdui.Image img, int layout, java.lang.String altTxt, int appearanceMode, int width)
          Get the preferred height of this component
 int getPreferredWidth(java.lang.String label, javax.microedition.lcdui.Image img, int layout, java.lang.String altTxt, int appearanceMode, int height)
          Get the preferred width of this component
 void paint(javax.microedition.lcdui.Graphics g, java.lang.String label, javax.microedition.lcdui.Image img, int layout, java.lang.String altTxt, int appearanceMode, int width, int height, boolean hasFocus)
          Method to be used for drawing an ImageItem.
 

Method Detail

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  java.lang.String label,
                  javax.microedition.lcdui.Image img,
                  int layout,
                  java.lang.String altTxt,
                  int appearanceMode,
                  int width,
                  int height,
                  boolean hasFocus)
Method to be used for drawing an ImageItem.
Parameters:
g - Graphics object to use for drawing
label - Label of this ImageItem
img - Image to use for drawing
layout - OR-ed combination of layout directives
altTxt - alternate text to show if the image cannot be displayed
appearanceMode - one of Item.PLAIN, Item.BUTTON or Item.HYPERLINK
width - assigned width, in pixels, of this ImageItem
height - assigned height, in pixels, of this ImageItem
hasFocus - true if the ImageItem has cursor focus

getMinimumHeight

public int getMinimumHeight(java.lang.String label,
                            javax.microedition.lcdui.Image img,
                            int layout,
                            java.lang.String altTxt,
                            int appearanceMode)
Get the minimum height of this component
Parameters:
label - Label of this ImageItem
img - Image to use for drawing
layout - OR-ed combination of layout directives
altTxt - alternate text to show if the image cannot be displayed
appearanceMode - one of Item.PLAIN, Item.BUTTON or Item.HYPERLINK
Returns:
minimum height, in pixels

getMinimumWidth

public int getMinimumWidth(java.lang.String label,
                           javax.microedition.lcdui.Image img,
                           int layout,
                           java.lang.String altTxt,
                           int appearanceMode)
Get the minimum width of this component
Parameters:
label - Label of this ImageItem
img - Image to use for drawing
layout - OR-ed combination of layout directives
altTxt - alternate text to show if the image cannot be displayed
appearanceMode - one of Item.PLAIN, Item.BUTTON or Item.HYPERLINK
Returns:
minimum width, in pixels

getPreferredHeight

public int getPreferredHeight(java.lang.String label,
                              javax.microedition.lcdui.Image img,
                              int layout,
                              java.lang.String altTxt,
                              int appearanceMode,
                              int width)
Get the preferred height of this component
Parameters:
label - Label of this ImageItem
img - Image to use for drawing
layout - OR-ed combination of layout directives
altTxt - alternate text to show if the image cannot be displayed
appearanceMode - one of Item.PLAIN, Item.BUTTON or Item.HYPERLINK
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(java.lang.String label,
                             javax.microedition.lcdui.Image img,
                             int layout,
                             java.lang.String altTxt,
                             int appearanceMode,
                             int height)
Get the preferred width of this component
Parameters:
label - Label of this ImageItem
img - Image to use for drawing
layout - OR-ed combination of layout directives
altTxt - alternate text to show if the image cannot be displayed
appearanceMode - one of Item.PLAIN, Item.BUTTON or Item.HYPERLINK
height - the tentative content height in pixels, or -1 if a tentative height has not been computed
Returns:
preferred width, in pixels