|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.microedition.lcdui.laf.ColorSchema
org.netbeans.microedition.lcdui.laf.UserColorSchema
public class UserColorSchema
A color schema, which can hold user color values. When using this implementation, please note you have to manually repaint the shown component when the color is changed. There is no event model which could inform the component about the change.
| Constructor Summary | |
|---|---|
UserColorSchema()
Creates a new instance of UserColorSchema |
|
| Method Summary | |
|---|---|
javax.microedition.lcdui.Image |
getBackgroundImage()
Gets background image. |
int |
getBackgroundImageAnchorPoint()
Gets anchor point for the background image. |
int |
getColor(int aColorSpecifier)
Gets color based on color specifier. |
boolean |
isBackgroundImageTiled()
Should be background image used as a tiled background. |
boolean |
isBackgroundTransparent()
Should be the background transparent? For details see definition in parent class. |
void |
setBackgroundImage(javax.microedition.lcdui.Image backgroundImage)
Sets background image to schema |
void |
setBackgroundImageAnchorPoint(int anchorPoint)
Sets anchor point for background image. |
void |
setBackgroundImageTiled(boolean tiled)
Sets the fact whether the background image should be tiled or not |
void |
setBackgroundTransparent(boolean transparent)
Sets the fact whether the background should be transparent |
void |
setBGColor(int color)
|
void |
setColor(int aColorSpecifier,
int color)
Sets color to user color schema |
void |
setFGColor(int color)
|
| Methods inherited from class org.netbeans.microedition.lcdui.laf.ColorSchema |
|---|
paintBackground |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserColorSchema()
| Method Detail |
|---|
public void setColor(int aColorSpecifier,
int color)
aColorSpecifier - - color specifier from Display.COLOR* valuescolor - - color to be used for given specifiedpublic int getColor(int aColorSpecifier)
getColor in class ColorSchemaaColorSpecifier - - color specifier from Display.COLOR* constants
Displaypublic void setBackgroundImage(javax.microedition.lcdui.Image backgroundImage)
backgroundImage - background imagepublic javax.microedition.lcdui.Image getBackgroundImage()
getBackgroundImage in class ColorSchemapublic void setBackgroundImageAnchorPoint(int anchorPoint)
anchorPoint - - an anchor pointpublic int getBackgroundImageAnchorPoint()
parent method
getBackgroundImageAnchorPoint in class ColorSchemaGraphicspublic void setBackgroundImageTiled(boolean tiled)
tiled - if true, the image should be tiled, false otherwisepublic boolean isBackgroundImageTiled()
isBackgroundImageTiled in class ColorSchemapublic void setBackgroundTransparent(boolean transparent)
transparent - - if true, the background should be transparent,
false otherwisepublic boolean isBackgroundTransparent()
isBackgroundTransparent in class ColorSchemapublic void setFGColor(int color)
public void setBGColor(int color)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||