com.mot.lnf
Interface ChoiceGroupLNF


public interface ChoiceGroupLNF

Methods needed to customize look and feel of a ChoiceGroup


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

Method Detail

paint

public void paint(javax.microedition.lcdui.Graphics g,
                  java.lang.String label,
                  int type,
                  boolean hasFocus)
Method to be used for drawing a ChoiceGroup. Only the label should be drawn here, each item will be rendered individually using CheckboxItemLNF.
Parameters:
g - Graphics object to use for drawing
label - Label to display for this ChoiceGroup
type - the choice type, one of IMPLICIT, EXCLUSIVE, MULTIPLE or POPUP
hasFocus - indicates if this ChoiceGroup has cursor focus

getMinimumHeight

public int getMinimumHeight(java.lang.String label,
                            int type)
Get the minimum height of this component
Parameters:
label - Label to display for this ChoiceGroup
type - the choice type, one of IMPLICIT, EXCLUSIVE, MULTIPLE or POPUP
Returns:
minimum height, in pixels

getMinimumWidth

public int getMinimumWidth(java.lang.String label,
                           int type)
Get the minimum width of this component
Parameters:
label - Label to display for this ChoiceGroup
type - the choice type, one of IMPLICIT, EXCLUSIVE, MULTIPLE or POPUP
Returns:
minimum width, in pixels

getPreferredHeight

public int getPreferredHeight(java.lang.String label,
                              int type,
                              int width)
Get the preferred height of this component
Parameters:
label - Label to display for this ChoiceGroup
type - the choice type, one of IMPLICIT, EXCLUSIVE, MULTIPLE or POPUP
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,
                             int type,
                             int height)
Get the preferred width of this component
Parameters:
label - Label to display for this ChoiceGroup
type - the choice type, one of IMPLICIT, EXCLUSIVE, MULTIPLE or POPUP
height - the tentative content height in pixels, or -1 if a tentative height has not been computed
Returns:
preferred width, in pixels