📄 jtextcomponent.html
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B>MultiTextUI.</B><B><A HREF="../../../../javax/swing/plaf/multi/MultiTextUI.html#viewToModel(javax.swing.text.JTextComponent, java.awt.Point)">viewToModel</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> a, <A HREF="../../../../java/awt/Point.html">Point</A> b)</CODE><BR> Call viewToModel on each UI handled by this MultiUI.</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>MultiTextUI.</B><B><A HREF="../../../../javax/swing/plaf/multi/MultiTextUI.html#viewToModel(javax.swing.text.JTextComponent, java.awt.Point, javax.swing.text.Position.Bias[])">viewToModel</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> t, <A HREF="../../../../java/awt/Point.html">Point</A> pt, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[] biasReturn)</CODE><BR> Provides a mapping from the view coordinate space to the logical coordinate space of the model.</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>MultiTextUI.</B><B><A HREF="../../../../javax/swing/plaf/multi/MultiTextUI.html#getNextVisualPositionFrom(javax.swing.text.JTextComponent, int, javax.swing.text.Position.Bias, int, javax.swing.text.Position.Bias[])">getNextVisualPositionFrom</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> t, int pos, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A> b, 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> void</CODE></FONT></TD><TD><CODE><B>MultiTextUI.</B><B><A HREF="../../../../javax/swing/plaf/multi/MultiTextUI.html#damageRange(javax.swing.text.JTextComponent, int, int)">damageRange</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> a, int b, int c)</CODE><BR> Call damageRange on each UI handled by this MultiUI.</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>MultiTextUI.</B><B><A HREF="../../../../javax/swing/plaf/multi/MultiTextUI.html#damageRange(javax.swing.text.JTextComponent, int, int, javax.swing.text.Position.Bias, javax.swing.text.Position.Bias)">damageRange</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> t, int p0, int p1, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A> firstBias, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A> secondBias)</CODE><BR> Causes the portion of the view responsible for the given part of the model to be repainted.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/EditorKit.html">EditorKit</A></CODE></FONT></TD><TD><CODE><B>MultiTextUI.</B><B><A HREF="../../../../javax/swing/plaf/multi/MultiTextUI.html#getEditorKit(javax.swing.text.JTextComponent)">getEditorKit</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> a)</CODE><BR> Call getEditorKit on each UI handled by this MultiUI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../javax/swing/text/View.html">View</A></CODE></FONT></TD><TD><CODE><B>MultiTextUI.</B><B><A HREF="../../../../javax/swing/plaf/multi/MultiTextUI.html#getRootView(javax.swing.text.JTextComponent)">getRootView</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> a)</CODE><BR> Call getRootView on each UI handled by this MultiUI.</TD></TR></TABLE> <P><A NAME="javax.swing.text"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A></FONT></TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A> that return <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A></CODE></FONT></TD><TD><CODE><B>TextAction.</B><B><A HREF="../../../../javax/swing/text/TextAction.html#getTextComponent(java.awt.event.ActionEvent)">getTextComponent</A></B>(<A HREF="../../../../java/awt/event/ActionEvent.html">ActionEvent</A> e)</CODE><BR> Determines the component to use for the action.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A></CODE></FONT></TD><TD><CODE><B>TextAction.</B><B><A HREF="../../../../javax/swing/text/TextAction.html#getFocusedComponent()">getFocusedComponent</A></B>()</CODE><BR> Fetches the text component that currently has focus.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A></CODE></FONT></TD><TD><CODE><B>DefaultCaret.</B><B><A HREF="../../../../javax/swing/text/DefaultCaret.html#getComponent()">getComponent</A></B>()</CODE><BR> Gets the text editor component that this caret is is bound to.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../../javax/swing/text/package-summary.html">javax.swing.text</A> with parameters of type <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A></FONT></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#install(javax.swing.text.JTextComponent)">install</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> c)</CODE><BR> Called when the UI is being installed into the interface of a JTextComponent.</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#deinstall(javax.swing.text.JTextComponent)">deinstall</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> c)</CODE><BR> Called when the UI is being removed from the interface of a JTextComponent.</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.HighlightPainter.</B><B><A HREF="../../../../javax/swing/text/Highlighter.HighlightPainter.html#paint(java.awt.Graphics, int, int, java.awt.Shape, javax.swing.text.JTextComponent)">paint</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, int p0, int p1, <A HREF="../../../../java/awt/Shape.html">Shape</A> bounds, <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> c)</CODE><BR> Renders the highlight.</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>LayeredHighlighter.</B><B><A HREF="../../../../javax/swing/text/LayeredHighlighter.html#paintLayeredHighlights(java.awt.Graphics, int, int, java.awt.Shape, javax.swing.text.JTextComponent, javax.swing.text.View)">paintLayeredHighlights</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, int p0, int p1, <A HREF="../../../../java/awt/Shape.html">Shape</A> viewBounds, <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> editor, <A HREF="../../../../javax/swing/text/View.html">View</A> view)</CODE><BR> When leaf Views (such as LabelView) are rendering they should call into this method.</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>DefaultHighlighter.</B><B><A HREF="../../../../javax/swing/text/DefaultHighlighter.html#install(javax.swing.text.JTextComponent)">install</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> c)</CODE><BR> Called when the UI is being installed into the interface of a JTextComponent.</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>DefaultHighlighter.</B><B><A HREF="../../../../javax/swing/text/DefaultHighlighter.html#deinstall(javax.swing.text.JTextComponent)">deinstall</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> c)</CODE><BR> Called when the UI is being removed from the interface of a JTextComponent.</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>DefaultHighlighter.</B><B><A HREF="../../../../javax/swing/text/DefaultHighlighter.html#paintLayeredHighlights(java.awt.Graphics, int, int, java.awt.Shape, javax.swing.text.JTextComponent, javax.swing.text.View)">paintLayeredHighlights</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, int p0, int p1, <A HREF="../../../../java/awt/Shape.html">Shape</A> viewBounds, <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> editor, <A HREF="../../../../javax/swing/text/View.html">View</A> view)</CODE><BR> When leaf Views (such as LabelView) are rendering they should call into this method.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract <A HREF="../../../../java/awt/Shape.html">Shape</A></CODE></FONT></TD><TD><CODE><B>LayeredHighlighter.LayerPainter.</B><B><A HREF="../../../../javax/swing/text/LayeredHighlighter.LayerPainter.html#paintLayer(java.awt.Graphics, int, int, java.awt.Shape, javax.swing.text.JTextComponent, javax.swing.text.View)">paintLayer</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, int p0, int p1, <A HREF="../../../../java/awt/Shape.html">Shape</A> viewBounds, <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> editor, <A HREF="../../../../javax/swing/text/View.html">View</A> view)</CODE><BR> </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>DefaultHighlighter.DefaultHighlightPainter.</B><B><A HREF="../../../../javax/swing/text/DefaultHighlighter.DefaultHighlightPainter.html#paint(java.awt.Graphics, int, int, java.awt.Shape, javax.swing.text.JTextComponent)">paint</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, int offs0, int offs1, <A HREF="../../../../java/awt/Shape.html">Shape</A> bounds, <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> c)</CODE><BR> Paints a highlight.</TD>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -