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

📄 segment.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<A NAME="array"><!-- --></A><H3>array</H3><PRE>public char[] <B>array</B></PRE><DL><DD>This is the array containing the text of interest.  This array should never be modified; it is available only for efficiency.</DL><HR><A NAME="offset"><!-- --></A><H3>offset</H3><PRE>public int <B>offset</B></PRE><DL><DD>This is the offset into the array that the desired text begins.</DL><HR><A NAME="count"><!-- --></A><H3>count</H3><PRE>public int <B>count</B></PRE><DL><DD>This is the number of array elements that make up the text of interest.</DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="Segment()"><!-- --></A><H3>Segment</H3><PRE>public <B>Segment</B>()</PRE><DL><DD>Creates a new segment.</DL><HR><A NAME="Segment(char[], int, int)"><!-- --></A><H3>Segment</H3><PRE>public <B>Segment</B>(char[]&nbsp;array,               int&nbsp;offset,               int&nbsp;count)</PRE><DL><DD>Creates a new segment referring to an existing array.<DD><DL><DT><B>Parameters:</B><DD><CODE>array</CODE> - the array to refer to<DD><CODE>offset</CODE> - the offset into the array<DD><CODE>count</CODE> - the number of characters</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="toString()"><!-- --></A><H3>toString</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>toString</B>()</PRE><DL><DD>Converts a segment into a String.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#toString()">toString</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the string</DL></DD></DL><HR><A NAME="first()"><!-- --></A><H3>first</H3><PRE>public char <B>first</B>()</PRE><DL><DD>Sets the position to getBeginIndex() and returns the character at that position.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/text/CharacterIterator.html#first()">first</A></CODE> in interface <CODE><A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the first character in the text, or DONE if the text is empty<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/Segment.html#getBeginIndex()"><CODE>getBeginIndex()</CODE></A></DL></DD></DL><HR><A NAME="last()"><!-- --></A><H3>last</H3><PRE>public char <B>last</B>()</PRE><DL><DD>Sets the position to getEndIndex()-1 (getEndIndex() if the text is empty) and returns the character at that position.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/text/CharacterIterator.html#last()">last</A></CODE> in interface <CODE><A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the last character in the text, or DONE if the text is empty<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/Segment.html#getEndIndex()"><CODE>getEndIndex()</CODE></A></DL></DD></DL><HR><A NAME="current()"><!-- --></A><H3>current</H3><PRE>public char <B>current</B>()</PRE><DL><DD>Gets the character at the current position (as returned by getIndex()).<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/text/CharacterIterator.html#current()">current</A></CODE> in interface <CODE><A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the character at the current position or DONE if the current position is off the end of the text.<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/Segment.html#getIndex()"><CODE>getIndex()</CODE></A></DL></DD></DL><HR><A NAME="next()"><!-- --></A><H3>next</H3><PRE>public char <B>next</B>()</PRE><DL><DD>Increments the iterator's index by one and returns the character at the new index.  If the resulting index is greater or equal to getEndIndex(), the current index is reset to getEndIndex() and a value of DONE is returned.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/text/CharacterIterator.html#next()">next</A></CODE> in interface <CODE><A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the character at the new position or DONE if the new position is off the end of the text range.</DL></DD></DL><HR><A NAME="previous()"><!-- --></A><H3>previous</H3><PRE>public char <B>previous</B>()</PRE><DL><DD>Decrements the iterator's index by one and returns the character at the new index. If the current index is getBeginIndex(), the index remains at getBeginIndex() and a value of DONE is returned.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/text/CharacterIterator.html#previous()">previous</A></CODE> in interface <CODE><A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the character at the new position or DONE if the current position is equal to getBeginIndex().</DL></DD></DL><HR><A NAME="setIndex(int)"><!-- --></A><H3>setIndex</H3><PRE>public char <B>setIndex</B>(int&nbsp;position)</PRE><DL><DD>Sets the position to the specified position in the text and returns that character.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/text/CharacterIterator.html#setIndex(int)">setIndex</A></CODE> in interface <CODE><A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - the position within the text.  Valid values range from getBeginIndex() to getEndIndex().  An IllegalArgumentException is thrown if an invalid value is supplied.<DT><B>Returns:</B><DD>the character at the specified position or DONE if the specified position is equal to getEndIndex()</DL></DD></DL><HR><A NAME="getBeginIndex()"><!-- --></A><H3>getBeginIndex</H3><PRE>public int <B>getBeginIndex</B>()</PRE><DL><DD>Returns the start index of the text.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/text/CharacterIterator.html#getBeginIndex()">getBeginIndex</A></CODE> in interface <CODE><A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the index at which the text begins.</DL></DD></DL><HR><A NAME="getEndIndex()"><!-- --></A><H3>getEndIndex</H3><PRE>public int <B>getEndIndex</B>()</PRE><DL><DD>Returns the end index of the text.  This index is the index of the first character following the end of the text.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/text/CharacterIterator.html#getEndIndex()">getEndIndex</A></CODE> in interface <CODE><A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the index after the last character in the text</DL></DD></DL><HR><A NAME="getIndex()"><!-- --></A><H3>getIndex</H3><PRE>public int <B>getIndex</B>()</PRE><DL><DD>Returns the current index.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/text/CharacterIterator.html#getIndex()">getIndex</A></CODE> in interface <CODE><A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the current index.</DL></DD></DL><HR><A NAME="clone()"><!-- --></A><H3>clone</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>clone</B>()</PRE><DL><DD>Creates a shallow copy.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/text/CharacterIterator.html#clone()">clone</A></CODE> in interface <CODE><A HREF="../../../java/text/CharacterIterator.html">CharacterIterator</A></CODE><DT><B>Overrides:</B><DD><CODE><A HREF="../../../java/lang/Object.html#clone()">clone</A></CODE> in class <CODE><A HREF="../../../java/lang/Object.html">Object</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the copy</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/Segment.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../../javax/swing/text/Position.Bias.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/swing/text/SimpleAttributeSet.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="Segment.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;INNER&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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