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: import javax.microedition.lcdui.Graphics;
031:
032: /**
033: * A skin containing images and parameters related to the popup system menu.
034: */
035: public class MenuSkin {
036:
037: /**
038: * This field corresponds to MENU_WIDTH skin property.
039: * See its comment for further details.
040: */
041: public static int WIDTH;
042:
043: /**
044: * This field corresponds to MENU_HEIGHT skin property.
045: * See its comment for further details.
046: */
047: public static int HEIGHT;
048:
049: /**
050: * This field corresponds to MENU_ALIGN_X skin property.
051: * See its comment for further details.
052: */
053: public static int ALIGN_X;
054:
055: /**
056: * This field corresponds to MENU_ALIGN_Y skin property.
057: * See its comment for further details.
058: */
059: public static int ALIGN_Y;
060:
061: /**
062: * This field corresponds to MENU_TITLE_X skin property.
063: * See its comment for further details.
064: */
065: public static int TITLE_X;
066:
067: /**
068: * This field corresponds to MENU_TITLE_Y skin property.
069: * See its comment for further details.
070: */
071: public static int TITLE_Y;
072:
073: /**
074: * This field corresponds to MENU_TITLE_MAXWIDTH skin property.
075: * See its comment for further details.
076: */
077: public static int TITLE_MAXWIDTH;
078:
079: /**
080: * This field corresponds to MENU_TITLE_ALIGN skin property.
081: * See its comment for further details.
082: */
083: public static int TITLE_ALIGN;
084:
085: /**
086: * This field corresponds to MENU_MAX_ITEMS skin property.
087: * See its comment for further details.
088: */
089: public static int MAX_ITEMS;
090:
091: /**
092: * This field corresponds to MENU_ITEM_HEIGHT skin property.
093: * See its comment for further details.
094: */
095: public static int ITEM_HEIGHT;
096:
097: /**
098: * This field corresponds to MENU_ITEM_TOPOFFSET skin property.
099: * See its comment for further details.
100: */
101: public static int ITEM_TOPOFFSET;
102:
103: /**
104: * This field corresponds to MENU_ITEM_INDEX_ANCHOR_X skin property.
105: * See its comment for further details.
106: */
107: public static int ITEM_INDEX_ANCHOR_X;
108:
109: /**
110: * This field corresponds to MENU_ITEM_ANCHOR_X skin property.
111: * See its comment for further details.
112: */
113: public static int ITEM_ANCHOR_X;
114:
115: /**
116: * This field corresponds to MENU_COLOR_BG skin property.
117: * See its comment for further details.
118: */
119: public static int COLOR_BG;
120:
121: /**
122: * This field corresponds to MENU_COLOR_BG_SEL skin property.
123: * See its comment for further details.
124: */
125: public static int COLOR_BG_SEL;
126:
127: /**
128: * This field corresponds to MENU_COLOR_TITLE skin property.
129: * See its comment for further details.
130: */
131: public static int COLOR_TITLE;
132:
133: /**
134: * This field corresponds to MENU_COLOR_INDEX skin property.
135: * See its comment for further details.
136: */
137: public static int COLOR_INDEX;
138:
139: /**
140: * This field corresponds to MENU_COLOR_INDEX_SEL skin property.
141: * See its comment for further details.
142: */
143: public static int COLOR_INDEX_SEL;
144:
145: /**
146: * This field corresponds to MENU_COLOR_ITEM skin property.
147: * See its comment for further details.
148: */
149: public static int COLOR_ITEM;
150:
151: /**
152: * This field corresponds to MENU_COLOR_ITEM_SEL skin property.
153: * See its comment for further details.
154: */
155: public static int COLOR_ITEM_SEL;
156:
157: /**
158: * This field corresponds to MENU_TEXT_TITLE skin property.
159: * See its comment for further details.
160: *
161: * A 'null' value indicates this system menu does not have a title.
162: */
163: public static String TEXT_TITLE;
164:
165: /**
166: * This field corresponds to MENU_FONT_TITLE skin property.
167: * See its comment for further details.
168: */
169: public static Font FONT_TITLE;
170:
171: /**
172: * This field corresponds to MENU_FONT_ITEM skin property.
173: * See its comment for further details.
174: */
175: public static Font FONT_ITEM;
176:
177: /**
178: * This field corresponds to MENU_FONT_ITEM_SEL skin property.
179: * See its comment for further details.
180: */
181: public static Font FONT_ITEM_SEL;
182:
183: /**
184: * This field corresponds to MENU_IMAGE_BG skin property.
185: * See its comment for further details.
186: *
187: * A 'null' value for this array means there is no image background
188: * and a solid fill color should be used.
189: */
190: public static Image[] IMAGE_BG;
191:
192: /**
193: * This field corresponds to MENU_IMAGE_ITEM_SEL_BG skin property.
194: * See its comment for further details.
195: *
196: * A 'null' value for this array means there is no image background
197: * and a solid fill color should be used.
198: */
199: public static Image[] IMAGE_ITEM_SEL_BG;
200:
201: /**
202: * This field corresponds to MENU_IMAGE_SUBMENU skin property.
203: * See its comment for further details.
204: */
205: public static Image IMAGE_SUBMENU_ARROW;
206:
207: /**
208: * This field corresponds to MENU_IMAGE_SUBMENU_HL skin property.
209: * See its comment for further details.
210: */
211: public static Image IMAGE_SUBMENU_ARROW_HL;
212:
213: /**
214: * Private constructor
215: */
216: private MenuSkin() {
217: }
218: }
|