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

📄 styleconstants.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
</DD></DL><HR><A NAME="setComponent(javax.swing.text.MutableAttributeSet, java.awt.Component)"><!-- --></A><H3>setComponent</H3><PRE>public static void <B>setComponent</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                                <A HREF="../../../java/awt/Component.html">Component</A>&nbsp;c)</PRE><DL><DD>Sets the component attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>c</CODE> - the component</DL></DD></DL><HR><A NAME="getIcon(javax.swing.text.AttributeSet)"><!-- --></A><H3>getIcon</H3><PRE>public static <A HREF="../../../javax/swing/Icon.html">Icon</A> <B>getIcon</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Gets the icon setting from the attribute list.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DT><B>Returns:</B><DD>the icon, null if none</DL></DD></DL><HR><A NAME="setIcon(javax.swing.text.MutableAttributeSet, javax.swing.Icon)"><!-- --></A><H3>setIcon</H3><PRE>public static void <B>setIcon</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                           <A HREF="../../../javax/swing/Icon.html">Icon</A>&nbsp;c)</PRE><DL><DD>Sets the icon attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>c</CODE> - the icon</DL></DD></DL><HR><A NAME="getFontFamily(javax.swing.text.AttributeSet)"><!-- --></A><H3>getFontFamily</H3><PRE>public static <A HREF="../../../java/lang/String.html">String</A> <B>getFontFamily</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Gets the font family setting from the attribute list.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DT><B>Returns:</B><DD>the font family, "Monospaced" as the default</DL></DD></DL><HR><A NAME="setFontFamily(javax.swing.text.MutableAttributeSet, java.lang.String)"><!-- --></A><H3>setFontFamily</H3><PRE>public static void <B>setFontFamily</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                                 <A HREF="../../../java/lang/String.html">String</A>&nbsp;fam)</PRE><DL><DD>Sets the font attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>fam</CODE> - the font</DL></DD></DL><HR><A NAME="getFontSize(javax.swing.text.AttributeSet)"><!-- --></A><H3>getFontSize</H3><PRE>public static int <B>getFontSize</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Gets the font size setting from the attribute list.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DT><B>Returns:</B><DD>the font size, 12 as the default</DL></DD></DL><HR><A NAME="setFontSize(javax.swing.text.MutableAttributeSet, int)"><!-- --></A><H3>setFontSize</H3><PRE>public static void <B>setFontSize</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                               int&nbsp;s)</PRE><DL><DD>Sets the font size attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>s</CODE> - the font size</DL></DD></DL><HR><A NAME="isBold(javax.swing.text.AttributeSet)"><!-- --></A><H3>isBold</H3><PRE>public static boolean <B>isBold</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Checks whether the bold attribute is set.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DT><B>Returns:</B><DD>true if set else false</DL></DD></DL><HR><A NAME="setBold(javax.swing.text.MutableAttributeSet, boolean)"><!-- --></A><H3>setBold</H3><PRE>public static void <B>setBold</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                           boolean&nbsp;b)</PRE><DL><DD>Sets the bold attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>b</CODE> - specifies true/false for setting the attribute</DL></DD></DL><HR><A NAME="isItalic(javax.swing.text.AttributeSet)"><!-- --></A><H3>isItalic</H3><PRE>public static boolean <B>isItalic</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Checks whether the italic attribute is set.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DT><B>Returns:</B><DD>true if set else false</DL></DD></DL><HR><A NAME="setItalic(javax.swing.text.MutableAttributeSet, boolean)"><!-- --></A><H3>setItalic</H3><PRE>public static void <B>setItalic</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                             boolean&nbsp;b)</PRE><DL><DD>Sets the italic attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>b</CODE> - specifies true/false for setting the attribute</DL></DD></DL><HR><A NAME="isUnderline(javax.swing.text.AttributeSet)"><!-- --></A><H3>isUnderline</H3><PRE>public static boolean <B>isUnderline</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Checks whether the underline attribute is set.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DT><B>Returns:</B><DD>true if set else false</DL></DD></DL><HR><A NAME="isStrikeThrough(javax.swing.text.AttributeSet)"><!-- --></A><H3>isStrikeThrough</H3><PRE>public static boolean <B>isStrikeThrough</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Checks whether the strikethrough attribute is set.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DT><B>Returns:</B><DD>true if set else false</DL></DD></DL><HR><A NAME="isSuperscript(javax.swing.text.AttributeSet)"><!-- --></A><H3>isSuperscript</H3><PRE>public static boolean <B>isSuperscript</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Checks whether the superscript attribute is set.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DT><B>Returns:</B><DD>true if set else false</DL></DD></DL><HR><A NAME="isSubscript(javax.swing.text.AttributeSet)"><!-- --></A><H3>isSubscript</H3><PRE>public static boolean <B>isSubscript</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Checks whether the subscript attribute is set.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DT><B>Returns:</B><DD>true if set else false</DL></DD></DL><HR><A NAME="setUnderline(javax.swing.text.MutableAttributeSet, boolean)"><!-- --></A><H3>setUnderline</H3><PRE>public static void <B>setUnderline</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                                boolean&nbsp;b)</PRE><DL><DD>Sets the underline attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>b</CODE> - specifies true/false for setting the attribute</DL></DD></DL><HR><A NAME="setStrikeThrough(javax.swing.text.MutableAttributeSet, boolean)"><!-- --></A><H3>setStrikeThrough</H3><PRE>public static void <B>setStrikeThrough</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                                    boolean&nbsp;b)</PRE><DL><DD>Sets the strikethrough attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>b</CODE> - specifies true/false for setting the attribute</DL></DD></DL><HR><A NAME="setSuperscript(javax.swing.text.MutableAttributeSet, boolean)"><!-- --></A><H3>setSuperscript</H3><PRE>public static void <B>setSuperscript</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                                  boolean&nbsp;b)</PRE><DL><DD>Sets the superscript attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>b</CODE> - specifies true/false for setting the attribute</DL></DD></DL><HR><A NAME="setSubscript(javax.swing.text.MutableAttributeSet, boolean)"><!-- --></A><H3>setSubscript</H3><PRE>public static void <B>setSubscript</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                                boolean&nbsp;b)</PRE><DL><DD>Sets the subscript attribute.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>b</CODE> - specifies true/false for setting the attribute</DL></DD></DL><HR><A NAME="getForeground(javax.swing.text.AttributeSet)"><!-- --></A><H3>getForeground</H3><PRE>public static <A HREF="../../../java/awt/Color.html">Color</A> <B>getForeground</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Gets the foreground color setting from the attribute list.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DT><B>Returns:</B><DD>the color, Color.black as the default</DL></DD></DL><HR><A NAME="setForeground(javax.swing.text.MutableAttributeSet, java.awt.Color)"><!-- --></A><H3>setForeground</H3><PRE>public static void <B>setForeground</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                                 <A HREF="../../../java/awt/Color.html">Color</A>&nbsp;fg)</PRE><DL><DD>Sets the foreground color.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>fg</CODE> - the color</DL></DD></DL><HR><A NAME="getBackground(javax.swing.text.AttributeSet)"><!-- --></A><H3>getBackground</H3><PRE>public static <A HREF="../../../java/awt/Color.html">Color</A> <B>getBackground</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Gets the background color setting from the attribute list.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DT><B>Returns:</B><DD>the color, Color.black as the default</DL></DD></DL><HR><A NAME="setBackground(javax.swing.text.MutableAttributeSet, java.awt.Color)"><!-- --></A><H3>setBackground</H3><PRE>public static void <B>setBackground</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                                 <A HREF="../../../java/awt/Color.html">Color</A>&nbsp;fg)</PRE><DL><DD>Sets the background color.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set<DD><CODE>fg</CODE> - the color</DL></DD></DL><HR><A NAME="getFirstLineIndent(javax.swing.text.AttributeSet)"><!-- --></A><H3>getFirstLineIndent</H3><PRE>public static float <B>getFirstLineIndent</B>(<A HREF="../../../javax/swing/text/AttributeSet.html">AttributeSet</A>&nbsp;a)</PRE><DL><DD>Gets the first line indent setting.<DD><DL><DT><B>Parameters:</B><DD><CODE>a</CODE> - the attribute set</DL></DD></DL><HR><A NAME="setFirstLineIndent(javax.swing.text.MutableAttributeSet, float)"><!-- --></A><H3>setFirstLineIndent</H3><PRE>public static void <B>setFirstLineIndent</B>(<A HREF="../../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A>&nbsp;a,                                      float&nbsp;i)</PRE>

⌨️ 快捷键说明

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