📄 attributeset.html
字号:
<CODE>static <A HREF="../../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getFontFamily(javax.swing.text.AttributeSet)">getFontFamily</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the font family setting from the attribute list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getFontSize(javax.swing.text.AttributeSet)">getFontSize</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the font size setting from the attribute list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#isBold(javax.swing.text.AttributeSet)">isBold</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Checks whether the bold attribute is set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#isItalic(javax.swing.text.AttributeSet)">isItalic</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Checks whether the italic attribute is set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#isUnderline(javax.swing.text.AttributeSet)">isUnderline</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Checks whether the underline attribute is set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#isStrikeThrough(javax.swing.text.AttributeSet)">isStrikeThrough</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Checks whether the strikethrough attribute is set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#isSuperscript(javax.swing.text.AttributeSet)">isSuperscript</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Checks whether the superscript attribute is set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static boolean</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#isSubscript(javax.swing.text.AttributeSet)">isSubscript</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Checks whether the subscript attribute is set.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getForeground(javax.swing.text.AttributeSet)">getForeground</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the foreground color setting from the attribute list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getBackground(javax.swing.text.AttributeSet)">getBackground</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the background color setting from the attribute list.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static float</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getFirstLineIndent(javax.swing.text.AttributeSet)">getFirstLineIndent</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the first line indent setting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static float</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getRightIndent(javax.swing.text.AttributeSet)">getRightIndent</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the right indent setting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static float</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getLeftIndent(javax.swing.text.AttributeSet)">getLeftIndent</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the left indent setting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static float</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getLineSpacing(javax.swing.text.AttributeSet)">getLineSpacing</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the line spacing setting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static float</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getSpaceAbove(javax.swing.text.AttributeSet)">getSpaceAbove</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the space above setting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static float</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getSpaceBelow(javax.swing.text.AttributeSet)">getSpaceBelow</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the space below setting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static int</CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getAlignment(javax.swing.text.AttributeSet)">getAlignment</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the alignment setting.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../../javax/swing/text/TabSet.html">TabSet</A></CODE></FONT></TD><TD><CODE><B>StyleConstants.</B><B><A HREF="../../../../javax/swing/text/StyleConstants.html#getTabSet(javax.swing.text.AttributeSet)">getTabSet</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Gets the TabSet.</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>AbstractWriter.</B><B><A HREF="../../../../javax/swing/text/AbstractWriter.html#writeAttributes(javax.swing.text.AttributeSet)">writeAttributes</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr)</CODE><BR> Writes out the set of attributes as " <name>=<value>" pairs.</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>MutableAttributeSet.</B><B><A HREF="../../../../javax/swing/text/MutableAttributeSet.html#addAttributes(javax.swing.text.AttributeSet)">addAttributes</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attributes)</CODE><BR> Creates a new attribute set similar to this one except that it contains the given attributes and values.</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>MutableAttributeSet.</B><B><A HREF="../../../../javax/swing/text/MutableAttributeSet.html#removeAttributes(javax.swing.text.AttributeSet)">removeAttributes</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attributes)</CODE><BR> Creates a new attribute set similar to this one except that it contains no attribute with any of the given names and values.</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>MutableAttributeSet.</B><B><A HREF="../../../../javax/swing/text/MutableAttributeSet.html#setResolveParent(javax.swing.text.AttributeSet)">setResolveParent</A></B>(<A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> parent)</CODE><BR> Sets the resolving parent.</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>AbstractDocument.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.html#insertString(int, java.lang.String, javax.swing.text.AttributeSet)">insertString</A></B>(int offs, <A HREF="../../../../java/lang/String.html">String</A> str, <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a)</CODE><BR> Inserts some content into the document.</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>AbstractDocument.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.html#insertUpdate(javax.swing.text.AbstractDocument.DefaultDocumentEvent, javax.swing.text.AttributeSet)">insertUpdate</A></B>(<A HREF="../../../../javax/swing/text/AbstractDocument.DefaultDocumentEvent.html">AbstractDocument.DefaultDocumentEvent</A> chng, <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr)</CODE><BR> Updates document structure as a result of text insertion.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B>AbstractDocument.</B><B><A HREF="../../../../javax/swing/text/AbstractDocument.html#createLeafElement(javax.swing.text.Element, javax.swing.text.AttributeSet, int, int)">createLeafElement</A></B>(<A HREF="../../../../javax/swing/text/Element.html">Element</A> parent, <A HREF="../../../../javax/swing/text/AttributeSet.html">AttributeSet</A> a, int p0, int p1)</CODE><BR> Creates a document leaf element.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../../../javax/swing/text/Element.html">Element</A></CODE></FONT></TD><TD><CODE><B>AbstractDocument.</B><B><A HREF="../../../../javax/swing/text
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -