textattribute.html

来自「API資料大全」· HTML 代码 · 共 1,550 行 · 第 1/5 页

HTML
1,550
字号
 <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Constants</TH> <TD VALIGN="TOP">UNDERLINE_ON = 0</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Default</TH> <TD VALIGN="TOP">none</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Description</TH> <TD VALIGN="TOP">An embellishment added to the glyphs rendered by a  font.</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Fallback</TH> <TD VALIGN="TOP"></TD></TR> </TABLE></DL><HR><A NAME="UNDERLINE_ON"><!-- --></A><H3>UNDERLINE_ON</H3><PRE>public static final <A HREF="../../../java/lang/Integer.html">Integer</A> <B>UNDERLINE_ON</B></PRE><DL><DD>Standard underline at the roman baseline for roman text, and below the decenders for other text.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/TextAttribute.html#UNDERLINE"><CODE>UNDERLINE</CODE></A></DL></DD></DL><HR><A NAME="STRIKETHROUGH"><!-- --></A><H3>STRIKETHROUGH</H3><PRE>public static final <A HREF="../../../java/awt/font/TextAttribute.html">TextAttribute</A> <B>STRIKETHROUGH</B></PRE><DL><DD>Attribute key for the strikethrough adornment. <P><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1"> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Key</TH> <TD VALIGN="TOP">STRIKETHROUGH</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Value</TH> <TD VALIGN="TOP">Boolean</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Constants</TH> <TD VALIGN="TOP">true = on, false = off</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Default</TH> <TD VALIGN="TOP">off</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Description</TH> <TD VALIGN="TOP">An embellishment added to the glyphs rendered by a  font.</TD></TR> </TABLE></DL><HR><A NAME="STRIKETHROUGH_ON"><!-- --></A><H3>STRIKETHROUGH_ON</H3><PRE>public static final <A HREF="../../../java/lang/Boolean.html">Boolean</A> <B>STRIKETHROUGH_ON</B></PRE><DL><DD>A single strikethrough.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/TextAttribute.html#STRIKETHROUGH"><CODE>STRIKETHROUGH</CODE></A></DL></DD></DL><HR><A NAME="RUN_DIRECTION"><!-- --></A><H3>RUN_DIRECTION</H3><PRE>public static final <A HREF="../../../java/awt/font/TextAttribute.html">TextAttribute</A> <B>RUN_DIRECTION</B></PRE><DL><DD>Attribute key for the run direction of the line. <P><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1"> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Key</TH> <TD VALIGN="TOP">RUN_DIRECTION</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Value</TH> <TD VALIGN="TOP">Boolean</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Constants</TH> <TD VALIGN="TOP">RUN_DIRECTION_LTR = true, RUN_DIRECTION_RTL = false </TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Default</TH> <TD VALIGN="TOP">Use the default Unicode base direction from the BIDI  algorithm.</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Description</TH> <TD VALIGN="TOP"><P>Specifies which base run direction to use when  positioning mixed directional runs within a paragraph. If this value is RUN_DIRECTION_DEFAULT, <code>TextLayout</code> uses the default Unicode base direction from the BIDI algorithm.</P> <P><I>This attribute should have the same value over the whole  paragraph.</I></TD></TR> </TABLE></DL><HR><A NAME="RUN_DIRECTION_LTR"><!-- --></A><H3>RUN_DIRECTION_LTR</H3><PRE>public static final <A HREF="../../../java/lang/Boolean.html">Boolean</A> <B>RUN_DIRECTION_LTR</B></PRE><DL><DD>Left-to-right run direction.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/TextAttribute.html#RUN_DIRECTION"><CODE>RUN_DIRECTION</CODE></A></DL></DD></DL><HR><A NAME="RUN_DIRECTION_RTL"><!-- --></A><H3>RUN_DIRECTION_RTL</H3><PRE>public static final <A HREF="../../../java/lang/Boolean.html">Boolean</A> <B>RUN_DIRECTION_RTL</B></PRE><DL><DD>Right-to-left run direction.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/TextAttribute.html#RUN_DIRECTION"><CODE>RUN_DIRECTION</CODE></A></DL></DD></DL><HR><A NAME="BIDI_EMBEDDING"><!-- --></A><H3>BIDI_EMBEDDING</H3><PRE>public static final <A HREF="../../../java/awt/font/TextAttribute.html">TextAttribute</A> <B>BIDI_EMBEDDING</B></PRE><DL><DD>Attribute key for the embedding level for nested bidirectional runs. <P><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1"> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Key</TH> <TD VALIGN="TOP">BIDI_EMBEDDING</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Value</TH> <TD VALIGN="TOP">Integer</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Limits</TH> <TD VALIGN="TOP">Positive values 1 through 15 are <I>embedding</I> levels, negative values<BR> through -15 are <I>override</I> levels </TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Default</TH> <TD VALIGN="TOP">Use standard BIDI to compute levels from formatting characters in the text.</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Description</TH> <TD VALIGN="TOP">Specifies the bidi embedding level of the character. When this attribute is present anywhere in a paragraph, then the  Unicode characters RLO, LRO, RLE, LRE, PDF are disregarded in the BIDI  analysis of that paragraph.  See the Unicode Standard v. 2.0, section 3-11. </TD></TR> </TABLE></DL><HR><A NAME="JUSTIFICATION"><!-- --></A><H3>JUSTIFICATION</H3><PRE>public static final <A HREF="../../../java/awt/font/TextAttribute.html">TextAttribute</A> <B>JUSTIFICATION</B></PRE><DL><DD>Attribute key for the justification of a paragraph. <P><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1"> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Key</TH> <TD VALIGN="TOP">JUSTIFICATION</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Value</TH> <TD VALIGN="TOP">Float</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Limits</TH> <TD VALIGN="TOP">0.0 through1.0</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Default</TH> <TD VALIGN="TOP">1.0</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Description</TH> <TD VALIGN="TOP"><P>Specifies which fraction of the extra space to use  when justification is requested. For example, if the line is 50 points wide and the margins are 70 points apart, a value of 0.5 means that the line is padded to reach a width of 60 points.</P> <P><I>This attribute should have the same value over the whole paragraph.</I></TD></TR> </TABLE></DL><HR><A NAME="JUSTIFICATION_FULL"><!-- --></A><H3>JUSTIFICATION_FULL</H3><PRE>public static final <A HREF="../../../java/lang/Float.html">Float</A> <B>JUSTIFICATION_FULL</B></PRE><DL><DD>Justify the line to the full requested width.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/TextAttribute.html#JUSTIFICATION"><CODE>JUSTIFICATION</CODE></A></DL></DD></DL><HR><A NAME="JUSTIFICATION_NONE"><!-- --></A><H3>JUSTIFICATION_NONE</H3><PRE>public static final <A HREF="../../../java/lang/Float.html">Float</A> <B>JUSTIFICATION_NONE</B></PRE><DL><DD>Do not allow the line to be justified.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/TextAttribute.html#JUSTIFICATION"><CODE>JUSTIFICATION</CODE></A></DL></DD></DL><HR><A NAME="INPUT_METHOD_HIGHLIGHT"><!-- --></A><H3>INPUT_METHOD_HIGHLIGHT</H3><PRE>public static final <A HREF="../../../java/awt/font/TextAttribute.html">TextAttribute</A> <B>INPUT_METHOD_HIGHLIGHT</B></PRE><DL><DD>Attribute key for input method highlight styles. <p>Values are instances of  <A HREF="../../../java/awt/im/InputMethodHighlight.html"><CODE>InputMethodHighlight</CODE></A>. These instances should be wrapped in  <A HREF="../../../java/text/Annotation.html"><CODE>Annotation</CODE></A> instances if segments need to be highlighted separately. <p> Input method highlights are used while text is being composed using an input method. Text editing components should retain them even if they generally only deal with unstyled text, and make them available to the drawing routines.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/im/InputMethodHighlight.html"><CODE>InputMethodHighlight</CODE></A></DL></DD></DL><HR><A NAME="INPUT_METHOD_UNDERLINE"><!-- --></A><H3>INPUT_METHOD_UNDERLINE</H3><PRE>public static final <A HREF="../../../java/awt/font/TextAttribute.html">TextAttribute</A> <B>INPUT_METHOD_UNDERLINE</B></PRE><DL><DD>Attribute key for input method underline adornments. <P><TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1"> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Key</TH> <TD VALIGN="TOP">INPUT_METHOD_UNDERLINE</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Value</TH> <TD VALIGN="TOP">Integer</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Constants</TH> <TD VALIGN="TOP">UNDERLINE_LOW_ONE_PIXEL, UNDERLINE_LOW_TWO_PIXEL,     UNDERLINE_LOW_DOTTED, UNDERLINE_LOW_GRAY, UNDERLINE_LOW_DASHED</TD></TR> <TR> <TH VALIGN="TOP" ALIGN="RIGHT"><P ALIGN=RIGHT>Default</TH> <TD VALIGN="TOP">no underline</TD></TR> </TABLE><DD><DL><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="UNDERLINE_LOW_ONE_PIXEL"><!-- --></A><H3>UNDERLINE_LOW_ONE_PIXEL</H3><PRE>public static final <A HREF="../../../java/lang/Integer.html">Integer</A> <B>UNDERLINE_LOW_ONE_PIXEL</B></PRE><DL><DD>Single pixel solid low underline.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/TextAttribute.html#INPUT_METHOD_UNDERLINE"><CODE>INPUT_METHOD_UNDERLINE</CODE></A><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="UNDERLINE_LOW_TWO_PIXEL"><!-- --></A><H3>UNDERLINE_LOW_TWO_PIXEL</H3><PRE>public static final <A HREF="../../../java/lang/Integer.html">Integer</A> <B>UNDERLINE_LOW_TWO_PIXEL</B></PRE><DL><DD>Double pixel solid low underline.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/TextAttribute.html#INPUT_METHOD_UNDERLINE"><CODE>INPUT_METHOD_UNDERLINE</CODE></A><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="UNDERLINE_LOW_DOTTED"><!-- --></A><H3>UNDERLINE_LOW_DOTTED</H3><PRE>public static final <A HREF="../../../java/lang/Integer.html">Integer</A> <B>UNDERLINE_LOW_DOTTED</B></PRE><DL><DD>Single pixel dotted low underline.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/TextAttribute.html#INPUT_METHOD_UNDERLINE"><CODE>INPUT_METHOD_UNDERLINE</CODE></A><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="UNDERLINE_LOW_GRAY"><!-- --></A><H3>UNDERLINE_LOW_GRAY</H3><PRE>public static final <A HREF="../../../java/lang/Integer.html">Integer</A> <B>UNDERLINE_LOW_GRAY</B></PRE><DL><DD>Double pixel gray low underline.<DD><DL><DT><B>See Also: </B><DD><A HREF="../../../java/awt/font/TextAttribute.html#INPUT_METHOD_UNDERLINE"><CODE>INPUT_METHOD_UNDERLINE</CODE></A><DT><B>Since: </B><DD>1.3</DD></DL></DD></DL><HR><A NAME="UNDERLINE_LOW_DASHED"><!-- --></A><H3>UNDERLINE_LOW_DASHED</H3><PRE>public static final <A HREF="../../../java/lang/Integer.html">Integer</A> <B>UNDERLINE_LOW_DASHED</B></PRE><DL><DD>Single pixel

⌨️ 快捷键说明

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