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

📄 basictextui.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts the given place in the view coordinate system to the nearest representative location in the model.</TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_javax.swing.plaf.ComponentUI"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class javax.swing.plaf.<A HREF="../../../../javax/swing/plaf/ComponentUI.html">ComponentUI</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../javax/swing/plaf/ComponentUI.html#contains(javax.swing.JComponent, int, int)">contains</A>, <A HREF="../../../../javax/swing/plaf/ComponentUI.html#createUI(javax.swing.JComponent)">createUI</A>, <A HREF="../../../../javax/swing/plaf/ComponentUI.html#getAccessibleChild(javax.swing.JComponent, int)">getAccessibleChild</A>, <A HREF="../../../../javax/swing/plaf/ComponentUI.html#getAccessibleChildrenCount(javax.swing.JComponent)">getAccessibleChildrenCount</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.<A HREF="../../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../java/lang/Object.html#clone()">clone</A>, <A HREF="../../../../java/lang/Object.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../../java/lang/Object.html#hashCode()">hashCode</A>, <A HREF="../../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="BasicTextUI()"><!-- --></A><H3>BasicTextUI</H3><PRE>public <B>BasicTextUI</B>()</PRE><DL><DD>Creates a new UI.</DL><!-- ============ 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="createCaret()"><!-- --></A><H3>createCaret</H3><PRE>protected <A HREF="../../../../javax/swing/text/Caret.html">Caret</A> <B>createCaret</B>()</PRE><DL><DD>Creates the object to use for a caret.  By default an instance of BasicCaret is created.  This method can be redefined to provide something else that implements the InputPosition interface or a subclass of JCaret.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the caret object</DL></DD></DL><HR><A NAME="createHighlighter()"><!-- --></A><H3>createHighlighter</H3><PRE>protected <A HREF="../../../../javax/swing/text/Highlighter.html">Highlighter</A> <B>createHighlighter</B>()</PRE><DL><DD>Creates the object to use for adding highlights.  By default an instance of BasicHighlighter is created.  This method can be redefined to provide something else that implements the Highlighter interface or a subclass of DefaultHighlighter.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the highlighter</DL></DD></DL><HR><A NAME="getKeymapName()"><!-- --></A><H3>getKeymapName</H3><PRE>protected <A HREF="../../../../java/lang/String.html">String</A> <B>getKeymapName</B>()</PRE><DL><DD>Fetches the name of the keymap that will be installed/used  by default for this UI. This is implemented to create a name based upon the classname.  The name is the the name of the class with the package prefix removed.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the name</DL></DD></DL><HR><A NAME="createKeymap()"><!-- --></A><H3>createKeymap</H3><PRE>protected <A HREF="../../../../javax/swing/text/Keymap.html">Keymap</A> <B>createKeymap</B>()</PRE><DL><DD>Creates the keymap to use for the text component, and installs any necessary bindings into it.  By default, the keymap is shared between all instances of this type of TextUI. The keymap has the name defined by the getKeymapName method.  If the keymap is not found, then DEFAULT_KEYMAP from JTextComponent is used. <p> The set of bindings used to create the keymap is fetched  from the UIManager using a key formed by combining the <A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#getPropertyPrefix()"><CODE>getPropertyPrefix()</CODE></A> method and the string <code>.keyBindings</code>.  The type is expected to be <code>JTextComponent.KeyBinding[]</code>.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the keymap<DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#getKeymapName()"><CODE>getKeymapName()</CODE></A>, <A HREF="../../../../javax/swing/text/JTextComponent.html"><CODE>JTextComponent</CODE></A></DL></DD></DL><HR><A NAME="propertyChange(java.beans.PropertyChangeEvent)"><!-- --></A><H3>propertyChange</H3><PRE>protected void <B>propertyChange</B>(<A HREF="../../../../java/beans/PropertyChangeEvent.html">PropertyChangeEvent</A>&nbsp;evt)</PRE><DL><DD>This method gets called when a bound property is changed on the associated JTextComponent.  This is a hook which UI implementations may change to reflect how the UI displays bound properties of JTextComponent subclasses. This is implemented to do nothing (i.e. the response to properties in JTextComponent itself are handled prior to calling this method).<DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>evt</CODE> - the property change event</DL></DD></DL><HR><A NAME="getPropertyPrefix()"><!-- --></A><H3>getPropertyPrefix</H3><PRE>protected abstract <A HREF="../../../../java/lang/String.html">String</A> <B>getPropertyPrefix</B>()</PRE><DL><DD>Gets the name used as a key to look up properties through the UIManager.  This is used as a prefix to all the standard text properties.<DD><DL></DL></DD><DD><DL><DT><B>Returns:</B><DD>the name</DL></DD></DL><HR><A NAME="installDefaults()"><!-- --></A><H3>installDefaults</H3><PRE>protected void <B>installDefaults</B>()</PRE><DL><DD>Initializes component properties, e.g. font, foreground,  background, caret color, selection color, selected text color, disabled text color, and border color.  The font, foreground, and background properties are only set if their current value is either null or a UIResource, other properties are set if the current value is null.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#uninstallDefaults()"><CODE>uninstallDefaults()</CODE></A>, <A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#installUI(javax.swing.JComponent)"><CODE>installUI(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="uninstallDefaults()"><!-- --></A><H3>uninstallDefaults</H3><PRE>protected void <B>uninstallDefaults</B>()</PRE><DL><DD>Sets the component properties that haven't been explicitly overriden to  null.  A property is considered overridden if its current value is not a UIResource.<DD><DL></DL></DD><DD><DL><DT><B>See Also: </B><DD><A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#installDefaults()"><CODE>installDefaults()</CODE></A>, <A HREF="../../../../javax/swing/plaf/basic/BasicTextUI.html#uninstallUI(javax.swing.JComponent)"><CODE>uninstallUI(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="installListeners()"><!-- --></A><H3>installListeners</H3><PRE>protected void <B>installListeners</B>()</PRE><DL><DD>Installs listeners for the UI.<DD><DL></DL></DD></DL><HR><A NAME="uninstallListeners()"><!-- --></A><H3>uninstallListeners</H3><PRE>protected void <B>uninstallListeners</B>()</PRE><DL><DD>Uninstalls listeners for the UI.<DD><DL></DL></DD></DL><HR><A NAME="installKeyboardActions()"><!-- --></A><H3>installKeyboardActions</H3><PRE>protected void <B>installKeyboardActions</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="uninstallKeyboardActions()"><!-- --></A><H3>uninstallKeyboardActions</H3><PRE>protected void <B>uninstallKeyboardActions</B>()</PRE><DL><DD><DL></DL></DD></DL><HR><A NAME="paintBackground(java.awt.Graphics)"><!-- --></A><H3>paintBackground</H3><PRE>protected void <B>paintBackground</B>(<A HREF="../../../../java/awt/Graphics.html">Graphics</A>&nbsp;g)</PRE><DL><DD>Paints a background for the view.  This will only be

⌨️ 快捷键说明

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