亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? font.java

?? 有關j2me的很好的例子可以研究一下
?? JAVA
字號:
/* * @(#)Font.java	1.23 01/07/12 * Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved. * * This software is the confidential and proprietary information of Sun * Microsystems, Inc. ("Confidential Information").  You shall not * disclose such Confidential Information and shall use it only in * accordance with the terms of the license agreement you entered into * with Sun. * * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING * THIS SOFTWARE OR ITS DERIVATIVES. */package javax.microedition.lcdui;/** * <p> The Font class represents fonts and font metrics. Fonts cannot be * created by applications. Instead, applications query for fonts based on * font attributes and the system will attempt to provide a font that matches * the requested attributes as closely as possible. </p> * * <p> A Font's attributes are style, size, and face. Values for * attributes must be specified in terms of symbolic constants. Values for * the style attribute may be combined using the logical OR operator, * whereas values for the other attributes may not be combined. For example, * the value </p> * * <p> <code> * STYLE_BOLD | STYLE_ITALIC * </code> </p> * * <p> may be used to specify a bold-italic font; however </p> * * <p> <code> * SIZE_LARGE | SIZE_SMALL * </code> </p> * * <p> is illegal. </p> * * <p> The values of these constants are arranged so that zero is valid for * each attribute and can be used to specify a reasonable default font * for the system. For clarity of programming, the following symbolic * constants are provided and are defined to have values of zero: </p> * * <p> <ul> * <li> <code> STYLE_PLAIN </code> </li> * <li> <code> SIZE_MEDIUM </code> </li> * <li> <code> FACE_SYSTEM </code> </li> * </ul> </p> * * <p> Values for other attributes are arranged to have disjoint bit patterns * in order to raise errors if they are inadvertently misused (for example, * using FACE_PROPORTIONAL where a style is required). However, the values * for the different attributes are not intended to be combined with each * other. </p> */public final class Font {    /**     * <P>The plain style constant. This may be combined with the     * other style constants for mixed styles. </p>     *     * <P>Value 0 is assigned to STYLE_PLAIN.</P>     */    public static final int STYLE_PLAIN       = 0;    /**     * <P>The bold style constant. This may be combined with the     * other style constants for mixed styles.</P>     *     * <P>Value 1 is assigned to STYLE_BOLD.</P>     */    public static final int STYLE_BOLD        = 1;    /**     * <P>The italicized style constant. This may be combined with     * the other style constants for mixed styles.</P>     *     * <P>Value 2 is assigned to STYLE_ITALIC.</P>     */    public static final int STYLE_ITALIC      = 2;    /**     * <P>The underlined style constant. This may be combined with     * the other style constants for mixed styles.</P>     *     * <P>Value 4 is assigned to STYLE_UNDERLINED.</P>     */    public static final int STYLE_UNDERLINED  = 4;    /**     * <P>The "small" system-dependent font size.</P>     *     * <P>Value 8 is assigned to STYLE_SMALL.</P>     */    public static final int SIZE_SMALL        = 8;    /**     * The "medium" system-dependent font size.     *     * <P>Value 0 is assigned to STYLE_MEDIUM.</P>     */    public static final int SIZE_MEDIUM       = 0;    /**     * <P>The "large" system-dependent font size.</P>     *     * <P>Value 16 is assigned to SIZE_LARGE.</P>     */    public static final int SIZE_LARGE        = 16;    /**     * <P>The "system" font face.</P>     *     * <P>Value 0 is assigned to FACE_SYSTEM.</P>     */    public static final int FACE_SYSTEM       = 0;    /**     * <P>The "monospace" font face.</P>     *     * <P>Value 32 is assigned to FACE_MONOSPACE.</P>     */    public static final int FACE_MONOSPACE    = 32;    /**     * <P>The "proportional" font face.</P>     *     * <P>Value 64 is assigned to FACE_PROPORTIONAL.</P>     */    public static final int FACE_PROPORTIONAL = 64;    /**     * Construct a new Font object     *     * @param face The face to use to construct the Font     * @param style The style to use to construct the Font     * @param size The point size to use to construct the Font     */    private Font(int face, int style, int size) {        this.face  = face;        this.style = style;        this.size  = size;        init(face, style, size);    }    /**     * Gets the default font of the system.     *     * @return Font The "default" font to use for the system     */    public static Font getDefaultFont() {        // SYNC NOTE: return of atomic value, no locking necessary        return DEFAULT_FONT;    }    /**     * <p> Obtains an object representing a font having the specified     * face, style,     * and size. If a matching font does not exist, the system will     * attempt to provide the closest match. This method <em>always</em> returns     * a valid font object, even if it is not a close match to the request. </p>     *     * @param face one of FACE_SYSTEM, FACE_MONOSPACE, or FACE_PROPORTIONAL     * @param style STYLE_PLAIN, or a combination of STYLE_BOLD,     * STYLE_ITALIC, and STYLE_UNDERLINED     * @param size one of SIZE_SMALL, SIZE_MEDIUM, or SIZE_LARGE     * @return instance the nearest font found     * @throws IllegalArgumentException if face, style, or size are not     * legal values     */    public static Font getFont(int face, int style, int size) {        if ((face != FACE_SYSTEM)             && (face != FACE_MONOSPACE)            && (face != FACE_PROPORTIONAL)) {            throw new IllegalArgumentException("Unsupported face");        }        if ((style & ((STYLE_UNDERLINED << 1) - 1)) != style) {            throw new IllegalArgumentException("Illegal style");        }        if ((size != SIZE_SMALL)             && (size != SIZE_MEDIUM)            && (size != SIZE_LARGE)) {            throw new IllegalArgumentException("Unsupported size");        }        synchronized (Display.LCDUILock) {            /* RFC: this makes garbage.  But hashtables need Object keys. */            Integer key = new Integer(face | style | size);            Font f = (Font)table.get(key);            if (f == null) {                f = new Font(face, style, size);                table.put(key, f);            }            return f;        }    }    /**     * Gets the style of the font. The value is an OR'ed combination of     * STYLE_BOLD, STYLE_ITALIC, and STYLE_UNDERLINED; or the value is     * zero (STYLE_PLAIN).     * @return style of the current font     *     * @see #isPlain()     * @see #isBold()     * @see #isItalic()     */    public int getStyle() {        // SYNC NOTE: return of atomic value, no locking necessary        return style;    };    /**     * Gets the size of the font.     *     * @return one of SIZE_SMALL, SIZE_MEDIUM, SIZE_LARGE     */    public int getSize() {        // SYNC NOTE: return of atomic value, no locking necessary        return size;    }    /**     * Gets the face of the font.     *     * @return one of FACE_SYSTEM, FACE_PROPORTIONAL, FACE_MONOSPACE     */    public int getFace() {         // SYNC NOTE: return of atomic value, no locking necessary        return face;    }    /**     * Returns true if the font is plain.     * @see #getStyle()     * @return true if font is plain     */    public boolean isPlain() {        // SYNC NOTE: return of atomic value, no locking necessary        return style == STYLE_PLAIN;    }    /**     * Returns true if the font is bold.     * @see #getStyle()     * @return true if font is bold     */    public boolean isBold() {        // SYNC NOTE: return of atomic value, no locking necessary        return (style & STYLE_BOLD) == STYLE_BOLD;    }      /**     * Returns true if the font is italic.     * @see #getStyle()     * @return true if font is italic     */    public boolean isItalic() {        // SYNC NOTE: return of atomic value, no locking necessary        return (style & STYLE_ITALIC) == STYLE_ITALIC;    }    /**     * Returns true if the font is underlined.     * @see #getStyle()     * @return true if font is underlined     */    public boolean isUnderlined() {        // SYNC NOTE: return of atomic value, no locking necessary        return (style & STYLE_UNDERLINED) == STYLE_UNDERLINED;    }            /**     * Gets the standard height of a line of text in this font. This value     * includes sufficient spacing to ensure that lines of text painted this     * distance from anchor point to anchor point are spaced as intended by the     * font designer and the device. This extra space (leading) occurs below the     * text.     * @return standard height of a line of text in this font (a non-negative     * value)     */    public int getHeight() {        // SYNC NOTE: return of atomic value, no locking necessary        return height;    }    /**     * Gets the distance in pixels from the top of the text to the text's     * baseline.     * @return the distance in pixels from the top of the text to the text's     * baseline     */    public int getBaselinePosition() {        // SYNC NOTE: return of atomic value, no locking necessary        return baseline;    }    /**     * Gets the advance width of the specified character in this Font.     * The advance width is the amount by which the current point is     * moved from one character to the next in a line of text, and thus includes     * proper inter-character spacing. This spacing occurs to the right of the     * character.     * @param ch the character to be measured     * @return the total advance width (a non-negative value)     */    public native int charWidth(char ch);    /**     * Returns the advance width of the characters in ch, starting at     * the specified offset and for the specified number of characters     * (length). The advance width is the amount by which the current     * point is moved from one character to the next in a line of text. <p>     *     * The offset and length parameters must specify a valid range of characters     * within the character array ch. The offset parameter must be within the     * range [0..(ch.length)]. The length parameter must be a non-negative     * integer such that (offset + length) <= ch.length.     *     * @param ch The array of characters     * @param offset The index of the first character to measure     * @param length The number of characters to measure     * @return the width of the character range     * @throws ArrayIndexOutOfBoundsException if offset and length specify an     * invalid range     * @throws NullPointerException if ch is null     */    public native int charsWidth(char[] ch, int offset, int length);    /**     * Gets the total advance width for showing the specified String     * in this Font.     * The advance width is the amount by which the current point is     * moved from one character to the next in a line of text.     * @param str the String to be measured.     * @return the total advance width     * @throws NullPointerException if str is null     */    public native int stringWidth(java.lang.String str);    /**     * Gets the total advance width for showing the specified substring in this     * Font. The advance width is the amount by which the current point is moved     * from one character to the next in a line of text. <p>     *     * The offset and length parameters must specify a valid range of characters     * within str. The offset parameter must be within the     * range [0..(str.length())]. The length parameter must be a non-negative     * integer such that (offset + length) <= str.length().     *     * @param str the String to be measured.     * @param offset zero-based index of first character in the substring     * @param len length of the substring.     * @return the total advance width     * @throws StringIndexOutOfBoundsException if offset and length specify an     * invalid range     * @throws NullPointerException if str is null     */    public native int substringWidth(String str, int offset, int len);    // private implementation //    /** The face of this Font */    private int face;    /** The style of this Font */    private int style;    /** The point size of this Font */    private int size;    /** The baseline of this Font */    private int baseline;    /** The height of this Font */    private int height;    /**     * The "default" font, constructed from the 'system' face,     * plain style, and 'medium' size point.     */    private static final Font DEFAULT_FONT = new Font(FACE_SYSTEM,                                                      STYLE_PLAIN,                                                      SIZE_MEDIUM);    /**     * A hashtable used to maintain a store of created Fonts     * so they are not re-created in the future     */    private static java.util.Hashtable table = new java.util.Hashtable(4);    /**     * Natively initialize this Font object's peer     *     * @param face The face to initialize the native Font     * @param style The style to initialize the native Font     * @param size The point size to initialize the native Font     */    private native void init(int face, int style, int size);}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美国产系列| 97超碰欧美中文字幕| 香蕉加勒比综合久久| 亚洲三级免费电影| 午夜精品免费在线| 日本aⅴ亚洲精品中文乱码| 亚洲成人在线免费| 麻豆一区二区在线| 成人aaaa免费全部观看| 色综合天天综合网天天看片| 99久久婷婷国产综合精品电影| 蜜臀av性久久久久蜜臀aⅴ四虎| 1024国产精品| 亚洲超碰97人人做人人爱| 日韩在线一区二区| 琪琪久久久久日韩精品| 国产电影精品久久禁18| 91视频www| 日韩精品自拍偷拍| 自拍偷在线精品自拍偷无码专区| 一区二区成人在线| 国内久久精品视频| 91传媒视频在线播放| 精品国产乱码91久久久久久网站| 国产精品欧美一区喷水| 日韩电影在线观看一区| 国产成人免费9x9x人网站视频| 成人免费毛片a| 欧美一二三区在线| 亚洲啪啪综合av一区二区三区| 一区二区不卡在线播放 | 亚洲精品国产品国语在线app| 蜜臀久久99精品久久久画质超高清 | 无码av免费一区二区三区试看| 国产在线不卡一区| 精品欧美一区二区久久| 一区二区三区**美女毛片| av电影在线观看完整版一区二区| 日韩一区二区电影| 美女视频一区二区| 欧美精品久久久久久久久老牛影院| 国产精品女同一区二区三区| 亚洲女爱视频在线| 亚洲第一精品在线| 欧美日韩一本到| 亚洲色图.com| 成人av网址在线| 国产精品久久久久久久久免费丝袜 | 亚洲成人精品影院| 欧美日韩视频在线一区二区| 五月天一区二区三区| 日韩一区二区三区在线观看| 亚洲成人福利片| 日韩一级黄色片| 福利电影一区二区| 一个色在线综合| 在线播放视频一区| 精品一区二区三区免费观看 | 亚洲特级片在线| 欧美调教femdomvk| 婷婷国产v国产偷v亚洲高清| 日韩欧美色电影| av动漫一区二区| 婷婷成人综合网| 久久婷婷国产综合国色天香| 成人18精品视频| 免费高清视频精品| 中文字幕一区二区不卡| 欧美精品黑人性xxxx| 成人免费视频国产在线观看| 五月天激情综合网| 亚洲三级电影网站| 欧美精品一区二区三区蜜臀| 91成人免费在线| 成人永久aaa| 久久国产乱子精品免费女| 精品少妇一区二区三区日产乱码 | 欧美在线视频你懂得| 国产成人鲁色资源国产91色综 | 欧美色图激情小说| 91免费观看在线| 91色在线porny| 国产99精品国产| 国产乱码一区二区三区| 日本在线观看不卡视频| 亚洲成人免费观看| 亚洲mv大片欧洲mv大片精品| 一区二区三区四区激情| 国产精品久久久久天堂| 亚洲欧美在线另类| 亚洲色欲色欲www| 伊人色综合久久天天| 亚洲人午夜精品天堂一二香蕉| 国产精品成人一区二区艾草| 久久久一区二区三区捆绑**| 国产亚洲一区二区在线观看| 久久夜色精品一区| 国产亚洲欧洲一区高清在线观看| 久久众筹精品私拍模特| 日本一区二区免费在线| 中文字幕中文字幕一区二区| 日韩毛片视频在线看| 偷拍自拍另类欧美| 裸体一区二区三区| 国内外成人在线| 91在线免费视频观看| 欧美精品色一区二区三区| 久久综合狠狠综合久久综合88| 国产精品私人影院| 日韩国产一区二| 北条麻妃国产九九精品视频| 欧美性xxxxx极品少妇| 26uuu亚洲综合色| 亚洲已满18点击进入久久| 中文字幕第一区第二区| 26uuu国产一区二区三区| 国产精品国产三级国产普通话蜜臀| 亚洲自拍偷拍综合| thepron国产精品| 91精品国产aⅴ一区二区| 国产精品久线在线观看| 久久国产精品露脸对白| 在线观看日韩国产| 亚洲欧美在线高清| 成人免费视频视频在线观看免费| 91精品国产日韩91久久久久久| 伊人夜夜躁av伊人久久| 99久久久国产精品免费蜜臀| 亚洲精品在线三区| 久久国产成人午夜av影院| 91精品中文字幕一区二区三区| 亚洲素人一区二区| 色婷婷狠狠综合| 亚洲免费在线电影| 色婷婷综合视频在线观看| 成人免费视频在线观看| 99re8在线精品视频免费播放| 中国色在线观看另类| 99久久精品国产毛片| 国产精品久久久久aaaa| 成人视屏免费看| 亚洲最大的成人av| 欧美日韩一区二区三区在线| 亚洲午夜免费电影| 欧美三级欧美一级| 国产一区二区导航在线播放| 国产精品久久午夜夜伦鲁鲁| 91在线小视频| 首页欧美精品中文字幕| 久久综合久久鬼色中文字| 国产91精品在线观看| 亚洲成人午夜电影| 2021中文字幕一区亚洲| 暴力调教一区二区三区| 日本不卡的三区四区五区| 久久免费午夜影院| 在线精品视频免费观看| 久久福利视频一区二区| 亚洲人吸女人奶水| 久久久久国产精品人| 欧美性色黄大片| 国产成人在线电影| 日韩精品免费视频人成| 欧美在线不卡视频| 福利一区在线观看| 美女视频黄 久久| 一区二区三区欧美日韩| 欧美高清在线一区二区| 91精品国产欧美一区二区成人| 99这里都是精品| 国产福利91精品一区二区三区| 免费在线看一区| 天天色综合成人网| 亚洲成人激情av| 日本不卡的三区四区五区| 午夜视频在线观看一区二区三区 | 美女视频一区在线观看| 国产精品久久久一本精品| 久久99精品久久久久婷婷| 亚洲国产一区二区三区| 欧美国产日韩在线观看| aaa欧美色吧激情视频| 国产麻豆精品视频| 国产毛片精品国产一区二区三区| 免费高清视频精品| 国产精品视频免费| 日本一区二区免费在线| 久久久亚洲精华液精华液精华液| 91麻豆精品国产自产在线观看一区 | 国产成人免费视频| 蜜桃精品视频在线| 玖玖九九国产精品| 国产呦萝稀缺另类资源| 麻豆精品精品国产自在97香蕉| 免费观看一级特黄欧美大片| 1区2区3区精品视频| 国产精品久久久久影院老司| 国产精品初高中害羞小美女文| 4438x亚洲最大成人网| 欧美性生活久久|