📄 rtfcolor.html
字号:
<TD><CODE><B><A HREF="../../../../../com/lowagie/text/rtf/style/RtfColor.html#equals(java.lang.Object)">equals</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A> obj)</CODE><BR> Tests if this RtfColor is equal to another RtfColor.</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="../../../../../com/lowagie/text/rtf/style/RtfColor.html#getBlue()">getBlue</A></B>()</CODE><BR> Get the blue value of this RtfColor</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="../../../../../com/lowagie/text/rtf/style/RtfColor.html#getColorNumber()">getColorNumber</A></B>()</CODE><BR> Gets the number of this RtfColor in the list of colors</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="../../../../../com/lowagie/text/rtf/style/RtfColor.html#getGreen()">getGreen</A></B>()</CODE><BR> Get the green value of this RtfColor</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="../../../../../com/lowagie/text/rtf/style/RtfColor.html#getRed()">getRed</A></B>()</CODE><BR> Get the red value of this RtfColor</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="../../../../../com/lowagie/text/rtf/style/RtfColor.html#hashCode()">hashCode</A></B>()</CODE><BR> Returns the hash code of this RtfColor.</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="../../../../../com/lowagie/text/rtf/style/RtfColor.html#setRtfDocument(com.lowagie.text.rtf.document.RtfDocument)">setRtfDocument</A></B>(<A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html" title="class in com.lowagie.text.rtf.document">RtfDocument</A> doc)</CODE><BR> Sets the RtfDocument this RtfColor belongs to</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="../../../../../com/lowagie/text/rtf/style/RtfColor.html#writeBegin(java.io.OutputStream)">writeBegin</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result)</CODE><BR> Writes the beginning of this RtfColor</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="../../../../../com/lowagie/text/rtf/style/RtfColor.html#writeContent(java.io.OutputStream)">writeContent</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> out)</CODE><BR> unused</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="../../../../../com/lowagie/text/rtf/style/RtfColor.html#writeDefinition(java.io.OutputStream)">writeDefinition</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result)</CODE><BR> Write the definition part of this RtfColor.</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="../../../../../com/lowagie/text/rtf/style/RtfColor.html#writeEnd(java.io.OutputStream)">writeEnd</A></B>(<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/io/OutputStream.html?is-external=true" title="class or interface in java.io">OutputStream</A> result)</CODE><BR> Unused</TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.lowagie.text.rtf.RtfElement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class com.lowagie.text.rtf.<A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html" title="class in com.lowagie.text.rtf">RtfElement</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#intToByteArray(int)">intToByteArray</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#isInTable()">isInTable</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#setInHeader(boolean)">setInHeader</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfElement.html#setInTable(boolean)">setInTable</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <A NAME="methods_inherited_from_class_com.lowagie.text.rtf.RtfBasicElement"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from interface com.lowagie.text.rtf.<A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html" title="interface in com.lowagie.text.rtf">RtfBasicElement</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html#setInHeader(boolean)">setInHeader</A>, <A HREF="../../../../../com/lowagie/text/rtf/RtfBasicElement.html#setInTable(boolean)">setInTable</A></CODE></TD></TR></TABLE> <P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Field Detail</B></FONT></TH></TR></TABLE><A NAME="COLOR_RED"><!-- --></A><H3>COLOR_RED</H3><PRE>private static final byte[] <B>COLOR_RED</B></PRE><DL><DD>Constant for RED value<P><DL></DL></DL><HR><A NAME="COLOR_GREEN"><!-- --></A><H3>COLOR_GREEN</H3><PRE>private static final byte[] <B>COLOR_GREEN</B></PRE><DL><DD>Constant for GREEN value<P><DL></DL></DL><HR><A NAME="COLOR_BLUE"><!-- --></A><H3>COLOR_BLUE</H3><PRE>private static final byte[] <B>COLOR_BLUE</B></PRE><DL><DD>Constant for BLUE value<P><DL></DL></DL><HR><A NAME="COLON"><!-- --></A><H3>COLON</H3><PRE>private static final byte <B>COLON</B></PRE><DL><DD>Constant for the end of one color entry<P><DL><DT><B>See Also:</B><DD><A HREF="../../../../../constant-values.html#com.lowagie.text.rtf.style.RtfColor.COLON">Constant Field Values</A></DL></DL><HR><A NAME="COLOR_NUMBER"><!-- --></A><H3>COLOR_NUMBER</H3><PRE>private static final byte[] <B>COLOR_NUMBER</B></PRE><DL><DD>Constant for the number of the color in the list of colors<P><DL></DL></DL><HR><A NAME="colorNumber"><!-- --></A><H3>colorNumber</H3><PRE>private int <B>colorNumber</B></PRE><DL><DD>The number of the color in the list of colors<P><DL></DL></DL><HR><A NAME="red"><!-- --></A><H3>red</H3><PRE>private int <B>red</B></PRE><DL><DD>The red value<P><DL></DL></DL><HR><A NAME="green"><!-- --></A><H3>green</H3><PRE>private int <B>green</B></PRE><DL><DD>The green value<P><DL></DL></DL><HR><A NAME="blue"><!-- --></A><H3>blue</H3><PRE>private int <B>blue</B></PRE><DL><DD>The blue value<P><DL></DL></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="RtfColor(com.lowagie.text.rtf.document.RtfDocument, int, int, int, int)"><!-- --></A><H3>RtfColor</H3><PRE>protected <B>RtfColor</B>(<A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html" title="class in com.lowagie.text.rtf.document">RtfDocument</A> doc, int red, int green, int blue, int colorNumber)</PRE><DL><DD>Constructor only for use when initializing the RtfColorList<P><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - The RtfDocument this RtfColor belongs to<DD><CODE>red</CODE> - The red value to use<DD><CODE>green</CODE> - The green value to use<DD><CODE>blue</CODE> - The blue value to use<DD><CODE>colorNumber</CODE> - The number of the color in the color list</DL></DL><HR><A NAME="RtfColor(com.lowagie.text.rtf.document.RtfDocument, com.lowagie.text.rtf.style.RtfColor)"><!-- --></A><H3>RtfColor</H3><PRE>public <B>RtfColor</B>(<A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html" title="class in com.lowagie.text.rtf.document">RtfDocument</A> doc, <A HREF="../../../../../com/lowagie/text/rtf/style/RtfColor.html" title="class in com.lowagie.text.rtf.style">RtfColor</A> col)</PRE><DL><DD>Constructs a RtfColor as a clone of an existing RtfColor<P><DL><DT><B>Parameters:</B><DD><CODE>doc</CODE> - The RtfDocument this RtfColor belongs to<DD><CODE>col</CODE> - The RtfColor to use as a base</DL></DL><HR><A NAME="RtfColor(com.lowagie.text.rtf.document.RtfDocument, java.awt.Color)"><!-- --></A><H3>RtfColor</H3><PRE>public <B>RtfColor</B>(<A HREF="../../../../../com/lowagie/text/rtf/document/RtfDocument.html" title="class in com.lowagie.text.rtf.document">RtfDocument</A> doc, <A HREF="http://java.sun.com/j2se/1.4/docs/api/java/awt/Color.html?is-external=true" title="class or interface in java.awt">Color</A> col)</PRE><DL><DD>Constructs a RtfColor based on the Color<P><DL>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -