color.html

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

HTML
1,195
字号
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The color magenta.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Color.</B><B><A HREF="../../../java/awt/Color.html#cyan">cyan</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The color cyan.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Color.</B><B><A HREF="../../../java/awt/Color.html#blue">blue</A></B></CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;The color blue.</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/package-summary.html">java.awt</A> that return <A HREF="../../../java/awt/Color.html">Color</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Component.</B><B><A HREF="../../../java/awt/Component.html#getForeground()">getForeground</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the foreground color of this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Component.</B><B><A HREF="../../../java/awt/Component.html#getBackground()">getBackground</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the background color of this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Component.AccessibleAWTComponent.</B><B><A HREF="../../../java/awt/Component.AccessibleAWTComponent.html#getBackground()">getBackground</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the background color of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Component.AccessibleAWTComponent.</B><B><A HREF="../../../java/awt/Component.AccessibleAWTComponent.html#getForeground()">getForeground</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the foreground color of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>MenuComponent.AccessibleAWTMenuComponent.</B><B><A HREF="../../../java/awt/MenuComponent.AccessibleAWTMenuComponent.html#getBackground()">getBackground</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the background color of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>MenuComponent.AccessibleAWTMenuComponent.</B><B><A HREF="../../../java/awt/MenuComponent.AccessibleAWTMenuComponent.html#getForeground()">getForeground</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the foreground color of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#getColor()">getColor</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets this graphics context's current color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Graphics2D.</B><B><A HREF="../../../java/awt/Graphics2D.html#getBackground()">getBackground</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the background color used for clearing a region.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>GradientPaint.</B><B><A HREF="../../../java/awt/GradientPaint.html#getColor1()">getColor1</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the color C1 anchored by the point P1.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>GradientPaint.</B><B><A HREF="../../../java/awt/GradientPaint.html#getColor2()">getColor2</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the color C2 anchored by the point P2.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Color.</B><B><A HREF="../../../java/awt/Color.html#brighter()">brighter</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>Color</code> that is a brighter version of this <code>Color</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Color.</B><B><A HREF="../../../java/awt/Color.html#darker()">darker</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a new <code>Color</code> that is a darker version of this <code>Color</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Color.</B><B><A HREF="../../../java/awt/Color.html#decode(java.lang.String)">decode</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;nm)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Converts a <code>String</code> to an integer and returns the  specified opaque <code>Color</code>.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Color.</B><B><A HREF="../../../java/awt/Color.html#getColor(java.lang.String)">getColor</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;nm)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds a color in the system properties.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Color.</B><B><A HREF="../../../java/awt/Color.html#getColor(java.lang.String, java.awt.Color)">getColor</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;nm,         <A HREF="../../../java/awt/Color.html">Color</A>&nbsp;v)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds a color in the system properties.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Color.</B><B><A HREF="../../../java/awt/Color.html#getColor(java.lang.String, int)">getColor</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;nm,         int&nbsp;v)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Finds a color in the system properties.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Color.</B><B><A HREF="../../../java/awt/Color.html#getHSBColor(float, float, float)">getHSBColor</A></B>(float&nbsp;h,            float&nbsp;s,            float&nbsp;b)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Creates a <code>Color</code> object based on the specified values  for the HSB color model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>List.AccessibleAWTList.AccessibleAWTListChild.</B><B><A HREF="../../../java/awt/List.AccessibleAWTList.AccessibleAWTListChild.html#getBackground()">getBackground</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the background color of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>List.AccessibleAWTList.AccessibleAWTListChild.</B><B><A HREF="../../../java/awt/List.AccessibleAWTList.AccessibleAWTListChild.html#getForeground()">getForeground</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the foreground color of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>TextComponent.</B><B><A HREF="../../../java/awt/TextComponent.html#getBackground()">getBackground</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Gets the background color of this text component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/awt/Color.html">Color</A></CODE></FONT></TD><TD><CODE><B>Robot.</B><B><A HREF="../../../java/awt/Robot.html#getPixelColor(int, int)">getPixelColor</A></B>(int&nbsp;x,              int&nbsp;y)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the color of a pixel at the given screen coordinates.</TD></TR></TABLE>&nbsp;<P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Methods in <A HREF="../../../java/awt/package-summary.html">java.awt</A> with parameters of type <A HREF="../../../java/awt/Color.html">Color</A></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>Component.</B><B><A HREF="../../../java/awt/Component.html#setForeground(java.awt.Color)">setForeground</A></B>(<A HREF="../../../java/awt/Color.html">Color</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the foreground color of this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>Component.</B><B><A HREF="../../../java/awt/Component.html#setBackground(java.awt.Color)">setBackground</A></B>(<A HREF="../../../java/awt/Color.html">Color</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the background color of this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>Component.AccessibleAWTComponent.</B><B><A HREF="../../../java/awt/Component.AccessibleAWTComponent.html#setBackground(java.awt.Color)">setBackground</A></B>(<A HREF="../../../java/awt/Color.html">Color</A>&nbsp;c)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the background color of this object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B>Component.AccessibleAWTComponent.</B><B><A HREF="../../../java/awt/Component.AccessibleAWTComponent.html#setForeground(java.awt.Color)">setForeground</A></B>(<A HREF="../../../java/awt/Color.html">Color</A>&nbsp;c)</CODE>

⌨️ 快捷键说明

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