⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 style.kingdom

📁 j2me下的1套UI框架.包含j2me开发中会应用的各种低级组件
💻 KINGDOM
字号:
package com.jmobilecore.ui.core;

import javax.microedition.lcdui.Font;

/**
 * Sets the style for the application.
 * This style is for Kingdom game (color screens)
 *
 * @author Greg Gridin
 */
public class Style {

    /**
     * Plain style small size font
     */
    public static final Font PLAIN_SMALL =
            Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_SMALL);

    /**
     * Plain style medium size font
     */
    public static final Font PLAIN_MEDIUM =
            Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_MEDIUM);

    /**
     * Plain style large size font
     */
    public static final Font PLAIN_LARGE =
            Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_PLAIN, Font.SIZE_LARGE);

    /**
     * Bold style small size font
     */
    public static final Font BOLD_SMALL =
            Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_SMALL);

    /**
     * Bold style medium size font
     */
    public static final Font BOLD_MEDIUM =
            Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_MEDIUM);

    /**
     * Bold style large size font
     */
    public static final Font BOLD_LARGE =
            Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_LARGE);

    /**
     * Default font to use for text
     */
    public final static Font TEXT_FONT = PLAIN_SMALL;

    /**
     * Default font to use for header text
     */
    public final static Font HEADER_FONT = BOLD_SMALL;

    /**
     * Default font to use for soft key text
     */
    public final static Font SOFTKEY_FONT = BOLD_SMALL;

    /**
     * Default font to use for text fields
     */
    public final static Font TEXT_FIELD_FONT = TEXT_FONT;

    /**
     * Default color for texts
     */
    public static final int TEXT_COLOR = Color.BLACK;

    /**
     * Color to use for component borders (example: textfield component)
     */
    public static final int BORDER_COLOR = Color.BLACK;

    /**
     * Default color for focused backgrounds
     */
    public static final int FOCUSED_BACKGROUND_COLOR = Color.DK_GREEN;

    /**
     * Default color for focused texts
     */
    public static final int FOCUSED_TEXT_COLOR = Color.WHITE;

    /**
     * Default color for cursor
     */
    public static final int CURSOR_TEXT_COLOR = Color.BLACK;

    /**
     * Default color for cursor background
     */
    public static final int CURSOR_BACKGROUND_COLOR = Color.WHITE;

    /**
     * Default color for scrollbar arrows
     */
    public static final int ARROW_COLOR = Color.BLACK;

    /**
     * Default color for screen title background
     */
    public static final int TITLE_BACKGROUND_COLOR = Color.LT_BLUE;

    /**
     * Default color for screen title text
     */
    public static final int TITLE_TEXT_COLOR = Color.BLACK;

    /**
     * Default color for SoftKeyBar background
     */
    public static final int SOFTKEYBAR_BACKGROUND_COLOR = Color.LT_YELLOW;

    /**
     * Default color for SoftKeyBar text
     */
    public static final int SOFTKEYBAR_TEXT_COLOR = Color.BLACK;

    /**
     * Vertical gap, in pixels, between components
     */
    public static final int V_GAP = 1;

    /**
     * Horizontal gap, in pixels, between components
     */
    public static final int H_GAP = 1;

    /**
     * Custom fields horizontal gap, in pixels, between block and separator
     */
    public static final int CF_H_GAP = 1;

    /**
     * Default background color
     */
    public static final int BACKGROUND_COLOR = Color.LT_GREEN;

    /**
     * Type of text fields
     */
    public static final boolean SCROLLABLE_TEXTFIELD = false;

    private Style() {
    }
} // class Style

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -