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

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

?? accessiblehtml.java

?? JAVA的一些源碼 JAVA2 STANDARD EDITION DEVELOPMENT KIT 5.0
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
	    }	    	    /**	     * Given a point in local coordinates, return the zero-based index	     * of the character under that Point.  If the point is invalid,	     * this method returns -1.	     *	     * @param p the Point in local coordinates	     * @return the zero-based index of the character under Point p; if 	     * Point is invalid returns -1.	     */	    public int getIndexAtPoint(Point p) {		View v = getView();		if (v != null) {		    return v.viewToModel(p.x, p.y, getBounds());		} else {		    return -1;		}	    }	    	    /**	     * Determine the bounding box of the character at the given 	     * index into the string.  The bounds are returned in local	     * coordinates.  If the index is invalid an empty rectangle is 	     * returned.	     *	     * @param i the index into the String	     * @return the screen coordinates of the character's the bounding box,	     * if index is invalid returns an empty rectangle.	     */	    public Rectangle getCharacterBounds(int i) {		try {		    return editor.getUI().modelToView(editor, i);		} catch (BadLocationException e) {		    return null;		}	    }	    	    /**	     * Return the number of characters (valid indicies) 	     *	     * @return the number of characters	     */	    public int getCharCount() {		if (validateIfNecessary()) {		    Element elem = elementInfo.getElement();		    return elem.getEndOffset() - elem.getStartOffset();		}		return 0;	    }	    	    /**	     * Return the zero-based offset of the caret.	     *	     * Note: That to the right of the caret will have the same index	     * value as the offset (the caret is between two characters).	     * @return the zero-based offset of the caret.	     */	    public int getCaretPosition() {		View v = getView();		if (v == null) {		    return -1;		}		Container c = v.getContainer();		if (c == null) {		    return -1;		}		if (c instanceof JTextComponent) {		    return ((JTextComponent)c).getCaretPosition();		} else {		    return -1;		}	    }	    	    /**	     * IndexedSegment extends Segment adding the offset into the	     * the model the <code>Segment</code> was asked for.	     */	    private class IndexedSegment extends Segment {		/**		 * Offset into the model that the position represents.		 */		public int modelOffset;	    }	    	    public String getAtIndex(int part, int index) {		return getAtIndex(part, index, 0);	    }	    	    	    public String getAfterIndex(int part, int index) {		return getAtIndex(part, index, 1);	    }	    	    public String getBeforeIndex(int part, int index) {		return getAtIndex(part, index, -1);	    }	    	    /**	     * Gets the word, sentence, or character at <code>index</code>.	     * If <code>direction</code> is non-null this will find the	     * next/previous word/sentence/character.	     */	    private String getAtIndex(int part, int index, int direction) {		if (model instanceof AbstractDocument) {		    ((AbstractDocument)model).readLock();		}		try {		    if (index < 0 || index >= model.getLength()) {			return null;		    }		    switch (part) {		    case AccessibleText.CHARACTER:			if (index + direction < model.getLength() &&			    index + direction >= 0) {			    return model.getText(index + direction, 1);			}			break;								    case AccessibleText.WORD:		    case AccessibleText.SENTENCE:			IndexedSegment seg = getSegmentAt(part, index);			if (seg != null) {			    if (direction != 0) {				int next;												if (direction < 0) {				    next = seg.modelOffset - 1;				}				else {				    next = seg.modelOffset + direction * seg.count;				}				if (next >= 0 && next <= model.getLength()) {				    seg = getSegmentAt(part, next);				}				else {				    seg = null;				}			    }			    if (seg != null) {				return new String(seg.array, seg.offset,                                                  seg.count);			    }			}			break;					    default:			break;		    }		} catch (BadLocationException e) {		} finally {		    if (model instanceof AbstractDocument) {			((AbstractDocument)model).readUnlock();		    }		}		return null;	    }	    	    /*	     * Returns the paragraph element for the specified index.	     */	    private Element getParagraphElement(int index) {		if (model instanceof PlainDocument ) {		    PlainDocument sdoc = (PlainDocument)model;		    return sdoc.getParagraphElement(index);		} else if (model instanceof StyledDocument) {		    StyledDocument sdoc = (StyledDocument)model;		    return sdoc.getParagraphElement(index);		} else {		    Element para = null;		    for (para = model.getDefaultRootElement(); ! para.isLeaf(); ) {			int pos = para.getElementIndex(index);			para = para.getElement(pos);		    }		    if (para == null) {			return null;		    }		    return para.getParentElement();		}	    }	    	    /*	     * Returns a <code>Segment</code> containing the paragraph text	     * at <code>index</code>, or null if <code>index</code> isn't	     * valid.	     */	    private IndexedSegment getParagraphElementText(int index)		throws BadLocationException {		Element para = getParagraphElement(index);						if (para != null) {		    IndexedSegment segment = new IndexedSegment();		    try {			int length = para.getEndOffset() - para.getStartOffset();			model.getText(para.getStartOffset(), length, segment);		    } catch (BadLocationException e) {			return null;		    }		    segment.modelOffset = para.getStartOffset();		    return segment;		}		return null;	    }	    	    	    /**	     * Returns the Segment at <code>index</code> representing either	     * the paragraph or sentence as identified by <code>part</code>, or	     * null if a valid paragraph/sentence can't be found. The offset	     * will point to the start of the word/sentence in the array, and	     * the modelOffset will point to the location of the word/sentence	     * in the model.	     */	    private IndexedSegment getSegmentAt(int part, int index)                 throws BadLocationException {		IndexedSegment seg = getParagraphElementText(index);		if (seg == null) {		    return null;		}		BreakIterator iterator;		switch (part) {		case AccessibleText.WORD:		    iterator = BreakIterator.getWordInstance(getLocale());		    break;		case AccessibleText.SENTENCE:		    iterator = BreakIterator.getSentenceInstance(getLocale());		    break;		default:		    return null;		}		seg.first();		iterator.setText(seg);		int end = iterator.following(index - seg.modelOffset + seg.offset);		if (end == BreakIterator.DONE) {		    return null;		}		if (end > seg.offset + seg.count) {		    return null;		}		int begin = iterator.previous();		if (begin == BreakIterator.DONE ||		    begin >= seg.offset + seg.count) {		    return null;		}		seg.modelOffset = seg.modelOffset + begin - seg.offset;		seg.offset = begin;		seg.count = end - begin;		return seg;	    }	    	    /**	     * Return the AttributeSet for a given character at a given index	     *	     * @param i the zero-based index into the text 	     * @return the AttributeSet of the character	     */	    public AttributeSet getCharacterAttribute(int i) {		if (model instanceof StyledDocument) {		    StyledDocument doc = (StyledDocument)model;		    Element elem = doc.getCharacterElement(i);		    if (elem != null) {			return elem.getAttributes();		    }		}		return null;	    }	    	    /**	     * Returns the start offset within the selected text.	     * If there is no selection, but there is	     * a caret, the start and end offsets will be the same.	     *	     * @return the index into the text of the start of the selection	     */	    public int getSelectionStart() {		return editor.getSelectionStart();	    }	    	    /**	     * Returns the end offset within the selected text.	     * If there is no selection, but there is	     * a caret, the start and end offsets will be the same.	     *	     * @return the index into teh text of the end of the selection	     */	    public int getSelectionEnd() {		return editor.getSelectionEnd();	    }	    	    /**	     * Returns the portion of the text that is selected. 	     *	     * @return the String portion of the text that is selected	     */	    public String getSelectedText() {		return editor.getSelectedText();	    }	    	    /*	     * Returns the text substring starting at the specified	     * offset with the specified length.	     */	    private String getText(int offset, int length) 		throws BadLocationException {				if (model != null && model instanceof StyledDocument) {		    StyledDocument doc = (StyledDocument)model;		    return model.getText(offset, length);		} else {		    return null;		}	    }	}    }	    /*     * ElementInfo for images     */    private class IconElementInfo extends ElementInfo implements Accessible {        private int width = -1;        private int height = -1;        IconElementInfo(Element element, ElementInfo parent) {            super(element, parent);        }        protected void invalidate(boolean first) {            super.invalidate(first);            width = height = -1;        }	private int getImageSize(Object key) {            if (validateIfNecessary()) {                int size = getIntAttr(getAttributes(), key, -1);                if (size == -1) {                    View v = getView();                    size = 0;                    if (v instanceof ImageView) {                        Image img = ((ImageView)v).getImage();                        if (img != null) {                            if (key == HTML.Attribute.WIDTH) {                                size = img.getWidth(null);                            }                            else {                                size = img.getHeight(null);                            }                        }                    }                }                return size;            }            return 0;	}	// begin AccessibleIcon implementation ...	private AccessibleContext accessibleContext;		public AccessibleContext getAccessibleContext() {	    if (accessibleContext == null) {		accessibleContext = new IconAccessibleContext(this);	    }	    return accessibleContext;	}		/*	 * AccessibleContext for images	 */	protected class IconAccessibleContext extends HTMLAccessibleContext            implements AccessibleIcon  {	    public IconAccessibleContext(ElementInfo elementInfo) {		super(elementInfo);	    }	    	    /**	     * Gets the accessibleName property of this object.  The accessibleName	     * property of an object is a localized String that designates the purpose	     * of the object.  For example, the accessibleName property of a label	     * or button might be the text of the label or button itself.  In the	     * case of an object that doesn't display its name, the accessibleName	     * should still be set.  For example, in the case of a text field used	     * to enter the name of a city, the accessibleName for the en_US locale	     * could be 'city.'	     *	     * @return the localized name of the object; null if this 	     * object does not have a name	     *	     * @see #setAccessibleName	     */	    public String getAccessibleName() {		return getAccessibleIconDescription();	    }	    	    /**	     * Gets the accessibleDescription property of this object.  If this	     * property isn't set, returns the content type of this	     * <code>JEditorPane</code> instead (e.g. "plain/text", "html/text").	     *	     * @return the localized description of the object; <code>null</code>	     * 	if this object does not have a description	     *	     * @see #setAccessibleName	     */	    public String getAccessibleDescription() {		return editor.getContentType();	    }	    	    /**	     * Gets the role of this object.  The role of the object is the generic	     * purpose or use of the class of this object.  For example, the role	     * of a push button is AccessibleRole.PUSH_BUTTON.  The roles in 	     * AccessibleRole are provided so component developers can pick from	     * a set of predefined roles.  This enables assistive technologies to	     * provide a consistent interface to various tweaked subclasses of 	     * components (e.g., use AccessibleRole.PUSH_BUTTON for all components	     * that act like a push button) as well as distinguish between sublasses	     * that behave differently (e.g., AccessibleRole.CHECK_BOX for check boxes	     * and AccessibleRole.RADIO_BUTTON for radio buttons).	     * <p>Note that the AccessibleRole class is also extensible, so 	     * custom component developers can define their own AccessibleRole's	     * if the set of predefined roles is inadequate.	     *	     * @return an instance of AccessibleRole describing the role of the object	     * @see AccessibleRole	     */	    public AccessibleRole getAccessibleRole() {		return AccessibleRole.ICON;	    }	    	    public AccessibleIcon [] getAccessibleIcon() {		AccessibleIcon [] icons = new AccessibleIcon[1];		icons[0] = this;		return icons;	    }	    /**	     * Gets the description of the icon.  This is meant to be a brief	     * textual description of the object.  For example, it might be

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人黄色小视频| 欧美日韩精品高清| 亚洲第一在线综合网站| 日本一区二区三区高清不卡| 在线观看国产91| 国产一区二区在线观看免费| 亚洲第四色夜色| 亚洲欧美在线视频观看| 精品国产123| 欧美日韩一级片在线观看| jiyouzz国产精品久久| 激情深爱一区二区| 午夜久久久久久久久久一区二区| 亚洲国产精品成人久久综合一区| 欧美一级日韩免费不卡| 99国产精品一区| 国产主播一区二区三区| 日本vs亚洲vs韩国一区三区| 亚洲夂夂婷婷色拍ww47| 日韩毛片精品高清免费| 国产精品久久久久久久久果冻传媒| 欧美电影免费观看高清完整版在线观看 | 狠狠色丁香婷婷综合| 夜夜精品视频一区二区 | 国产色综合一区| 欧美一区二区视频在线观看| 欧美伊人久久久久久久久影院| 99精品国产视频| 国产91富婆露脸刺激对白| 国内欧美视频一区二区 | 精品一区二区三区av| 日本美女一区二区三区视频| 偷拍一区二区三区四区| 亚洲一区成人在线| 亚洲免费观看高清完整版在线| 国产日韩欧美电影| 国产精品婷婷午夜在线观看| 欧美韩国一区二区| 欧美高清一级片在线观看| 久久亚洲一区二区三区明星换脸| 精品欧美久久久| 精品国精品自拍自在线| 久久精品夜色噜噜亚洲aⅴ| 久久这里只有精品6| 久久精品男人天堂av| 欧美激情一区二区三区全黄| 国产精品另类一区| 综合久久久久久| 一区二区在线观看不卡| 亚洲亚洲精品在线观看| 日本麻豆一区二区三区视频| 麻豆免费看一区二区三区| 久久精品国产精品亚洲综合| 国模冰冰炮一区二区| 国产a视频精品免费观看| 成人三级在线视频| 色天使色偷偷av一区二区| 欧美日韩日日骚| 日韩天堂在线观看| 欧美国产视频在线| 亚洲精品一卡二卡| 人人精品人人爱| 国产成人精品亚洲午夜麻豆| 99久久国产综合精品色伊| 欧洲亚洲国产日韩| 欧美不卡一区二区三区四区| 国产精品女人毛片| 亚洲一区日韩精品中文字幕| 麻豆精品精品国产自在97香蕉| 国产一区二区不卡老阿姨| 色综合欧美在线| 欧美成人激情免费网| 欧美极品另类videosde| 亚洲电影在线播放| 国模娜娜一区二区三区| 色综合久久综合网| 精品国产免费人成在线观看| 亚洲日本青草视频在线怡红院| 日本麻豆一区二区三区视频| 福利91精品一区二区三区| 欧美日韩国产一二三| 久久精品免费在线观看| 午夜欧美在线一二页| 国产毛片精品视频| 欧美三级中文字| 国产女人18毛片水真多成人如厕| 亚洲午夜激情av| 国产不卡在线播放| 91麻豆精品国产91久久久使用方法 | 日韩电影在线观看电影| 国产·精品毛片| 欧美精三区欧美精三区| 国产精品国产a级| 久久99精品国产麻豆婷婷洗澡| 99久久久国产精品免费蜜臀| 精品乱人伦小说| 香港成人在线视频| 色综合天天综合在线视频| 精品国产乱码久久久久久久| 亚洲国产精品欧美一二99| 成人晚上爱看视频| 亚洲精品在线电影| 亚洲在线免费播放| av动漫一区二区| 久久只精品国产| 蜜臀久久久久久久| 91福利国产精品| 国产精品激情偷乱一区二区∴| 九色综合狠狠综合久久| 在线观看日韩国产| 亚洲欧洲精品天堂一级| 国产福利91精品一区| 欧美一区二区播放| 亚洲高清不卡在线| 91蝌蚪porny| 中文字幕第一页久久| 韩国精品在线观看| 日韩欧美高清dvd碟片| 偷拍亚洲欧洲综合| 欧洲精品一区二区三区在线观看| 国产精品白丝在线| 成人精品免费网站| 国产亚洲欧美在线| 国产精品自在欧美一区| 精品国产伦理网| 久久se这里有精品| 欧美大尺度电影在线| 香蕉成人啪国产精品视频综合网| 欧美亚洲精品一区| 亚洲自拍都市欧美小说| 欧美午夜精品免费| 亚洲国产日韩a在线播放| 欧洲一区在线电影| 亚洲成人免费电影| 欧美日高清视频| 青草av.久久免费一区| 色综合久久久久久久| 中文字幕一区二区在线观看| av网站一区二区三区| 国产精品国产a级| 97久久人人超碰| 亚洲精选视频免费看| 91福利在线播放| 午夜精品成人在线| 欧美一区二区三区视频在线观看| 丝袜诱惑亚洲看片| 欧美一级欧美三级在线观看| 日韩一区精品视频| 精品奇米国产一区二区三区| 国产成都精品91一区二区三 | 亚洲在线观看免费视频| 精品视频色一区| 伦理电影国产精品| 久久久久国产精品麻豆| 99久久婷婷国产综合精品电影| 亚洲精品中文在线| 91精品国产综合久久久久久久久久| 午夜精品国产更新| 久久久亚洲午夜电影| va亚洲va日韩不卡在线观看| 亚洲一区自拍偷拍| 日韩免费一区二区| 成人手机电影网| 亚洲福中文字幕伊人影院| 日韩视频免费观看高清在线视频| 蜜臀av一区二区在线免费观看| 欧美日韩国产成人在线91| 久久国产精品色| 国产精品妹子av| 欧美日韩精品一区二区| 国模一区二区三区白浆| 亚洲激情第一区| 日韩三级.com| 成人免费观看视频| 日韩av一二三| 国产精品国产三级国产三级人妇| 欧美三区免费完整视频在线观看| 国内久久婷婷综合| 一区二区欧美在线观看| 精品成a人在线观看| 91老师片黄在线观看| 美女网站色91| 一区二区三区四区视频精品免费 | 亚洲日本护士毛茸茸| 日韩精品一区二区在线| 91免费观看视频在线| 久久精工是国产品牌吗| 亚洲男人天堂av| 国产性做久久久久久| 欧美精选在线播放| 99久久99久久久精品齐齐| 国产精品自拍网站| 亚洲成人精品一区| 国产性做久久久久久| 在线综合+亚洲+欧美中文字幕| av在线播放一区二区三区| 久久国产人妖系列| 亚洲宅男天堂在线观看无病毒| 国产亚洲一区二区在线观看| 欧美一区二区日韩一区二区|