|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
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 |
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)
g - Graphics object to use for drawinglabel - Label of this ImageItemimg - Image to use for drawinglayout - OR-ed combination of layout directivesaltTxt - alternate text to show if the image
cannot be displayedappearanceMode - one of Item.PLAIN,
Item.BUTTON or Item.HYPERLINKwidth - assigned width, in pixels, of this ImageItemheight - assigned height, in pixels, of this ImageItemhasFocus - true if the ImageItem has cursor focus
public int getMinimumHeight(java.lang.String label,
javax.microedition.lcdui.Image img,
int layout,
java.lang.String altTxt,
int appearanceMode)
label - Label of this ImageItemimg - Image to use for drawinglayout - OR-ed combination of layout directivesaltTxt - alternate text to show if the image
cannot be displayedappearanceMode - one of Item.PLAIN,
Item.BUTTON or Item.HYPERLINK
public int getMinimumWidth(java.lang.String label,
javax.microedition.lcdui.Image img,
int layout,
java.lang.String altTxt,
int appearanceMode)
label - Label of this ImageItemimg - Image to use for drawinglayout - OR-ed combination of layout directivesaltTxt - alternate text to show if the image
cannot be displayedappearanceMode - one of Item.PLAIN,
Item.BUTTON or Item.HYPERLINK
public int getPreferredHeight(java.lang.String label,
javax.microedition.lcdui.Image img,
int layout,
java.lang.String altTxt,
int appearanceMode,
int width)
label - Label of this ImageItemimg - Image to use for drawinglayout - OR-ed combination of layout directivesaltTxt - alternate text to show if the image
cannot be displayedappearanceMode - one of Item.PLAIN,
Item.BUTTON or Item.HYPERLINKwidth - the tentative content width in pixels,
or -1 if a tentative width has not been computed
public int getPreferredWidth(java.lang.String label,
javax.microedition.lcdui.Image img,
int layout,
java.lang.String altTxt,
int appearanceMode,
int height)
label - Label of this ImageItemimg - Image to use for drawinglayout - OR-ed combination of layout directivesaltTxt - alternate text to show if the image
cannot be displayedappearanceMode - one of Item.PLAIN,
Item.BUTTON or Item.HYPERLINKheight - the tentative content height in pixels,
or -1 if a tentative height has not been computed
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||