|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.kobjects.kui.Style
public class Style
| Field Summary | |
|---|---|
int |
align
|
int[] |
background
Background array, see apply |
int |
color
Text Color |
static int |
FILL_GRADIENT
|
static int |
FILL_PLAIN
|
int |
font
Text Font |
int[] |
frame
Frame array, see apply |
static int |
FRAME_RELIEF
|
static int |
FRAME_ROUNDED
|
static int |
FRAME_SIMPLE
Constant for drawing a simple border |
int |
xc
|
| Constructor Summary | |
|---|---|
Style(int textColor,
int font,
int[] frame,
int[] background,
int extraColor,
int align)
Creates a style to be used with KUI elements. |
|
| Method Summary | |
|---|---|
int |
apply(Graphics g)
|
void |
drawString(Graphics g,
java.lang.String s,
int x,
int y)
|
int |
fill(Graphics gc,
int x0,
int y0,
int w,
int h)
|
int |
frame(Graphics gc,
int x0,
int y0,
int w,
int h)
|
Font |
getFont()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FRAME_SIMPLE
public static final int FRAME_ROUNDED
public static final int FRAME_RELIEF
public static final int FILL_PLAIN
public static final int FILL_GRADIENT
public final int color
public final int font
public final int[] background
public final int[] frame
public final int xc
public final int align
| Constructor Detail |
|---|
public Style(int textColor,
int font,
int[] frame,
int[] background,
int extraColor,
int align)
textColor - Text color ARGB value.font - MIDP font bit combination (Font.SIZE_SMALL, Font.STYLE_BOLD, ...)frame - An integer array defining the frame. The first value defines the type of the frame
(FRAME_SIMPLE, FRAME_ROUNDED, FRAME_RELIEF). The following two values define the the
width of the frame in pixels (starting and end point relative to the filled area).
Additional values define the frame color. If the array is omitted (null), no frame is drawnbackground - An integer array defining the background color. The first value defines the
fill style (FILL_PLAIN, FILL_GRADIENT). In the case of FILL_PLAIN, the next value defines the
fill color. In the case of FILL_GRADIENT, a sequence of RGB color values and percent valuese
(in the range from 0...255) defines the fill gradient.extraColor - An extra color, used e.g for the sub-focus in choice groupsalign - A combination of Graphics.TOP/BOTTOM/VCENTER and Graphics.LEFT/RIGHT/HCENTER.| Method Detail |
|---|
public int fill(Graphics gc,
int x0,
int y0,
int w,
int h)
public int apply(Graphics g)
public int frame(Graphics gc,
int x0,
int y0,
int w,
int h)
public Font getFont()
public void drawString(Graphics g,
java.lang.String s,
int x,
int y)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||