|
jMobileCore toolkit | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.jmobilecore.ui.core.Component
com.jmobilecore.ui.core.ImageComponent
public class ImageComponent
Provides an image for display on the screen. An image is not focusable.
| Field Summary | |
|---|---|
javax.microedition.lcdui.Image |
image
The iame of this ImageComponent. |
| Fields inherited from class com.jmobilecore.ui.core.Component |
|---|
alignment, background, CENTER, focusable, focusedBackground, focusedForeground, font, foreground, height, isCompletelyVisible, isFocused, isVisible, LEFT, parentScreen, RIGHT, screenY, valid, width |
| Constructor Summary | |
|---|---|
ImageComponent(javax.microedition.lcdui.Image image)
Constructs a new ImageComponent with the specified image,
left justified. |
|
ImageComponent(javax.microedition.lcdui.Image image,
int alignment)
Constructs a new ImageComponent with the specified image,
and alignment. |
|
| Method Summary | |
|---|---|
void |
destructor()
Class destructor. |
void |
paint(javax.microedition.lcdui.Graphics g)
Paints this component. |
protected void |
setHeight()
Calculates the component height |
| Methods inherited from class com.jmobilecore.ui.core.Component |
|---|
getBackground, getFont, getForeground, getHeight, getWidth, invalidate, isFocusOwner, keyPressed, keyReleased, keyRepeated, paintBackground, pointerDragged, pointerPressed, pointerReleased, prepareForeground, releaseFocus, requestFocus, setFont |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public javax.microedition.lcdui.Image image
ImageComponent.
| Constructor Detail |
|---|
public ImageComponent(javax.microedition.lcdui.Image image)
ImageComponent with the specified image,
left justified.
image - the image that this ImageComponent presents.
A null value will be accepted without causing a NullPointerException
to be thrown.
public ImageComponent(javax.microedition.lcdui.Image image,
int alignment)
ImageComponent with the specified image,
and alignment.
Possible values for alignment are Component.LEFT,
Component.RIGHT, and Component.CENTER.
image - the string that the label presents.
A null value will be accepted without causing a NullPointerException
to be thrown.alignment - the alignment value.| Method Detail |
|---|
public void destructor()
destructor in class Componentpublic void paint(javax.microedition.lcdui.Graphics g)
paint in class Componentg - the graphics context to use for paintingprotected void setHeight()
setHeight in class Component
|
jMobileCore toolkit | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||