|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.ui.decor.BackgroundFactory
A factory class for creating different types of backgrounds (see Background
for more details):
createSolidBackground(int)createSolidTransparentBackground(int, int)createLinearGradientBackground(int, int, int, int)createBitmapBackground(Bitmap)createBitmapBackground(Bitmap, int, int, int)
| Method Summary | ||
static Background |
createBitmapBackground(Bitmap bitmap)
Create a bitmap-based background. |
|
static Background |
createBitmapBackground(Bitmap bitmap,
int positionX,
int positionY,
int repeat)
Create a bitmap-based background. |
|
static Background |
createLinearGradientBackground(int colorTopLeft,
int colorTopRight,
int colorBottomRight,
int colorBottomLeft)
Create a linear gradient background. |
|
static Background |
createSolidBackground(int color)
Create a solid fill background. |
|
static Background |
createSolidTransparentBackground(int color,
int alpha)
Create a solid fill and/or transparent background. |
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Background createBitmapBackground(Bitmap bitmap)
bitmap - Bitmap graphic object.IllegalArgumentException - If bitmap is null.public static Background createBitmapBackground(Bitmap bitmap, int positionX, int positionY, int repeat)
bitmap - Bitmap graphic object.positionX - Horizontal bitmap anchoring: POSITION_X_LEFT, POSITION_X_CENTER, POSITION_X_RIGHT.positionY - Veritcal bitmap anchoring: POSITION_Y_LEFT, POSITION_Y_CENTER, POSITION_Y_RIGHT.repeat - Bitmap tiling properties: REPEAT_NONE, REPEAT_HORIZONTAL, REPEAT_VERTICAL, REPEAT_BOTH,
REPEAT_SCALE_TO_FIT.IllegalArgumentException - If bitmap is null.public static Background createLinearGradientBackground(int colorTopLeft, int colorTopRight, int colorBottomRight, int colorBottomLeft)
colorTopLeft - Starting color at top-left corner of background.colorTopRight - Starting color at top-right corner of background.colorBottomRight - Starting color at bottom-right corner of background.colorBottomLeft - Starting color at bottom-left corner of background.public static Background createSolidBackground(int color)
color - 32-bit color in 0x00RRGGBB formatpublic static Background createSolidTransparentBackground(int color, int alpha)
color - 32-bit color in 0x00RRGGBB formatalpha - 0 (clear) to 255 (opaque).
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2009 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2003 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
Copyright 2002-2003 Nokia Corporation All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.