color.html
来自「API資料大全」· HTML 代码 · 共 1,195 行 · 第 1/5 页
HTML
1,195 行
<BR> Set the foreground 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>MenuComponent.AccessibleAWTMenuComponent.</B><B><A HREF="../../../java/awt/MenuComponent.AccessibleAWTMenuComponent.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>MenuComponent.AccessibleAWTMenuComponent.</B><B><A HREF="../../../java/awt/MenuComponent.AccessibleAWTMenuComponent.html#setForeground(java.awt.Color)">setForeground</A></B>(<A HREF="../../../java/awt/Color.html">Color</A> c)</CODE><BR> Set 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 void</CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#setColor(java.awt.Color)">setColor</A></B>(<A HREF="../../../java/awt/Color.html">Color</A> c)</CODE><BR> Sets this graphics context's current color to the specified color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#setXORMode(java.awt.Color)">setXORMode</A></B>(<A HREF="../../../java/awt/Color.html">Color</A> c1)</CODE><BR> Sets the paint mode of this graphics context to alternate between this graphics context's current color and the new specified color.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, java.awt.Color, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="../../../java/awt/Image.html">Image</A> img, int x, int y, <A HREF="../../../java/awt/Color.html">Color</A> bgcolor, <A HREF="../../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Draws as much of the specified image as is currently available.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="../../../java/awt/Image.html">Image</A> img, int x, int y, int width, int height, <A HREF="../../../java/awt/Color.html">Color</A> bgcolor, <A HREF="../../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Draws as much of the specified image as has already been scaled to fit inside the specified rectangle.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract boolean</CODE></FONT></TD><TD><CODE><B>Graphics.</B><B><A HREF="../../../java/awt/Graphics.html#drawImage(java.awt.Image, int, int, int, int, int, int, int, int, java.awt.Color, java.awt.image.ImageObserver)">drawImage</A></B>(<A HREF="../../../java/awt/Image.html">Image</A> img, int dx1, int dy1, int dx2, int dy2, int sx1, int sy1, int sx2, int sy2, <A HREF="../../../java/awt/Color.html">Color</A> bgcolor, <A HREF="../../../java/awt/image/ImageObserver.html">ImageObserver</A> observer)</CODE><BR> Draws as much of the specified area of the specified image as is currently available, scaling it on the fly to fit inside the specified area of the destination drawable surface.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B>Graphics2D.</B><B><A HREF="../../../java/awt/Graphics2D.html#setBackground(java.awt.Color)">setBackground</A></B>(<A HREF="../../../java/awt/Color.html">Color</A> color)</CODE><BR> Sets the background color for the <code>Graphics2D</code> context.</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> void</CODE></FONT></TD><TD><CODE><B>List.AccessibleAWTList.AccessibleAWTListChild.</B><B><A HREF="../../../java/awt/List.AccessibleAWTList.AccessibleAWTListChild.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>List.AccessibleAWTList.AccessibleAWTListChild.</B><B><A HREF="../../../java/awt/List.AccessibleAWTList.AccessibleAWTListChild.html#setForeground(java.awt.Color)">setForeground</A></B>(<A HREF="../../../java/awt/Color.html">Color</A> c)</CODE><BR> Set the foreground 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>TextComponent.</B><B><A HREF="../../../java/awt/TextComponent.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 text component.</TD></TR></TABLE> <P><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TD COLSPAN=2>Constructors 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><CODE><B><A HREF="../../../java/awt/GradientPaint.html#GradientPaint(float, float, java.awt.Color, float, float, java.awt.Color)">GradientPaint</A></B>(float x1, float y1, <A HREF="../../../java/awt/Color.html">Color</A> color1, float x2, float y2, <A HREF="../../../java/awt/Color.html">Color</A> color2)</CODE><BR> Constructs a simple acyclic <code>GradientPaint</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/GradientPaint.html#GradientPaint(java.awt.geom.Point2D, java.awt.Color, java.awt.geom.Point2D, java.awt.Color)">GradientPaint</A></B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> pt1, <A HREF="../../../java/awt/Color.html">Color</A> color1, <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> pt2, <A HREF="../../../java/awt/Color.html">Color</A> color2)</CODE><BR> Constructs a simple acyclic <code>GradientPaint</code> object.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/GradientPaint.html#GradientPaint(float, float, java.awt.Color, float, float, java.awt.Color, boolean)">GradientPaint</A></B>(float x1, float y1, <A HREF="../../../java/awt/Color.html">Color</A> color1, float x2, float y2, <A HREF="../../../java/awt/Color.html">Color</A> color2, boolean cyclic)</CODE><BR> Constructs either a cyclic or acyclic <code>GradientPaint</code> object depending on the <code>boolean</code> parameter.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../../java/awt/GradientPaint.html#GradientPaint(java.awt.geom.Point2D, java.awt.Color, java.awt.geom.Point2D, java.awt.Color, boolean)">GradientPaint</A></B>(<A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> pt1, <A HREF="../../../java/awt/Color.html">Color</A> color1, <A HREF="../../../java/awt/geom/Point2D.html">Point2D</A> pt2, <A HREF="../../../java/awt/Color.html">Color</A> color2, boolean cyclic)</CODE><BR> Constructs either a cyclic or acyclic <code>GradientPaint</code> object depending on the <code>boolean</code> parameter.</TD></TR></TABLE> <P><A NAME="javax.accessibility"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2">Uses of <A HREF="../../../java/awt/Color.html">Color</A> in <A HREF="../../../javax/accessibility/package-summary.html">javax.accessibility</A></FONT></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="../../../javax/accessibility/package-summary.html">javax.accessibility</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>AccessibleComponent.</B><B><A HREF="../../../javax/accessibility/AccessibleComponent.html#getBackground()">getBackground</A></B>()</CODE><BR> Gets 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>AccessibleComponent.</B><B><A HREF="../../../javax/accessibility/AccessibleComponent.html#getForeground()">getForeground</A></B>()</CODE><BR> Gets the foreground color of this object.</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="../../../javax/accessibility/package-summary.html">javax.accessibility</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>AccessibleComponent.</B><B><A HREF="../../../javax/accessibility/AccessibleComponent.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 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>AccessibleComponent.</B><B><A HREF="../../../javax/accessibility/AccessibleComponent.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 object.</TD></TR></TABLE> <P><A NAME="javax.swing"><!-- --></A>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?