|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.m3g.Object3D
javax.microedition.m3g.Background
Defines whether and how to clear the viewport.
Field Summary | |
static int |
BORDER
Specifies that the imaginary pixels outside of the source image boundaries in X or Y direction are considered to have the background color. |
static int |
REPEAT
Specifies that the imaginary pixels outside of the source image boundaries in X or Y direction are considered to have the same color as the pixel in the corresponding position in the source image. |
Constructor Summary | |
Background()
Constructs a new Background with default values. |
Method Summary | |
int |
getColor()
Retrieves the current background color. |
int |
getCropHeight()
Gets the current cropping rectangle height within the source image. |
int |
getCropWidth()
Gets the current cropping rectangle width within the source image. |
int |
getCropX()
Retrieves the current cropping rectangle X offset relative to the source image top left corner. |
int |
getCropY()
Retrieves the current cropping rectangle Y offset relative to the source image top left corner. |
Image2D |
getImage()
Gets the current background image. |
int |
getImageModeX()
Gets the current background image repeat mode for the X dimension. |
int |
getImageModeY()
Gets the current background image repeat mode for the Y dimension. |
boolean |
isColorClearEnabled()
Queries whether color buffer clearing is enabled. |
boolean |
isDepthClearEnabled()
Queries whether depth buffer clearing is enabled. |
void |
setColor(int ARGB)
Sets the background color. |
void |
setColorClearEnable(boolean enable)
Enables or disables color buffer clearing. |
void |
setCrop(int cropX,
int cropY,
int width,
int height)
Sets a cropping rectangle within the background image. |
void |
setDepthClearEnable(boolean enable)
Enables or disables depth buffer clearing. |
void |
setImage(Image2D image)
Sets the background image, or switches from background image mode to background color mode. |
void |
setImageMode(int modeX,
int modeY)
Sets the background image repeat mode for the X and Y directions. |
Methods inherited from class javax.microedition.m3g.Object3D |
addAnimationTrack, animate, duplicate, find, getAnimationTrack, getAnimationTrackCount, getReferences, getUserID, getUserObject, removeAnimationTrack, setUserID, setUserObject |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BORDER
public static final int REPEAT
Constructor Detail |
public Background()
Method Detail |
public void setColorClearEnable(boolean enable)
public boolean isColorClearEnabled()
public void setDepthClearEnable(boolean enable)
public boolean isDepthClearEnabled()
public void setColor(int ARGB)
public int getColor()
public void setImage(Image2D image)
public Image2D getImage()
public void setImageMode(int modeX, int modeY)
public int getImageModeX()
public int getImageModeY()
public void setCrop(int cropX, int cropY, int width, int height)
public int getCropX()
public int getCropY()
public int getCropWidth()
public int getCropHeight()
|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner. All Rights Reserved. BenQ Corp. is a trademark licensee of Siemens AG. |
For further information about Mobility Toolkit (MTK) visit our Developer Portal. |