📄 badlocationexception.html
字号:
<TD><CODE><B>Document.</B><B><A HREF="../../../../javax/swing/text/Document.html#remove(int, int)">remove</A></B>(int offs, int len)</CODE><BR> Removes a portion of the content of the document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>Document.</B><B><A HREF="../../../../javax/swing/text/Document.html#insertString(int, java.lang.String, javax.swing.text.AttributeSet)">insertString</A></B>(int offset, <A HREF="../../../../java/lang/String.html">String</A> str, <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Inserts a string of content.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B>Document.</B><B><A HREF="../../../../javax/swing/text/Document.html#getText(int, int)">getText</A></B>(int offset, int length)</CODE><BR> Fetches the text contained within the given portion of the document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>Document.</B><B><A HREF="../../../../javax/swing/text/Document.html#getText(int, int, javax.swing.text.Segment)">getText</A></B>(int offset, int length, <A HREF="../../../../javax/swing/text/Segment.html">Segment</A> txt)</CODE><BR> Fetches the text contained within the given portion of the document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/Position.html">Position</A></CODE></FONT></TD><TD><CODE><B>Document.</B><B><A HREF="../../../../javax/swing/text/Document.html#createPosition(int)">createPosition</A></B>(int offs)</CODE><BR> This method allows an application to mark a place in a sequence of character content.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B>GlyphView.</B><B><A HREF="../../../../javax/swing/text/GlyphView.html#modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)">modelToView</A></B>(int pos, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A> b)</CODE><BR> Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>GlyphView.</B><B><A HREF="../../../../javax/swing/text/GlyphView.html#getNextVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextVisualPositionFrom</A></B>(int pos, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A> b, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, int direction, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[] biasRet)</CODE><BR> Provides a way to determine the next visually represented model location that one might place a caret.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>EditorKit.</B><B><A HREF="../../../../javax/swing/text/EditorKit.html#read(java.io.InputStream, javax.swing.text.Document, int)">read</A></B>(<A HREF="../../../../java/io/InputStream.html">InputStream</A> in, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos)</CODE><BR> Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>EditorKit.</B><B><A HREF="../../../../javax/swing/text/EditorKit.html#write(java.io.OutputStream, javax.swing.text.Document, int, int)">write</A></B>(<A HREF="../../../../java/io/OutputStream.html">OutputStream</A> out, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos, int len)</CODE><BR> Writes content from a document to the given stream in a format appropriate for this kind of content handler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>EditorKit.</B><B><A HREF="../../../../javax/swing/text/EditorKit.html#read(java.io.Reader, javax.swing.text.Document, int)">read</A></B>(<A HREF="../../../../java/io/Reader.html">Reader</A> in, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos)</CODE><BR> Inserts content from the given stream which is expected to be in a format appropriate for this kind of content handler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>EditorKit.</B><B><A HREF="../../../../javax/swing/text/EditorKit.html#write(java.io.Writer, javax.swing.text.Document, int, int)">write</A></B>(<A HREF="../../../../java/io/Writer.html">Writer</A> out, <A HREF="../../../../javax/swing/text/Document.html">Document</A> doc, int pos, int len)</CODE><BR> Writes content from a document to the given stream in a format appropriate for this kind of content handler.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B>Highlighter.</B><B><A HREF="../../../../javax/swing/text/Highlighter.html#addHighlight(int, int, javax.swing.text.Highlighter.HighlightPainter)">addHighlight</A></B>(int p0, int p1, <A HREF="../../../../javax/swing/text/Highlighter.HighlightPainter.html">Highlighter.HighlightPainter</A> p)</CODE><BR> Adds a highlight to the view.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B>Highlighter.</B><B><A HREF="../../../../javax/swing/text/Highlighter.html#changeHighlight(java.lang.Object, int, int)">changeHighlight</A></B>(<A HREF="../../../../java/lang/Object.html">Object</A> tag, int p0, int p1)</CODE><BR> Changes the given highlight to span a different portion of the document.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B>BoxView.</B><B><A HREF="../../../../javax/swing/text/BoxView.html#modelToView(int, java.awt.Shape, javax.swing.text.Position.Bias)">modelToView</A></B>(int pos, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A> b)</CODE><BR> Provides a mapping from the document model coordinate space to the coordinate space of the view mapped to it.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B>ParagraphView.</B><B><A HREF="../../../../javax/swing/text/ParagraphView.html#getNextNorthSouthVisualPositionFrom(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[])">getNextNorthSouthVisualPositionFrom</A></B>(int pos, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A> b, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, int direction, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[] biasRet)</CODE><BR> Overriden from CompositeView.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B>ParagraphView.</B><B><A HREF="../../../../javax/swing/text/ParagraphView.html#getClosestPositionTo(int, javax.swing.text.Position.Bias, java.awt.Shape, int, javax.swing.text.Position.Bias[], int, int)">getClosestPositionTo</A></B>(int pos, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A> b, <A HREF="../../../../java/awt/Shape.html">Shape</A> a, int direction, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[] biasRet, int rowIndex, int x)</CODE><BR> Returns the closest model position to <code>x</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract void</CODE></FONT></TD><TD><CODE><B>AbstractWriter.</B><B><A HREF="../../../../javax/swing/text/AbstractWriter.html#write()">write</A></B>()</CODE><BR> This abstract method needs to be implemented by subclasses.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B>AbstractWriter.</B><B><A HREF="../../../../javax/swing/text/AbstractWriter.html#getText(javax.swing.text.Element)">getText</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem)</CODE><BR> Returns the text associated with the element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B>AbstractWriter.</B><B><A HREF="../../../../javax/swing/text/AbstractWriter.html#text(javax.swing.text.Element)">text</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> elem)</CODE><BR> Writes out text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B>PlainView.</B><B><A HREF="../../../../javax/swing/text/PlainView.html#drawUnselectedText(java.awt.Graphics, int, int, int, int)">drawUnselectedText</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, int x, int y, int p0, int p1)</CODE><BR> Renders the given range in the model as normal unselected text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected int</CODE></FONT></TD><TD><CODE><B>PlainView.</B><B><A HREF="../../../../javax/swing/text/PlainView.html#drawSelectedText(java.awt.Graphics, int, int, int, int)">drawSelectedText</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, int x, int y, int p0, int p1)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -