public class nUIImageElement extends nUIElementDisplay
Y_IDENTIFIER_PREV_BOTTOM
COLOR_BACKGROUND_NORMAL, COLOR_BLACK, COLOR_FOREGROUND_DARK, COLOR_FOREGROUND_LIGHT, COLOR_FOREGROUND_NORMAL, COLOR_TRANSPARENT, COLOR_WHITE, DIMENSIONS_IDENTIFIER_PARENT_DIMENSIONS
event_listener, event_listener_exclusive, first_child, last_child, next_sibling, nuiid, parent, prev_sibling, unlink_children_on_removal_from_parent
Constructor and Description |
---|
nUIImageElement(int nuiid,
javax.microedition.lcdui.Image image)
Default image constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getAlign()
Gets the current alignment of this image.
|
int |
getHeight()
Gets the height of this image element.
|
javax.microedition.lcdui.Image |
getImage()
Gets back the LCDUI Image associated with this element.
|
int |
getInnerWidth()
Gets the inner width of this image element.
|
int |
getInnerX()
Gets the x-position of the internal bounding box, relative to getX().
|
void |
setAlign(int align)
Sets the alignment of the image.
|
void |
setImage(javax.microedition.lcdui.Image image)
Sets the image to display.
|
getY, insertAt
getBackgroundDrawable, getBgcolor, getBottom, getFocus, getFocusable, getGesturable, getInnerHeight, getInnerY, getLeft, getMaxChildX, getMaxChildY, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, getX, insertAtInternal, isEnabled, onRemoved, remove, setBackgroundDrawable, setBgcolor, setBottom, setChildFocus, setEnabled, setFocus, setFocusable, setGesturable, setHeight, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setRight, setTop, setTriggerable, setWidth, setX, setY
add, addEventListener, childElementAt, childIndexOf, getTag, insertAfter, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace, setTag
public nUIImageElement(int nuiid, javax.microedition.lcdui.Image image)
nuiid
- Unique Native UI ID (or -1 if unidentified)image
- The image to be displayedpublic int getInnerWidth()
getInnerWidth
in class nUIDisplayObject
public int getHeight()
getHeight
in class nUIDisplayObject
public void setImage(javax.microedition.lcdui.Image image)
image
- The image to displayjava.lang.NullPointerException
- if image is nullpublic javax.microedition.lcdui.Image getImage()
public void setAlign(int align)
align
- One of nUIConstrants.left, .center or .rightjava.lang.IllegalArgumentException
- if halign is not validpublic int getAlign()
public int getInnerX()
nUIDisplayObject
getInnerX
in class nUIDisplayObject