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

📄 jtextcomponent.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 4 页
字号:
</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;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>&nbsp;a,            <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;t,            <A HREF="../../../../java/awt/Point.html">Point</A>&nbsp;pt,            <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[]&nbsp;biasReturn)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;t,                          int&nbsp;pos,                          <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;b,                          int&nbsp;direction,                          <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[]&nbsp;biasRet)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;a,            int&nbsp;b,            int&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;t,            int&nbsp;p0,            int&nbsp;p1,            <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;firstBias,            <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A>&nbsp;secondBias)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;<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>&nbsp;a)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Call getRootView on each UI handled by this MultiUI.</TD></TR></TABLE>&nbsp;<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>&nbsp;<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 &nbsp;<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>&nbsp;e)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 &nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 &nbsp;<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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the text editor component that this caret is  is bound to.</TD></TR></TABLE>&nbsp;<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>&nbsp;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>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;g,      int&nbsp;p0,      int&nbsp;p1,      <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;bounds,      <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Renders the highlight.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;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>&nbsp;g,                       int&nbsp;p0,                       int&nbsp;p1,                       <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;viewBounds,                       <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A>&nbsp;editor,                       <A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;view)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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>&nbsp;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>&nbsp;g,                       int&nbsp;p0,                       int&nbsp;p1,                       <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;viewBounds,                       <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A>&nbsp;editor,                       <A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;view)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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 &nbsp;<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>&nbsp;g,           int&nbsp;p0,           int&nbsp;p1,           <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;viewBounds,           <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A>&nbsp;editor,           <A HREF="../../../../javax/swing/text/View.html">View</A>&nbsp;view)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;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>&nbsp;g,      int&nbsp;offs0,      int&nbsp;offs1,      <A HREF="../../../../java/awt/Shape.html">Shape</A>&nbsp;bounds,      <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Paints a highlight.</TD>

⌨️ 快捷键说明

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