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

📄 gapcontent.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<DT><B>Parameters:</B><DD><CODE>where</CODE> - the starting position >= 0, where + len <= length()<DD><CODE>len</CODE> - the number of characters to retrieve >= 0<DD><CODE>chars</CODE> - the Segment object to return the characters in<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - if the specified position is invalid<DT><B>See Also: </B><DD><A HREF="../../../javax/swing/text/AbstractDocument.Content.html#getChars(int, int, javax.swing.text.Segment)"><CODE>AbstractDocument.Content.getChars(int, int, javax.swing.text.Segment)</CODE></A></DL></DD></DL><HR><A NAME="createPosition(int)"><!-- --></A><H3>createPosition</H3><PRE>public <A HREF="../../../javax/swing/text/Position.html">Position</A> <B>createPosition</B>(int&nbsp;offset)                        throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Creates a position within the content that will track change as the content is mutated.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../javax/swing/text/AbstractDocument.Content.html#createPosition(int)">createPosition</A></CODE> in interface <CODE><A HREF="../../../javax/swing/text/AbstractDocument.Content.html">AbstractDocument.Content</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>offset</CODE> - the offset to track >= 0<DT><B>Returns:</B><DD>the position<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - if the specified position is invalid</DL></DD></DL><HR><A NAME="shiftEnd(int)"><!-- --></A><H3>shiftEnd</H3><PRE>protected void <B>shiftEnd</B>(int&nbsp;newSize)</PRE><DL><DD>Make the gap bigger, moving any necessary data and updating  the appropriate marks<DD><DL><DT><B>Overrides:</B><DD><CODE>shiftEnd</CODE> in class <CODE>javax.swing.text.GapVector</CODE></DL></DD></DL><HR><A NAME="shiftGap(int)"><!-- --></A><H3>shiftGap</H3><PRE>protected void <B>shiftGap</B>(int&nbsp;newGapStart)</PRE><DL><DD>Move the start of the gap to a new location, without changing the size of the gap.  This  moves the data in the array and updates the marks accordingly.<DD><DL><DT><B>Overrides:</B><DD><CODE>shiftGap</CODE> in class <CODE>javax.swing.text.GapVector</CODE></DL></DD></DL><HR><A NAME="resetMarksAtZero()"><!-- --></A><H3>resetMarksAtZero</H3><PRE>protected void <B>resetMarksAtZero</B>()</PRE><DL><DD>Resets all the marks that have an offset of 0 to have an index of zero as well.<DD><DL></DL></DD></DL><HR><A NAME="shiftGapStartDown(int)"><!-- --></A><H3>shiftGapStartDown</H3><PRE>protected void <B>shiftGapStartDown</B>(int&nbsp;newGapStart)</PRE><DL><DD>Adjust the gap end downward.  This doesn't move any data, but it does update any marks affected  by the boundary change.  All marks from the old gap start down to the new gap start are squeezed to the end of the gap (their location has been removed).<DD><DL><DT><B>Overrides:</B><DD><CODE>shiftGapStartDown</CODE> in class <CODE>javax.swing.text.GapVector</CODE></DL></DD></DL><HR><A NAME="shiftGapEndUp(int)"><!-- --></A><H3>shiftGapEndUp</H3><PRE>protected void <B>shiftGapEndUp</B>(int&nbsp;newGapEnd)</PRE><DL><DD>Adjust the gap end upward.  This doesn't move any data, but it does update any marks affected  by the boundary change. All marks from the old gap end up to the new gap end are squeezed to the end of the gap (their location has been removed).<DD><DL><DT><B>Overrides:</B><DD><CODE>shiftGapEndUp</CODE> in class <CODE>javax.swing.text.GapVector</CODE></DL></DD></DL><HR><A NAME="getPositionsInRange(java.util.Vector, int, int)"><!-- --></A><H3>getPositionsInRange</H3><PRE>protected <A HREF="../../../java/util/Vector.html">Vector</A> <B>getPositionsInRange</B>(<A HREF="../../../java/util/Vector.html">Vector</A>&nbsp;v,                                     int&nbsp;offset,                                     int&nbsp;length)</PRE><DL><DD>Returns a Vector containing instances of UndoPosRef for the Positions in the range <code>offset</code> to <code>offset</code> + <code>length</code>. If <code>v</code> is not null the matching Positions are placed in there. The vector with the resulting Positions are returned.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>v</CODE> - the Vector to use, with a new one created on null<DD><CODE>offset</CODE> - the starting offset >= 0<DD><CODE>length</CODE> - the length >= 0<DT><B>Returns:</B><DD>the set of instances</DL></DD></DL><HR><A NAME="updateUndoPositions(java.util.Vector, int, int)"><!-- --></A><H3>updateUndoPositions</H3><PRE>protected void <B>updateUndoPositions</B>(<A HREF="../../../java/util/Vector.html">Vector</A>&nbsp;positions,                                   int&nbsp;offset,                                   int&nbsp;length)</PRE><DL><DD>Resets the location for all the UndoPosRef instances in <code>positions</code>.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>positions</CODE> - the UndoPosRef instances to reset</DL></DD></DL><HR><A NAME="getArray()"><!-- --></A><H3>getArray</H3><PRE>protected final <A HREF="../../../java/lang/Object.html">Object</A> <B>getArray</B>()</PRE><DL><DD>Access to the array.  The actual type of the array is known only by the subclass.<DD><DL></DL></DD></DL><HR><A NAME="getGapStart()"><!-- --></A><H3>getGapStart</H3><PRE>protected final int <B>getGapStart</B>()</PRE><DL><DD>Access to the start of the gap.<DD><DL></DL></DD></DL><HR><A NAME="getGapEnd()"><!-- --></A><H3>getGapEnd</H3><PRE>protected final int <B>getGapEnd</B>()</PRE><DL><DD>Access to the end of the gap.<DD><DL></DL></DD></DL><HR><A NAME="replace(int, int, java.lang.Object, int)"><!-- --></A><H3>replace</H3><PRE>protected void <B>replace</B>(int&nbsp;position,                       int&nbsp;rmSize,                       <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;addItems,                       int&nbsp;addSize)</PRE><DL><DD>Replace the given logical position in the storage with the given new items.  This will move the gap to the area being changed if the gap is not currently located at the change location.<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>position</CODE> - the location to make the replacement.  This  is not the location in the underlying storage array, but  the location in the contiguous space being modeled.<DD><CODE>rmSize</CODE> - the number of items to remove<DD><CODE>addItems</CODE> - the new items to place in storage.</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/GapContent.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/FlowView.FlowStrategy.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../../javax/swing/text/GlyphView.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="GapContent.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;FIELD&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;FIELD&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 + -