📄 highlighter.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/swing/text/Highlighter.html#removeHighlight(java.lang.Object)">removeHighlight</A></B>(<A HREF="../../../java/lang/Object.html">Object</A> tag)</CODE><BR> Removes a highlight from the view.</TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- ============ 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="install(javax.swing.text.JTextComponent)"><!-- --></A><H3>install</H3><PRE>public void <B>install</B>(<A HREF="../../../javax/swing/text/JTextComponent.html">JTextComponent</A> c)</PRE><DL><DD>Called when the UI is being installed into the interface of a JTextComponent. This can be used to gain access to the model that is being navigated by the implementation of this interface.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the JTextComponent editor</DL></DD></DL><HR><A NAME="deinstall(javax.swing.text.JTextComponent)"><!-- --></A><H3>deinstall</H3><PRE>public void <B>deinstall</B>(<A HREF="../../../javax/swing/text/JTextComponent.html">JTextComponent</A> c)</PRE><DL><DD>Called when the UI is being removed from the interface of a JTextComponent. This is used to unregister any listeners that were attached.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the JTextComponent editor</DL></DD></DL><HR><A NAME="paint(java.awt.Graphics)"><!-- --></A><H3>paint</H3><PRE>public void <B>paint</B>(<A HREF="../../../java/awt/Graphics.html">Graphics</A> g)</PRE><DL><DD>Renders the highlights.<DD><DL><DT><B>Parameters:</B><DD><CODE>g</CODE> - the graphics context.</DL></DD></DL><HR><A NAME="addHighlight(int, int, javax.swing.text.Highlighter.HighlightPainter)"><!-- --></A><H3>addHighlight</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>addHighlight</B>(int p0, int p1, <A HREF="../../../javax/swing/text/Highlighter.HighlightPainter.html">Highlighter.HighlightPainter</A> p) throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Adds a highlight to the view. Returns a tag that can be used to refer to the highlight.<DD><DL><DT><B>Parameters:</B><DD><CODE>p0</CODE> - the beginning of the range >= 0<DD><CODE>p1</CODE> - the end of the range >= p0<DD><CODE>p</CODE> - the painter to use for the actual highlighting<DT><B>Returns:</B><DD>an object that refers to the highlight<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - for an invalid range specification</DL></DD></DL><HR><A NAME="removeHighlight(java.lang.Object)"><!-- --></A><H3>removeHighlight</H3><PRE>public void <B>removeHighlight</B>(<A HREF="../../../java/lang/Object.html">Object</A> tag)</PRE><DL><DD>Removes a highlight from the view.<DD><DL><DT><B>Parameters:</B><DD><CODE>tag</CODE> - which highlight to remove</DL></DD></DL><HR><A NAME="removeAllHighlights()"><!-- --></A><H3>removeAllHighlights</H3><PRE>public void <B>removeAllHighlights</B>()</PRE><DL><DD>Removes all highlights this highlighter is responsible for.</DL><HR><A NAME="changeHighlight(java.lang.Object, int, int)"><!-- --></A><H3>changeHighlight</H3><PRE>public void <B>changeHighlight</B>(<A HREF="../../../java/lang/Object.html">Object</A> tag, int p0, int p1) throws <A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD>Changes the given highlight to span a different portion of the document. This may be more efficient than a remove/add when a selection is expanding/shrinking (such as a sweep with a mouse) by damaging only what changed.<DD><DL><DT><B>Parameters:</B><DD><CODE>tag</CODE> - which highlight to change<DD><CODE>p0</CODE> - the beginning of the range >= 0<DD><CODE>p1</CODE> - the end of the range >= p0<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/swing/text/BadLocationException.html">BadLocationException</A></CODE> - for an invalid range specification</DL></DD></DL><HR><A NAME="getHighlights()"><!-- --></A><H3>getHighlights</H3><PRE>public <A HREF="../../../javax/swing/text/Highlighter.Highlight.html">Highlighter.Highlight</A>[] <B>getHighlights</B>()</PRE><DL><DD>Fetches the current list of highlights.<DD><DL><DT><B>Returns:</B><DD>the highlight list</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> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Highlighter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup> 2 Platform<br>Std. Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> <A HREF="../../../javax/swing/text/Element.html"><B>PREV CLASS</B></A> <A HREF="../../../javax/swing/text/Highlighter.Highlight.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> <A HREF="Highlighter.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> SUMMARY: <A HREF="#inner_class_summary">INNER</A> | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: FIELD | CONSTR | <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 + -