001: /*
002: *
003: *
004: * Copyright 1990-2007 Sun Microsystems, Inc. All Rights Reserved.
005: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER
006: *
007: * This program is free software; you can redistribute it and/or
008: * modify it under the terms of the GNU General Public License version
009: * 2 only, as published by the Free Software Foundation.
010: *
011: * This program is distributed in the hope that it will be useful, but
012: * WITHOUT ANY WARRANTY; without even the implied warranty of
013: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
014: * General Public License version 2 for more details (a copy is
015: * included at /legal/license.txt).
016: *
017: * You should have received a copy of the GNU General Public License
018: * version 2 along with this work; if not, write to the Free Software
019: * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
020: * 02110-1301 USA
021: *
022: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
023: * Clara, CA 95054 or visit www.sun.com if you need additional
024: * information or have any questions.
025: */
026: package com.sun.midp.chameleon.skins;
027:
028: import javax.microedition.lcdui.Image;
029: import javax.microedition.lcdui.Font;
030:
031: /**
032: * A skin containing images and parameters related to the softbutton bar.
033: */
034: public class SoftButtonSkin {
035:
036: /**
037: * This field corresponds to SOFTBTN_HEIGHT skin property.
038: * See its comment for further details.
039: */
040: public static int HEIGHT;
041:
042: /**
043: * This field corresponds to SOFTBTN_NUM_BUTTONS skin property.
044: * See its comment for further details.
045: */
046: public static int NUM_BUTTONS;
047:
048: /**
049: * This field corresponds to SOFTBTN_BUTTON_ANCHOR_X skin property.
050: * See its comment for further details. Its an array of size equal
051: * to NUM_BUTTONS.
052: */
053: public static int[] BUTTON_ANCHOR_X;
054:
055: /**
056: * This field corresponds to SOFTBTN_BUTTON_ANCHOR_Y skin property.
057: * See its comment for further details. Its an array of size equal
058: * to NUM_BUTTONS.
059: */
060: public static int[] BUTTON_ANCHOR_Y;
061:
062: /**
063: * This field corresponds to SOFTBTN_BUTTON_ALIGN_X skin property.
064: * See its comment for further details. Its an array of size equal
065: * to NUM_BUTTONS.
066: */
067: public static int[] BUTTON_ALIGN_X;
068:
069: /**
070: * This field corresponds to SOFTBTN_BUTTON_MAX_WIDTH skin property.
071: * See its comment for further details. Its an array of size equal
072: * to NUM_BUTTONS.
073: */
074: public static int[] BUTTON_MAX_WIDTH;
075:
076: /**
077: * This field corresponds to SOFTBTN_BUTTON_SHD_ALIGN skin property.
078: * See its comment for further details.
079: */
080: public static int BUTTON_SHD_ALIGN;
081:
082: /**
083: * This field corresponds to SOFTBTN_COLOR_FG skin property.
084: * See its comment for further details.
085: */
086: public static int COLOR_FG;
087:
088: /**
089: * This field corresponds to SOFTBTN_COLOR_FG_SHD skin property.
090: * See its comment for further details.
091: */
092: public static int COLOR_FG_SHD;
093:
094: /**
095: * This field corresponds to SOFTBTN_COLOR_BG skin property.
096: * See its comment for further details.
097: */
098: public static int COLOR_BG;
099:
100: /**
101: * This field corresponds to SOFTBTN_COLOR_MU_FG skin property.
102: * See its comment for further details.
103: */
104: public static int COLOR_MU_FG;
105:
106: /**
107: * This field corresponds to SOFTBTN_COLOR_MU_FG_SHD skin property.
108: * See its comment for further details.
109: */
110: public static int COLOR_MU_FG_SHD;
111:
112: /**
113: * This field corresponds to SOFTBTN_COLOR_MU_BG skin property.
114: * See its comment for further details.
115: */
116: public static int COLOR_MU_BG;
117:
118: /**
119: * This field corresponds to SOFTBTN_COLOR_AU_FG skin property.
120: * See its comment for further details.
121: */
122: public static int COLOR_AU_FG;
123:
124: /**
125: * This field corresponds to SOFTBTN_COLOR_AU_FG_SHD skin property.
126: * See its comment for further details.
127: */
128: public static int COLOR_AU_FG_SHD;
129:
130: /**
131: * This field corresponds to SOFTBTN_COLOR_AU_BG skin property.
132: * See its comment for further details.
133: */
134: public static int COLOR_AU_BG;
135:
136: /**
137: * This field corresponds to SOFTBTN_FONT skin property.
138: * See its comment for further details.
139: */
140: public static Font FONT;
141:
142: /**
143: * This field corresponds to SOFTBTN_IMAGE_BG skin property.
144: * See its comment for further details.
145: *
146: * A 'null' value for this array means there is no image background
147: * and a solid fill color should be used.
148: */
149: public static Image[] IMAGE_BG;
150:
151: /**
152: * This field corresponds to SOFTBTN_IMAGE_MU_BG skin property.
153: * See its comment for further details.
154: *
155: * A 'null' value for this array means there is no image background
156: * and a solid fill color should be used.
157: */
158: public static Image[] IMAGE_MU_BG;
159:
160: /**
161: * This field corresponds to SOFTBTN_IMAGE_AU_BG skin property.
162: * See its comment for further details.
163: *
164: * A 'null' value for this array means there is no image background
165: * and a solid fill color should be used.
166: */
167: public static Image[] IMAGE_AU_BG;
168:
169: /**
170: * This field corresponds to SOFTBTN_TEXT_MENUCMD skin property.
171: * See its comment for further details.
172: */
173: public static String TEXT_MENUCMD;
174:
175: /**
176: * This field corresponds to SOFTBTN_TEXT_BACKCMD skin property.
177: * See its comment for further details.
178: */
179: public static String TEXT_BACKCMD;
180:
181: /**
182: * Private constructor
183: */
184: private SoftButtonSkin() {
185: }
186: }
|