public class nUIImageElement extends nUIElementDisplay implements IImageElement
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
Constructor and Description |
---|
nUIImageElement() |
nUIImageElement(java.util.Hashtable properties) |
nUIImageElement(javax.microedition.lcdui.Image image)
Default image constructor
|
nUIImageElement(javax.microedition.lcdui.Image image,
java.util.Hashtable properties) |
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.
|
applyBackground, applyBackground, applyBackground
getBackgroundDrawable, getBottom, getElementIdentifier, getFocusable, getGesturable, getInnerHeight, getInnerY, getLeft, getMaxChildX, getMaxChildY, getProperties, getProperty, getRight, getScreenInnerX, getScreenInnerY, getScreenX, getScreenY, getTop, getTopLevelParentView, getTopLevelParentWindow, getTriggerable, getWidth, getX, getY, insertAtInternal, isEnabled, isVisible, onRemoved, remove, setBackgroundDrawable, setBottom, setElementIdentifier, setEnabled, setFocusable, setGesturable, setHeight, setInnerHeight, setInnerWidth, setInnerX, setInnerY, setLeft, setProperties, setProperty, setRight, setTop, setTriggerable, setVisible, setWidth, setX, setY
add, addEventListener, childElementAt, childIndexOf, getFirstChild, getId, getLastChild, getNextSibling, getParent, getPrevSibling, getTag, insertAfter, insertAt, insertBefore, outputChildHierarchy, remove, removeEventListener, replace, replace, setId, setTag, setUnlinkChildrenOnRemoval
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setBackgroundDrawable
public nUIImageElement()
public nUIImageElement(javax.microedition.lcdui.Image image)
image
- The image to be displayedpublic nUIImageElement(java.util.Hashtable properties)
public nUIImageElement(javax.microedition.lcdui.Image image, java.util.Hashtable properties)
public int getInnerWidth()
getInnerWidth
in class nUIDisplayObject
public int getHeight()
getHeight
in class nUIDisplayObject
public void setImage(javax.microedition.lcdui.Image image)
setImage
in interface IImageElement
image
- The image to displayjava.lang.NullPointerException
- if image is nullpublic javax.microedition.lcdui.Image getImage()
getImage
in interface IImageElement
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