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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? css.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
	 * @param key the <code>StyleConstants</code> attribute	 * @return the <code>StyleConstants</code> attribute value that 	 *   represents the CSS attribute value	 */	Object toStyleConstants(StyleConstants key, View v) {	    if (key == StyleConstants.Italic) {		if (svalue.indexOf("italic") >= 0) {		    return Boolean.TRUE;		}		return Boolean.FALSE;	    } else if (key == StyleConstants.Underline) {		if (svalue.indexOf("underline") >= 0) {		    return Boolean.TRUE;		} 		return Boolean.FALSE;	    } else if (key == StyleConstants.Alignment) {		if (svalue.equals("right")) {		    return new Integer(StyleConstants.ALIGN_RIGHT);		} else if (svalue.equals("center")) {		    return new Integer(StyleConstants.ALIGN_CENTER);		} else if  (svalue.equals("justify")) {		    return new Integer(StyleConstants.ALIGN_JUSTIFIED);		}		return new Integer(StyleConstants.ALIGN_LEFT);	    } else if (key == StyleConstants.StrikeThrough) {		if (svalue.indexOf("line-through") >= 0) {		    return Boolean.TRUE;		} 		return Boolean.FALSE;	    } else if (key == StyleConstants.Superscript) {		if (svalue.indexOf("super") >= 0) {		    return Boolean.TRUE;		} 		return Boolean.FALSE;	    } else if (key == StyleConstants.Subscript) {		if (svalue.indexOf("sub") >= 0) {		    return Boolean.TRUE;		} 		return Boolean.FALSE;	    }	    return null;	}	// Used by ViewAttributeSet	boolean isItalic() {	    return (svalue.indexOf("italic") != -1);	}	boolean isStrike() {	    return (svalue.indexOf("line-through") != -1);	}	boolean isUnderline() {	    return (svalue.indexOf("underline") != -1);	}	boolean isSub() {	    return (svalue.indexOf("sub") != -1);	}	boolean isSup() {	    return (svalue.indexOf("sup") != -1);	}    }    /**     * Represents a value for the CSS.FONT_SIZE attribute.     * The binary format of the value can be one of several     * types.  If the type is Float,     * the value is specified in terms of point or     * percentage, depending upon the ending of the     * associated string.     * If the type is Integer, the value is specified     * in terms of a size index.     */    class FontSize extends CssValue {	/**	 * Returns the size in points.  This is ultimately	 * what we need for the purpose of creating/fetching	 * a Font object.	 *	 * @param a the attribute set the value is being	 *  requested from.  We may need to walk up the	 *  resolve hierarchy if it's relative.	 */	float getValue(AttributeSet a, StyleSheet ss) {            ss = getStyleSheet(ss);	    if (index) {		// it's an index, translate from size table		return getPointSize((int) value, ss);	    }	    else if (lu == null) {		return value;	    }	    else {		if (lu.type == 0) {                    boolean isW3CLengthUnits = (ss == null) ? false : ss.isW3CLengthUnits();                    return lu.getValue(isW3CLengthUnits);		}		if (a != null) {		    AttributeSet resolveParent = a.getResolveParent();		    if (resolveParent != null) {			int pValue = StyleConstants.getFontSize(resolveParent);			float retValue;			if (lu.type == 1 || lu.type == 3) {			    retValue = lu.value * (float)pValue;			}			else {			    retValue = lu.value + (float)pValue;			}			return retValue;		    }		}		// a is null, or no resolve parent.		return 12;	    }	}	Object parseCssValue(String value) {	    FontSize fs = new FontSize();	    fs.svalue = value;	    try {		if (value.equals("xx-small")) {		    fs.value = 1;		    fs.index = true;		} else if (value.equals("x-small")) {		    fs.value = 2;		    fs.index = true;		} else if (value.equals("small")) {		    fs.value = 3;		    fs.index = true;		} else if (value.equals("medium")) {		    fs.value = 4;		    fs.index = true;		} else if (value.equals("large")) {		    fs.value = 5;		    fs.index = true;		} else if (value.equals("x-large")) {		    fs.value = 6;		    fs.index = true;		} else if (value.equals("xx-large")) {		    fs.value = 7;		    fs.index = true;		} else {		    fs.lu = new LengthUnit(value, (short)1, 1f);		}		// relative sizes, larger | smaller (adjust from parent by		// 1.5 pixels)		// em, ex refer to parent sizes		// lengths: pt, mm, cm, pc, in, px		//          em (font height 3em would be 3 times font height)		//          ex (height of X)		// lengths are (+/-) followed by a number and two letter		// unit identifier	    } catch (NumberFormatException nfe) {		fs = null;	    }	    return fs;	}	Object parseHtmlValue(String value) {	    FontSize fs = new FontSize();	    fs.svalue = value;	    try {		/*		 * relative sizes in the size attribute are relative		 * to the <basefont>'s size.		 */		int baseFontSize = getBaseFontSize();		if ((value != null) && (value.charAt(0) == '+')) {		    int relSize = Integer.valueOf(value.substring(1)).intValue();		    fs.value = baseFontSize + relSize;		    fs.index = true;		} else if ((value != null) && (value.charAt(0) == '-')) {		    int relSize = -Integer.valueOf(value.substring(1)).intValue();		    fs.value = baseFontSize + relSize;		    fs.index = true;		} else {		    fs.value = Integer.parseInt(value);		    if (fs.value > 7) {			fs.value = 7;		    } else if (fs.value < 0) {			fs.value = 0;		    }		    fs.index = true;		}	    } catch (NumberFormatException nfe) {		fs = null;	    }	    return fs;	}	/**	 * Converts a <code>StyleConstants</code> attribute value to	 * a CSS attribute value.  If there is no conversion	 * returns <code>null</code>.  By default, there is no conversion.	 * 	 * @param key the <code>StyleConstants</code> attribute	 * @param value the value of a <code>StyleConstants</code>	 *   attribute to be converted	 * @return the CSS value that represents the          *   <code>StyleConstants</code> value	 */	Object fromStyleConstants(StyleConstants key, Object value) {            if (value instanceof Number) {                FontSize fs = new FontSize();                fs.value = getIndexOfSize(((Number)value).floatValue(), StyleSheet.sizeMapDefault);                fs.svalue = Integer.toString((int)fs.value);                fs.index = true;                return fs;            }            return parseCssValue(value.toString());	}	/**	 * Converts a CSS attribute value to a <code>StyleConstants</code>	 * value.  If there is no conversion, returns <code>null</code>.	 * By default, there is no conversion.	 *	 * @param key the <code>StyleConstants</code> attribute	 * @return the <code>StyleConstants</code> attribute value that 	 *   represents the CSS attribute value	 */	Object toStyleConstants(StyleConstants key, View v) {	    if (v != null) {		return new Integer((int) getValue(v.getAttributes(), null));	    }	    return new Integer((int) getValue(null, null));	}	float value;	boolean index;	LengthUnit lu;    }    static class FontFamily extends CssValue {	/**         * Returns the font family to use.	 */	String getValue() {	    return family;	}	Object parseCssValue(String value) {	    int cIndex = value.indexOf(',');	    FontFamily ff = new FontFamily();	    ff.svalue = value;	    ff.family = null;	    if (cIndex == -1) {		setFontName(ff, value);	    }	    else {		boolean done = false;		int lastIndex;		int length = value.length();		cIndex = 0;		while (!done) {		    // skip ws.		    while (cIndex < length &&			   Character.isWhitespace(value.charAt(cIndex)))			cIndex++;		    // Find next ','		    lastIndex = cIndex;		    cIndex = value.indexOf(',', cIndex);		    if (cIndex == -1) {			cIndex = length;		    }		    if (lastIndex < length) {			if (lastIndex != cIndex) {			    int lastCharIndex = cIndex;			    if (cIndex > 0 && value.charAt(cIndex - 1) == ' '){				lastCharIndex--;			    }			    setFontName(ff, value.substring					(lastIndex, lastCharIndex));			    done = (ff.family != null);			}			cIndex++;		    }		    else {			done = true;		    }		}	    }	    if (ff.family == null) {		ff.family = "SansSerif";	    }	    return ff;	}	private void setFontName(FontFamily ff, String fontName) {            ff.family = fontName;        }	Object parseHtmlValue(String value) {	    // TBD	    return parseCssValue(value);	}	/**	 * Converts a <code>StyleConstants</code> attribute value to	 * a CSS attribute value.  If there is no conversion	 * returns <code>null</code>.  By default, there is no conversion.	 * 	 * @param key the <code>StyleConstants</code> attribute	 * @param value the value of a <code>StyleConstants</code>	 *   attribute to be converted	 * @return the CSS value that represents the          *   <code>StyleConstants</code> value	 */	Object fromStyleConstants(StyleConstants key, Object value) {	    return parseCssValue(value.toString());	}	/**	 * Converts a CSS attribute value to a <code>StyleConstants</code>	 * value.  If there is no conversion, returns <code>null</code>.	 * By default, there is no conversion.	 *	 * @param key the <code>StyleConstants</code> attribute	 * @return the <code>StyleConstants</code> attribute value that 	 *   represents the CSS attribute value	 */	Object toStyleConstants(StyleConstants key, View v) {	    return family;	}	String family;    }    static class FontWeight extends CssValue {	int getValue() {	    return weight;	}	Object parseCssValue(String value) {	    FontWeight fw = new FontWeight();	    fw.svalue = value;	    if (value.equals("bold")) {		fw.weight = 700;	    } else if (value.equals("normal")) {		fw.weight = 400;	    } else {		// PENDING(prinz) add support for relative values		try {		    fw.weight = Integer.parseInt(value);		} catch (NumberFormatException nfe) {		    fw = null;		}	    }	    return fw;	}	/**	 * Converts a <code>StyleConstants</code> attribute value to	 * a CSS attribute value.  If there is no conversion	 * returns <code>null</code>.  By default, there is no conversion.	 * 	 * @param key the <code>StyleConstants</code> attribute	 * @param value the value of a <code>StyleConstants</code>	 *   attribute to be converted	 * @return the CSS value that represents the          *   <code>StyleConstants</code> value	 */	Object fromStyleConstants(StyleConstants key, Object value) {	    if (value.equals(Boolean.TRUE)) {		return parseCssValue("bold");	    }	    return parseCssValue("normal");	}	/**	 * Converts a CSS attribute value to a <code>StyleConstants</code>	 * value.  If there is no conversion, returns <code>null</code>.	 * By default, there is no conversion.	 *	 * @param key the <code>StyleConstants</code> attribute	 * @return the <code>StyleConstants</code> attribute value that 	 *   represents the CSS attribute value	 */	Object toStyleConstants(StyleConstants key, View v) {	    return (weight > 500) ? Boolean.TRUE : Boolean.FALSE;	}	boolean isBold() {	    return (weight > 500);	}	int weight;    }    static class Color

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久久久一级片| 福利91精品一区二区三区| 日韩三级视频在线看| 日韩高清一区在线| 久久午夜免费电影| 91在线播放网址| 日韩av二区在线播放| 中文字幕欧美国产| 欧美日本视频在线| 国产乱淫av一区二区三区| 日本一区二区三区高清不卡| 色噜噜夜夜夜综合网| 九色综合国产一区二区三区| 亚洲图片你懂的| 欧美成人a视频| 欧美日韩一区精品| 波多野结衣中文一区| 日日摸夜夜添夜夜添精品视频| 国产目拍亚洲精品99久久精品| 欧美午夜精品一区| 99在线热播精品免费| 美国欧美日韩国产在线播放| 一区二区视频在线| 欧美国产综合一区二区| 日韩欧美国产一区二区三区| 欧美日韩免费电影| 91免费国产在线观看| 国产精品18久久久久久vr| 丝袜脚交一区二区| 国产日韩影视精品| 精品国产乱码久久久久久牛牛| 欧美军同video69gay| 欧美综合视频在线观看| 99riav久久精品riav| 国产不卡在线一区| 国产盗摄视频一区二区三区| av影院午夜一区| 亚洲一区自拍偷拍| 国产精品国产a级| 国产精品午夜电影| 午夜免费久久看| 一区二区三区美女| 最近中文字幕一区二区三区| 国产精品女主播av| 国产日韩视频一区二区三区| 久久夜色精品国产噜噜av| 精品国产髙清在线看国产毛片| 91麻豆精品国产自产在线观看一区| 91久久精品网| 在线观看亚洲精品| 日韩一级欧美一级| 久久网站最新地址| 中文字幕av不卡| 亚洲精品欧美在线| 天天免费综合色| 国内久久精品视频| 91在线观看高清| 欧美电影在哪看比较好| 国产精品天干天干在线综合| 一区二区三区波多野结衣在线观看| 亚洲成人免费影院| 国产一区二区三区久久久| 成人国产精品免费观看视频| 99r国产精品| 精品美女在线观看| 欧美激情一区二区三区四区| 首页欧美精品中文字幕| 国产成人午夜视频| 欧美三级中文字幕在线观看| 欧美精品一区二区高清在线观看| 中文字幕免费在线观看视频一区| 一区二区三区日韩在线观看| 蜜桃视频一区二区三区在线观看| 丁香天五香天堂综合| 欧美日韩激情一区| 国产精品丝袜一区| 久久se精品一区精品二区| 91美女在线观看| 中文字幕不卡的av| 91亚洲永久精品| 久久精品一区二区三区不卡 | 久久久电影一区二区三区| 一级日本不卡的影视| 国产盗摄视频一区二区三区| 日韩一区二区不卡| 成+人+亚洲+综合天堂| 欧美日韩亚洲高清一区二区| 日韩美女精品在线| 色偷偷久久人人79超碰人人澡| 久久蜜桃一区二区| 美女久久久精品| 日韩免费性生活视频播放| 天天射综合影视| 欧美精品18+| 免费观看久久久4p| 国产片一区二区| 国产精品一区二区果冻传媒| 欧美电影免费观看高清完整版| 日产国产欧美视频一区精品| 88在线观看91蜜桃国自产| 一区二区三区精品| 欧美肥妇free| 三级不卡在线观看| 精品久久久久一区| 成人激情校园春色| 亚洲黄色尤物视频| 日韩一区在线免费观看| 欧美色手机在线观看| 国产真实乱偷精品视频免| 久久久久久久精| 色妹子一区二区| 日韩精品乱码免费| 久久久久久久久久电影| 精品1区2区3区| 国产成人av一区二区| 亚洲资源在线观看| 国产午夜精品久久| 欧美日本一区二区在线观看| 国产精品性做久久久久久| 性做久久久久久久免费看| 国产欧美日本一区二区三区| 欧美亚洲禁片免费| 国产精品正在播放| 天天色 色综合| 麻豆国产一区二区| 亚洲另类春色校园小说| 欧美tk丨vk视频| 欧美日韩精品一二三区| 成人精品免费看| 奇米精品一区二区三区在线观看一| 欧美国产乱子伦| 久久久亚洲午夜电影| 精品国产乱码久久久久久老虎| 色94色欧美sute亚洲线路一久| 亚洲va在线va天堂| 亚洲精品国产a| 欧美国产1区2区| 久久亚洲一区二区三区四区| 91精品国产色综合久久| 欧美午夜片在线观看| 色乱码一区二区三区88| 成人午夜激情在线| 成人福利电影精品一区二区在线观看| 日本麻豆一区二区三区视频| 亚洲亚洲精品在线观看| 亚洲最大的成人av| 亚洲国产欧美日韩另类综合| 国产无人区一区二区三区| 久久久久久久精| 中文字幕一区视频| 一区二区三区成人在线视频| 亚洲国产精品久久人人爱蜜臀| 一级日本不卡的影视| 蜜臀av在线播放一区二区三区| 伦理电影国产精品| 久草精品在线观看| av在线播放不卡| 欧美丝袜丝交足nylons| 日韩精品中午字幕| 亚洲欧美自拍偷拍色图| 日韩国产高清在线| 北条麻妃一区二区三区| 欧美色偷偷大香| 制服丝袜成人动漫| 国产精品视频免费看| 亚洲国产wwwccc36天堂| 蜜臀av一区二区| 大胆亚洲人体视频| 欧美日韩色综合| 亚洲免费在线播放| 久久成人羞羞网站| 在线视频国产一区| 久久精品一区二区| 亚洲午夜久久久久久久久电影院| 国产一区二区三区四区五区入口| 色综合久久88色综合天天免费| 欧美成人一区二区三区片免费 | 91在线国内视频| 欧美一区二区三区爱爱| 日韩av网站在线观看| 99re成人精品视频| 久久精品一区二区三区四区| 日韩精品亚洲一区| 色呦呦日韩精品| 亚洲乱码日产精品bd | 亚洲视频资源在线| 国产成人综合网| 欧美电视剧在线观看完整版| 蜜桃一区二区三区在线| 91超碰这里只有精品国产| 亚洲日本一区二区| 99精品视频一区二区三区| 久久综合九色综合欧美就去吻| 一区二区三区在线高清| 欧美性猛交xxxx乱大交退制版 | 精品国产一区二区在线观看| 美女网站视频久久| 日韩欧美国产精品| 国产精品羞羞答答xxdd | 91毛片在线观看|