📄 basictextui.html
字号:
<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>protected <A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#getComponent()">getComponent</A></B>()</CODE><BR> Fetches the text component associated with this UI implementation.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#getEditorKit(javax.swing.text.JTextComponent)">getEditorKit</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> tc)</CODE><BR> Fetches the EditorKit for the UI.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#getKeymapName()">getKeymapName</A></B>()</CODE><BR> Fetches the name of the keymap that will be installed/used by default for this UI.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#getMaximumSize(javax.swing.JComponent)">getMaximumSize</A></B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</CODE><BR> Gets the maximum size for the editor component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#getMinimumSize(javax.swing.JComponent)">getMinimumSize</A></B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</CODE><BR> Gets the minimum size for the editor component.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.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> <A HREF="../../../../java/awt/Dimension.html">Dimension</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#getPreferredSize(javax.swing.JComponent)">getPreferredSize</A></B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</CODE><BR> Gets the preferred size for the editor component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected abstract <A HREF="../../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#getPropertyPrefix()">getPropertyPrefix</A></B>()</CODE><BR> Gets the name used as a key to look up properties through the UIManager.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#getRootView(javax.swing.text.JTextComponent)">getRootView</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> tc)</CODE><BR> Fetches a View with the allocation of the associated text component (i.e.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#getVisibleEditorRect()">getVisibleEditorRect</A></B>()</CODE><BR> Gets the allocation to give the root View.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#installDefaults()">installDefaults</A></B>()</CODE><BR> Initializes component properties, e.g.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#installKeyboardActions()">installKeyboardActions</A></B>()</CODE><BR> </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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#installListeners()">installListeners</A></B>()</CODE><BR> Installs listeners for the UI.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#installUI(javax.swing.JComponent)">installUI</A></B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</CODE><BR> Installs the UI for a component.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#modelChanged()">modelChanged</A></B>()</CODE><BR> Flags model changes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#modelToView(javax.swing.text.JTextComponent, int)">modelToView</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> tc, int pos)</CODE><BR> Converts the given location in the model to a place in the view coordinate system.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../../../java/awt/Rectangle.html">Rectangle</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#modelToView(javax.swing.text.JTextComponent, int, javax.swing.text.Position.Bias)">modelToView</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> tc, int pos, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A> bias)</CODE><BR> Converts the given location in the model to a place in the view coordinate system.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#paint(java.awt.Graphics, javax.swing.JComponent)">paint</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, <A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</CODE><BR> Paints the interface.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#paintBackground(java.awt.Graphics)">paintBackground</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g)</CODE><BR> Paints a background for the view.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#paintSafely(java.awt.Graphics)">paintSafely</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g)</CODE><BR> Paints the interface safely with a guarantee that the model won't change from the view of this thread.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#propertyChange(java.beans.PropertyChangeEvent)">propertyChange</A></B>(<A HREF="../../../../java/beans/PropertyChangeEvent.html">PropertyChangeEvent</A> evt)</CODE><BR> This method gets called when a bound property is changed on the associated JTextComponent.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#setView(javax.swing.text.View)">setView</A></B>(<A HREF="../../../../javax/swing/text/View.html">View</A> v)</CODE><BR> Sets the current root of the view hierarchy and calls invalidate().</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#uninstallDefaults()">uninstallDefaults</A></B>()</CODE><BR> Sets the component properties that haven't been explicitly overriden to null.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#uninstallKeyboardActions()">uninstallKeyboardActions</A></B>()</CODE><BR> </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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#uninstallListeners()">uninstallListeners</A></B>()</CODE><BR> Uninstalls listeners for the UI.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#uninstallUI(javax.swing.JComponent)">uninstallUI</A></B>(<A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</CODE><BR> Deinstalls the UI for a component.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#update(java.awt.Graphics, javax.swing.JComponent)">update</A></B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A> g, <A HREF="../../../../javax/swing/JComponent.html">JComponent</A> c)</CODE><BR> Superclass paints background in an uncontrollable way (i.e.</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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#viewToModel(javax.swing.text.JTextComponent, java.awt.Point)">viewToModel</A></B>(<A HREF="../../../../javax/swing/text/JTextComponent.html">JTextComponent</A> tc, <A HREF="../../../../java/awt/Point.html">Point</A> pt)</CODE><BR> Converts the given place in the view coordinate system to the nearest representative location in 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><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.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> tc, <A HREF="../../../../java/awt/Point.html">Point</A> pt, <A HREF="../../../../javax/swing/text/Position.Bias.html">Position.Bias</A>[] biasReturn)</CODE>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -