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 com.sun.midp.chameleon.skins.resources.*;
031:
032: /**
033: * ScrollIndSkin represents the properties and values used to render
034: * a ScrollIndLayer in the com.sun.microedition.chameleon.layers package.
035: */
036: public class ScrollIndSkin {
037: /**
038: * IMPL_NOTE: constants below have been moved to
039: * ScrollIndResourcesConstants class. However,
040: * they are duplicated here because this file is
041: * used by skin authors to lookup for possible
042: * constants values. This should be changed in
043: * future releases.
044: */
045:
046: /**
047: * An value for describing a scroll indicator which
048: * uses arrows in the soft button bar.
049: */
050: public final static int MODE_ARROWS = ScrollIndResourcesConstants.MODE_ARROWS;
051:
052: /**
053: * An value for describing a scroll indicator which
054: * uses a vertical bar with a thumb.
055: */
056: public final static int MODE_BAR = ScrollIndResourcesConstants.MODE_BAR;
057:
058: /**
059: * This field corresponds to SCROLL_MODE skin property.
060: * See its comment for further details.
061: */
062: public static int MODE;
063:
064: /**
065: * This field corresponds to SCROLL_WIDTH skin property.
066: * See its comment for further details.
067: */
068: public static int WIDTH;
069:
070: /**
071: * This field corresponds to SCROLL_COLOR_BG skin property.
072: * See its comment for further details.
073: */
074: public static int COLOR_BG;
075:
076: /**
077: * This field corresponds to SCROLL_COLOR_FG skin property.
078: * See its comment for further details.
079: */
080: public static int COLOR_FG;
081:
082: /**
083: * the arrow fill color when it's released
084: */
085: public static int COLOR_UP_ARROW;
086:
087: /**
088: * the arrow fill color when it's pressed
089: */
090: public static int COLOR_DN_ARROW;
091:
092: /**
093: * scroll bar frame color
094: */
095: public static int COLOR_FRAME;
096:
097: /**
098: * This field corresponds to SCROLL_IMAGE_BG skin property.
099: * See its comment for further details.
100: *
101: * A 'null' value for this array means there is no image background
102: * and a solid fill color should be used.
103: */
104: public static Image[] IMAGE_BG;
105:
106: /**
107: * This field corresponds to SCROLL_IMAGE_FG skin property.
108: * See its comment for further details.
109: *
110: * A 'null' value for this array means there is no image foreground
111: * and a solid fill color should be used.
112: */
113: public static Image[] IMAGE_FG;
114:
115: /**
116: * This field corresponds to SCROLL_IMAGE_UP skin property.
117: * See its comment for further details.
118: */
119: public static Image IMAGE_UP;
120:
121: /**
122: * This field corresponds to SCROLL_IMAGE_DN skin property.
123: * See its comment for further details.
124: */
125: public static Image IMAGE_DN;
126:
127: /**
128: * This field corresponds to SCROLL_COLOR_AU_BG skin property.
129: * See its comment for further details.
130: */
131: public static int COLOR_AU_BG;
132:
133: /**
134: * This field corresponds to SCROLL_COLOR_AU_FG skin property.
135: * See its comment for further details.
136: */
137: public static int COLOR_AU_FG;
138:
139: /**
140: * This field corresponds to SCROLL_IMAGE_AU_BG skin property.
141: * See its comment for further details.
142: *
143: * A 'null' value for this array means there is no image background
144: * and a solid fill color should be used.
145: */
146: public static Image[] IMAGE_AU_BG;
147:
148: /**
149: * This field corresponds to SCROLL_IMAGE_AU_FG skin property.
150: * See its comment for further details.
151: *
152: * A 'null' value for this array means there is no image background
153: * and a solid fill color should be used.
154: */
155: public static Image[] IMAGE_AU_FG;
156:
157: /**
158: * This field corresponds to SCROLL_IMAGE_AU_UP skin property.
159: * See its comment for further details.
160: */
161: public static Image IMAGE_AU_UP;
162:
163: /**
164: * This field corresponds to SCROLL_IMAGE_AU_DN skin property.
165: * See its comment for further details.
166: */
167: public static Image IMAGE_AU_DN;
168:
169: // private constructor
170: private ScrollIndSkin() {
171: }
172: }
|