color.html
来自「API資料大全」· HTML 代码 · 共 1,195 行 · 第 1/5 页
HTML
1,195 行
The color magenta.</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>Color.</B><B><A HREF="../../../java/awt/Color.html#cyan">cyan</A></B></CODE><BR> The color cyan.</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>Color.</B><B><A HREF="../../../java/awt/Color.html#blue">blue</A></B></CODE><BR> The color blue.</TD></TR></TABLE> <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> <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> 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> <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> 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> <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> 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> <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> 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> <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> 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> <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> 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 <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> 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 <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> 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> <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> 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> <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> 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> <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> 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> <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> 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 <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> nm)</CODE><BR> 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 <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> nm)</CODE><BR> 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 <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> nm, <A HREF="../../../java/awt/Color.html">Color</A> v)</CODE><BR> 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 <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> nm, int v)</CODE><BR> 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 <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 h, float s, float b)</CODE><BR> 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> <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> 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> <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> 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> <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> 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> <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 x, int y)</CODE><BR> Returns the color of a pixel at the given screen coordinates.</TD></TR></TABLE> <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> 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> c)</CODE><BR> 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> 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> c)</CODE><BR> 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> 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> c)</CODE><BR> 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> 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> c)</CODE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?