|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.microedition.lcdui.laf.ColorSchema
public abstract class ColorSchema
ColorSchema holds information about colors and background images to be used when drawing custom components based on Canvas and CustomItem, which support this ColorSchema mechanism.
Constructor Summary | |
---|---|
ColorSchema()
|
Method Summary | |
---|---|
abstract javax.microedition.lcdui.Image |
getBackgroundImage()
Returns image which should be used as a background. |
abstract int |
getBackgroundImageAnchorPoint()
Gets anchor of the background image. |
abstract int |
getColor(int aColorSpecifier)
Gets color based on color specifier. |
abstract boolean |
isBackgroundImageTiled()
If true, background image should be drawn in tiled. |
abstract boolean |
isBackgroundTransparent()
If true the background is transparent. |
void |
paintBackground(javax.microedition.lcdui.Graphics g,
boolean includeImage)
Utility method for painting background do given Graphics object (using current clipping area). |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorSchema()
Method Detail |
---|
public abstract int getColor(int aColorSpecifier)
aColorSpecifier
- - color specifier from Display.COLOR* constnants
Display
public abstract javax.microedition.lcdui.Image getBackgroundImage()
public abstract int getBackgroundImageAnchorPoint()
Graphics
public abstract boolean isBackgroundImageTiled()
public abstract boolean isBackgroundTransparent()
public void paintBackground(javax.microedition.lcdui.Graphics g, boolean includeImage)
g
- - Graphics to be used to draw background.includeImage
- - when true, the implementation also draws a background
image if specified, when false, the background image is ignored.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |