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

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

?? css.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
	int         current, last;	int         length = (value == null) ? 0 : value.length();	Vector      temp = new Vector(4);	current = 0;	while (current < length) {	    // Skip ws	    while (current < length && Character.isWhitespace		   (value.charAt(current))) {		current++;	    }	    last = current;	    while (current < length && !Character.isWhitespace		   (value.charAt(current))) {		current++;	    }	    if (last != current) {		temp.addElement(value.substring(last, current));	    }	    current++;	}	String[] retValue = new String[temp.size()];	temp.copyInto(retValue);	return retValue;    }    /**     * Return the point size, given a size index. Legal HTML index sizes     * are 1-7.     */    float getPointSize(int index, StyleSheet ss) {        ss = getStyleSheet(ss);        int[] sizeMap = (ss != null) ? ss.getSizeMap() :             StyleSheet.sizeMapDefault;        --index;	if (index < 0)	  return sizeMap[0];	else if (index > sizeMap.length - 1)	  return sizeMap[sizeMap.length - 1];	else	  return sizeMap[index];    }    private void translateEmbeddedAttributes(AttributeSet htmlAttrSet,					     MutableAttributeSet cssAttrSet) {	Enumeration keys = htmlAttrSet.getAttributeNames();	if (htmlAttrSet.getAttribute(StyleConstants.NameAttribute) ==	    HTML.Tag.HR) {	    // HR needs special handling due to us treating it as a leaf.	    translateAttributes(HTML.Tag.HR, htmlAttrSet, cssAttrSet);	}	while (keys.hasMoreElements()) {	    Object key = keys.nextElement();	    if (key instanceof HTML.Tag) {		HTML.Tag tag = (HTML.Tag)key;		Object o = htmlAttrSet.getAttribute(tag);		if (o != null && o instanceof AttributeSet) {		    translateAttributes(tag, (AttributeSet)o, cssAttrSet);		}	    } else if (key instanceof CSS.Attribute) {		cssAttrSet.addAttribute(key, htmlAttrSet.getAttribute(key));	    }	}    }    private void translateAttributes(HTML.Tag tag,					    AttributeSet htmlAttrSet,					    MutableAttributeSet cssAttrSet) {	Enumeration names = htmlAttrSet.getAttributeNames();	while (names.hasMoreElements()) {	    Object name = names.nextElement();	    if (name instanceof HTML.Attribute) {		HTML.Attribute key = (HTML.Attribute)name;		/*		 * HTML.Attribute.ALIGN needs special processing.		 * It can map to to 1 of many(3) possible CSS attributes		 * depending on the nature of the tag the attribute is		 * part off and depending on the value of the attribute.		 */		if (key == HTML.Attribute.ALIGN) {		    String htmlAttrValue = (String)htmlAttrSet.getAttribute(HTML.Attribute.ALIGN);		    if (htmlAttrValue != null) {			CSS.Attribute cssAttr = getCssAlignAttribute(tag, htmlAttrSet);			if (cssAttr != null) {			    Object o = getCssValue(cssAttr, htmlAttrValue);			    if (o != null) {				cssAttrSet.addAttribute(cssAttr, o);			    }			}		    }		} else {		    /*		     * The html size attribute has a mapping in the CSS world only		     * if it is par of a font or base font tag.		     */		    if (key == HTML.Attribute.SIZE && !isHTMLFontTag(tag)) {			continue;		    }		    translateAttribute(key, htmlAttrSet, cssAttrSet);		}	    } else if (name instanceof CSS.Attribute) {		cssAttrSet.addAttribute(name, htmlAttrSet.getAttribute(name));	    }	}    }    private void translateAttribute(HTML.Attribute key,					   AttributeSet htmlAttrSet,					   MutableAttributeSet cssAttrSet) {	/*	 * In the case of all remaining HTML.Attribute's they	 * map to 1 or more CCS.Attribute.	 */	CSS.Attribute[] cssAttrList = getCssAttribute(key);		String htmlAttrValue = (String)htmlAttrSet.getAttribute(key);		if (cssAttrList == null || htmlAttrValue == null) {	    return;	}	for (int i = 0; i < cssAttrList.length; i++) {	    Object o = getCssValue(cssAttrList[i], htmlAttrValue);	    if (o != null) {		cssAttrSet.addAttribute(cssAttrList[i], o);	    }	}    }    /**     * Given a CSS.Attribute object and its corresponding HTML.Attribute's     * value, this method returns a CssValue object to associate with the     * CSS attribute.     *     * @param the CSS.Attribute     * @param a String containing the value associated HTML.Attribtue.     */    Object getCssValue(CSS.Attribute cssAttr, String htmlAttrValue) {	CssValue value = (CssValue)valueConvertor.get(cssAttr);	Object o = value.parseHtmlValue(htmlAttrValue);	return o;    }    /**     * Maps an HTML.Attribute object to its appropriate CSS.Attributes.     *     * @param HTML.Attribute     * @return CSS.Attribute[]     */    private CSS.Attribute[] getCssAttribute(HTML.Attribute hAttr) {	return (CSS.Attribute[])htmlAttrToCssAttrMap.get(hAttr);    }    /**     * Maps HTML.Attribute.ALIGN to either:     *     CSS.Attribute.TEXT_ALIGN     *     CSS.Attribute.FLOAT     *     CSS.Attribute.VERTICAL_ALIGN     * based on the tag associated with the attribute and the     * value of the attribute.     *     * @param AttributeSet containing HTML attributes.     * @return CSS.Attribute mapping for HTML.Attribute.ALIGN.     */    private CSS.Attribute getCssAlignAttribute(HTML.Tag tag,						   AttributeSet htmlAttrSet) {	return CSS.Attribute.TEXT_ALIGN;/*	String htmlAttrValue = (String)htmlAttrSet.getAttribute(HTML.Attribute.ALIGN);	CSS.Attribute cssAttr = CSS.Attribute.TEXT_ALIGN;	if (htmlAttrValue != null && htmlAttrSet instanceof Element) {	    Element elem = (Element)htmlAttrSet;	    if (!elem.isLeaf() && tag.isBlock() && validTextAlignValue(htmlAttrValue)) {		return CSS.Attribute.TEXT_ALIGN;	    } else if (isFloater(htmlAttrValue)) {		return CSS.Attribute.FLOAT;	    } else if (elem.isLeaf()) {		return CSS.Attribute.VERTICAL_ALIGN;	    } 	}	return null;	*/    }    /**     * Fetches the tag associated with the HTML AttributeSet.     *     * @param  AttributeSet containing the HTML attributes.     * @return HTML.Tag     */    private HTML.Tag getHTMLTag(AttributeSet htmlAttrSet) {	Object o = htmlAttrSet.getAttribute(StyleConstants.NameAttribute);	if (o instanceof HTML.Tag) {	    HTML.Tag tag = (HTML.Tag) o;	    return tag;	}	return null;    }    private boolean isHTMLFontTag(HTML.Tag tag) {	return (tag != null && ((tag == HTML.Tag.FONT) || (tag == HTML.Tag.BASEFONT)));    }    private boolean isFloater(String alignValue) {	return (alignValue.equals("left") || alignValue.equals("right"));    }    private boolean validTextAlignValue(String alignValue) {	return (isFloater(alignValue) || alignValue.equals("center"));    }    /**     * Base class to CSS values in the attribute sets.  This     * is intended to act as a convertor to/from other attribute     * formats.     * <p>     * The CSS parser uses the parseCssValue method to convert     * a string to whatever format is appropriate a given key     * (i.e. these convertors are stored in a map using the     * CSS.Attribute as a key and the CssValue as the value).     * <p>     * The HTML to CSS conversion process first converts the     * HTML.Attribute to a CSS.Attribute, and then calls     * the parseHtmlValue method on the value of the HTML     * attribute to produce the corresponding CSS value.     * <p>     * The StyleConstants to CSS conversion process first      * converts the StyleConstants attribute to a      * CSS.Attribute, and then calls the fromStyleConstants     * method to convert the StyleConstants value to a      * CSS value.     * <p>     * The CSS to StyleConstants conversion process first     * converts the StyleConstants attribute to a      * CSS.Attribute, and then calls the toStyleConstants     * method to convert the CSS value to a StyleConstants     * value.     */    static class CssValue implements Serializable {	/**	 * Convert a CSS value string to the internal format	 * (for fast processing) used in the attribute sets.	 * The fallback storage for any value that we don't	 * have a special binary format for is a String. 	 */	Object parseCssValue(String value) {	    return value;	}	/**	 * Convert an HTML attribute value to a CSS attribute	 * value.  If there is no conversion, return null.	 * This is implemented to simply forward to the CSS	 * parsing by default (since some of the attribute	 * values are the same).  If the attribute value	 * isn't recognized as a CSS value it is generally	 * returned as null.	 */	Object parseHtmlValue(String value) {	    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 null;	}	/**	 * 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	 * @param v the view containing <code>AttributeSet</code>	 * @return the <code>StyleConstants</code> attribute value that 	 *   represents the CSS attribute value	 */	Object toStyleConstants(StyleConstants key, View v) {	    return null;	}	/**	 * Return the CSS format of the value	 */        public String toString() {	    return svalue;	}	/**	 * The value as a string... before conversion to a	 * binary format.	 */	String svalue;    }    /**     * By default CSS attributes are represented as simple     * strings.  They also have no conversion to/from     * StyleConstants by default. This class represents the      * value as a string (via the superclass), but      * provides StyleConstants conversion support for the      * CSS attributes that are held as strings.     */    static class StringValue extends CssValue {	/**	 * Convert a CSS value string to the internal format	 * (for fast processing) used in the attribute sets.	 * This produces a StringValue, so that it can be	 * used to convert from CSS to StyleConstants values.	 */	Object parseCssValue(String value) {	    StringValue sv = new StringValue();	    sv.svalue = value;	    return sv;	}	/**	 * Converts a <code>StyleConstants</code> attribute value to	 * a CSS attribute value.  If there is no conversion	 * returns <code>null</code>. 	 * 	 * @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 (key == StyleConstants.Italic) {		if (value.equals(Boolean.TRUE)) {		    return parseCssValue("italic");		}		return parseCssValue("");	    } else if (key == StyleConstants.Underline) {		if (value.equals(Boolean.TRUE)) {		    return parseCssValue("underline");		} 		return parseCssValue("");	    } else if (key == StyleConstants.Alignment) {		int align = ((Integer)value).intValue();		String ta;		switch(align) {		case StyleConstants.ALIGN_LEFT:		    ta = "left";		    break;		case StyleConstants.ALIGN_RIGHT:		    ta = "right";		    break;		case StyleConstants.ALIGN_CENTER:		    ta = "center";		    break;		case StyleConstants.ALIGN_JUSTIFIED:		    ta = "justify";		    break;		default:		    ta = "left";		}		return parseCssValue(ta);	    } else if (key == StyleConstants.StrikeThrough) {		if (value.equals(Boolean.TRUE)) {		    return parseCssValue("line-through");		} 		return parseCssValue("");	    } else if (key == StyleConstants.Superscript) {		if (value.equals(Boolean.TRUE)) {		    return parseCssValue("super");		}		return parseCssValue("");	    } else if (key == StyleConstants.Subscript) {		if (value.equals(Boolean.TRUE)) {		    return parseCssValue("sub");		}		return parseCssValue("");	    }	    return null;	}	/**	 * 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.	 *

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕在线一区免费| 香蕉av福利精品导航| 亚洲高清视频的网址| 激情六月婷婷久久| 欧美性大战xxxxx久久久| 久久日一线二线三线suv| 日韩欧美高清一区| 亚洲午夜在线视频| av综合在线播放| 精品国产露脸精彩对白| 亚洲午夜电影在线| 99视频精品免费视频| 精品999在线播放| 五月天国产精品| 一本大道久久a久久综合| 久久在线免费观看| 另类中文字幕网| 国产成人小视频| 2021久久国产精品不只是精品| 亚洲电影一级片| 在线免费观看成人短视频| 中文字幕一区二区三区视频| 国产精品国产三级国产有无不卡| 国产精品一区二区视频| 欧美日韩综合一区| 一区二区三区日本| 欧美中文字幕一区二区三区| 亚洲欧美一区二区久久 | 经典三级视频一区| 欧美日本一道本在线视频| 精品粉嫩aⅴ一区二区三区四区| 中文字幕一区二区三区在线观看| 国产成人精品一区二区三区四区| 精品国产一区二区亚洲人成毛片| 另类的小说在线视频另类成人小视频在线| 色偷偷88欧美精品久久久| 亚洲久草在线视频| 欧美性受xxxx黑人xyx性爽| 亚洲一区二区不卡免费| 欧美日韩久久久| 肉肉av福利一精品导航| 日韩欧美精品在线视频| 日韩成人伦理电影在线观看| 日韩一区二区三区电影在线观看| 免费av成人在线| 欧美成人精品3d动漫h| 国产一区美女在线| 欧美一个色资源| 国产久卡久卡久卡久卡视频精品| 国产丝袜美腿一区二区三区| 成人免费毛片a| 日韩精品乱码免费| 精品国产乱码91久久久久久网站| 亚洲国产日韩精品| 欧美电影免费观看完整版| 亚洲国产精品欧美一二99| 成人97人人超碰人人99| 一区二区三区在线免费播放| 欧美一级精品在线| 成人激情视频网站| 亚洲国产精品久久人人爱蜜臀| 91精品国产欧美一区二区| 国内精品视频666| 中文字幕一区二区三区四区| 欧美日韩一级二级| 国产一区视频网站| 亚洲精品中文字幕在线观看| 欧美高清一级片在线| 国产成人亚洲综合色影视| 亚洲一区二区高清| 国产婷婷色一区二区三区在线| 在线亚洲一区观看| 国产呦萝稀缺另类资源| 国产亚洲精品中文字幕| 欧美性大战xxxxx久久久| 国产一区999| 亚洲成人综合网站| 国产精品久久久久一区二区三区| 91精品国产免费久久综合| 日韩1区2区3区| 成人欧美一区二区三区白人 | 91蜜桃视频在线| 亚洲综合无码一区二区| 久久夜色精品国产欧美乱极品| 99精品欧美一区二区三区小说 | 国产乱人伦精品一区二区在线观看| 亚洲人精品一区| 国产欧美一区二区在线| 日韩一区二区三区电影在线观看 | 视频一区二区三区在线| 国产精品天美传媒| 99精品视频中文字幕| 国产麻豆9l精品三级站| 五月综合激情婷婷六月色窝| 国产精品福利在线播放| 久久九九久久九九| 欧美一区二区三区四区在线观看 | 国产欧美精品一区二区色综合| 91麻豆精品国产自产在线| av成人免费在线| 高清beeg欧美| 国产成人亚洲精品狼色在线| 激情丁香综合五月| 一区二区三区不卡视频 | 久久精品国产澳门| 日产国产欧美视频一区精品| 亚洲自拍偷拍综合| 《视频一区视频二区| 久久夜色精品国产欧美乱极品| 日韩三级在线观看| 91黄色在线观看| 风间由美一区二区三区在线观看 | 99久久99久久综合| 欧美亚洲日本国产| 亚洲丝袜自拍清纯另类| 欧美国产精品劲爆| 欧美久久免费观看| 成+人+亚洲+综合天堂| 亚洲综合免费观看高清完整版在线| 99久久久久久| 国产91丝袜在线观看| 欧美一级视频精品观看| 国产伦精品一区二区三区免费| 亚洲一区二区综合| 中文字幕欧美一区| 国产日产欧美精品一区二区三区| 国产欧美日韩精品a在线观看| 欧美日韩国产高清一区二区三区| 成人精品视频.| 午夜精品久久久| 蜜臀久久99精品久久久久久9| 亚洲国产精品天堂| 亚洲欧美日韩综合aⅴ视频| 日韩理论片中文av| 国产精品久久久久久久久久免费看| 精品成人一区二区三区四区| 波多野结衣精品在线| 91首页免费视频| 另类的小说在线视频另类成人小视频在线| 国产精品久线观看视频| 欧美国产日韩一二三区| 国产性做久久久久久| 久久久精品免费网站| 一本色道久久综合亚洲精品按摩| 欧美高清精品3d| 国产成人自拍网| 国产毛片精品视频| 日韩成人免费电影| 中文字幕精品一区| 国产三级一区二区| jlzzjlzz国产精品久久| 日韩久久免费av| 久久精品久久99精品久久| 欧美国产精品中文字幕| 亚洲综合一区二区三区| 国产精品你懂的| 精品嫩草影院久久| 色综合天天性综合| 99久久夜色精品国产网站| 国产激情视频一区二区三区欧美 | 91麻豆精品国产91久久久久久 | 99re成人在线| 一区二区三区日韩欧美精品 | 欧美乱妇15p| 亚洲综合免费观看高清在线观看| ...av二区三区久久精品| 国产欧美一区二区在线观看| 欧美日韩国产精品成人| 人人精品人人爱| 一本久道久久综合中文字幕 | 久久婷婷国产综合国色天香 | 麻豆视频观看网址久久| 国产成人自拍在线| 欧美岛国在线观看| 成人永久看片免费视频天堂| 麻豆精品在线观看| 色中色一区二区| 亚洲图片一区二区| 日韩一区二区三区免费看| 一区二区在线看| 久久精品国内一区二区三区| 日韩欧美一级特黄在线播放| 中文av一区特黄| 欧美精品一区二| 日本女优在线视频一区二区| 欧美日韩国产综合久久| 18成人在线视频| 国产一区二区三区在线观看精品 | 国产欧美精品区一区二区三区 | 亚洲国产精品传媒在线观看| 波多野结衣91| 国产精品乱人伦中文| 中文字幕一区二区5566日韩| 久久成人免费日本黄色| 国产91丝袜在线播放| 成人动漫av在线| 欧美亚洲动漫制服丝袜| 亚洲私人影院在线观看| 97国产一区二区| 欧美激情一区二区三区|