01: /*
02: *
03: *
04: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
05: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
06: *
07: * This program is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU General Public License version
09: * 2 only, as published by the Free Software Foundation.
10: *
11: * This program is distributed in the hope that it will be useful, but
12: * WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * General Public License version 2 for more details (a copy is
15: * included at /legal/license.txt).
16: *
17: * You should have received a copy of the GNU General Public License
18: * version 2 along with this work; if not, write to the Free Software
19: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20: * 02110-1301 USA
21: *
22: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
23: * Clara, CA 95054 or visit www.sun.com if you need additional
24: * information or have any questions.
25: */
26: package com.sun.midp.chameleon.skins;
27:
28: import com.sun.midp.chameleon.skins.ScreenSkin;
29:
30: import javax.microedition.lcdui.Image;
31: import javax.microedition.lcdui.Font;
32: import javax.microedition.lcdui.Graphics;
33:
34: /**
35: * A skin containing images and parameters for the title bar.
36: */
37: public class TitleSkin {
38:
39: /**
40: * This field corresponds to TITLE_HEIGHT skin property.
41: * See its comment for further details.
42: */
43: public static int HEIGHT;
44:
45: /**
46: * This field corresponds to TITLE_MARGIN skin property.
47: * See its comment for further details.
48: */
49: public static int MARGIN;
50:
51: /**
52: * This field corresponds to TITLE_TEXT_ALIGN_X skin property.
53: * See its comment for further details.
54: */
55: public static int TEXT_ALIGN_X;
56:
57: /**
58: * This field corresponds to TITLE_TEXT_SHD_ALIGN skin property.
59: * See its comment for further details.
60: */
61: public static int TEXT_SHD_ALIGN;
62:
63: /**
64: * This field corresponds to TITLE_COLOR_FG skin property.
65: * See its comment for further details.
66: */
67: public static int COLOR_FG;
68:
69: /**
70: * This field corresponds to TITLE_COLOR_FG_SHD skin property.
71: * See its comment for further details.
72: */
73: public static int COLOR_FG_SHD;
74:
75: /**
76: * This field corresponds to TITLE_COLOR_BG skin property.
77: * See its comment for further details.
78: */
79: public static int COLOR_BG;
80:
81: /**
82: * This field corresponds to TITLE_FONT skin property.
83: * See its comment for further details.
84: */
85: public static Font FONT;
86:
87: /**
88: * This field corresponds to TITLE_IMAGE_BG skin property.
89: * See its comment for further details.
90: *
91: * A 'null' value for this array means there is no image background
92: * and either the tile image, or a solid fill color should be used.
93: */
94: public static Image[] IMAGE_BG;
95:
96: // private constructor
97: private TitleSkin() {
98: }
99: }
|