⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 color.html

📁 我在学习JAVA的讲义
💻 HTML
📖 第 1 页 / 共 5 页
字号:
    <TD><B>Methods inherited from class java.lang.<A 
      title="class in java.lang" 
      href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/Object.html">Object</A></B></TD></TR>
  <TR class=TableRowColor bgColor=white>
    <TD><CODE><A 
      href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/Object.html#clone()">clone</A>, 
      <A 
      href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/Object.html#finalize()">finalize</A>, 
      <A 
      href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/Object.html#getClass()">getClass</A>, 
      <A 
      href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/Object.html#notify()">notify</A>, 
      <A 
      href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/Object.html#notifyAll()">notifyAll</A>, 
      <A 
      href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/Object.html#wait()">wait</A>, 
      <A 
      href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/Object.html#wait(long)">wait</A>, 
      <A 
      href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TBODY></TABLE>&nbsp; 

<P><!-- ============ FIELD DETAIL =========== --><A 
name=field_detail><!-- --></A>
<TABLE cellSpacing=0 cellPadding=3 width="100%" summary="" border=1>
  <TBODY>
  <TR class=TableHeadingColor bgColor=#ccccff>
    <TD><FONT size=+2><B>Field Detail</B></FONT></TD></TR></TBODY></TABLE><A 
name=white><!-- --></A>
<H3>white</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>white</B></PRE>
<DL>
  <DD>The color white. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=WHITE><!-- --></A>
<H3>WHITE</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>WHITE</B></PRE>
<DL>
  <DD>The color white. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=lightGray><!-- --></A>
<H3>lightGray</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>lightGray</B></PRE>
<DL>
  <DD>The color light gray. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=LIGHT_GRAY><!-- --></A>
<H3>LIGHT_GRAY</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>LIGHT_GRAY</B></PRE>
<DL>
  <DD>The color light gray. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=gray><!-- --></A>
<H3>gray</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>gray</B></PRE>
<DL>
  <DD>The color gray. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=GRAY><!-- --></A>
<H3>GRAY</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>GRAY</B></PRE>
<DL>
  <DD>The color gray. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=darkGray><!-- --></A>
<H3>darkGray</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>darkGray</B></PRE>
<DL>
  <DD>The color dark gray. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=DARK_GRAY><!-- --></A>
<H3>DARK_GRAY</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>DARK_GRAY</B></PRE>
<DL>
  <DD>The color dark gray. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=black><!-- --></A>
<H3>black</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>black</B></PRE>
<DL>
  <DD>The color black. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=BLACK><!-- --></A>
<H3>BLACK</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>BLACK</B></PRE>
<DL>
  <DD>The color black. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=red><!-- --></A>
<H3>red</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>red</B></PRE>
<DL>
  <DD>The color red. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=RED><!-- --></A>
<H3>RED</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>RED</B></PRE>
<DL>
  <DD>The color red. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=pink><!-- --></A>
<H3>pink</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>pink</B></PRE>
<DL>
  <DD>The color pink. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=PINK><!-- --></A>
<H3>PINK</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>PINK</B></PRE>
<DL>
  <DD>The color pink. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=orange><!-- --></A>
<H3>orange</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>orange</B></PRE>
<DL>
  <DD>The color orange. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=ORANGE><!-- --></A>
<H3>ORANGE</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>ORANGE</B></PRE>
<DL>
  <DD>The color orange. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=yellow><!-- --></A>
<H3>yellow</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>yellow</B></PRE>
<DL>
  <DD>The color yellow. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=YELLOW><!-- --></A>
<H3>YELLOW</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>YELLOW</B></PRE>
<DL>
  <DD>The color yellow. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=green><!-- --></A>
<H3>green</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>green</B></PRE>
<DL>
  <DD>The color green. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=GREEN><!-- --></A>
<H3>GREEN</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>GREEN</B></PRE>
<DL>
  <DD>The color green. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=magenta><!-- --></A>
<H3>magenta</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>magenta</B></PRE>
<DL>
  <DD>The color magenta. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=MAGENTA><!-- --></A>
<H3>MAGENTA</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>MAGENTA</B></PRE>
<DL>
  <DD>The color magenta. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=cyan><!-- --></A>
<H3>cyan</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>cyan</B></PRE>
<DL>
  <DD>The color cyan. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=CYAN><!-- --></A>
<H3>CYAN</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>CYAN</B></PRE>
<DL>
  <DD>The color cyan. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=blue><!-- --></A>
<H3>blue</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>blue</B></PRE>
<DL>
  <DD>The color blue. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL>
<HR>
<A name=BLUE><!-- --></A>
<H3>BLUE</H3><PRE>public static final <A title="class in java.awt" href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html">Color</A> <B>BLUE</B></PRE>
<DL>
  <DD>The color blue. In the default sRGB space. 
  <P>
  <DL></DL></DD></DL><!-- ========= CONSTRUCTOR DETAIL ======== --><A 
name=constructor_detail><!-- --></A>
<TABLE cellSpacing=0 cellPadding=3 width="100%" summary="" border=1>
  <TBODY>
  <TR class=TableHeadingColor bgColor=#ccccff>
    <TD><FONT size=+2><B>Constructor Detail</B></FONT></TD></TR></TBODY></TABLE><A 
name="Color(int, int, int)"><!-- --></A>
<H3>Color</H3><PRE>public <B>Color</B>(int&nbsp;r,
             int&nbsp;g,
             int&nbsp;b)</PRE>
<DL>
  <DD>Creates an opaque sRGB color with the specified red, green, and blue 
  values in the range (0 - 255). The actual color used in rendering depends on 
  finding the best match given the color space available for a given output 
  device. Alpha is defaulted to 255. 
  <P></P>
  <DT><B>Parameters:</B>
  <DD><CODE>r</CODE> - the red component
  <DD><CODE>g</CODE> - the green component
  <DD><CODE>b</CODE> - the blue component
  <DT><B>See Also:</B>
  <DD><A 
  href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html#getRed()"><CODE>getRed()</CODE></A>, 
  <A 
  href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html#getGreen()"><CODE>getGreen()</CODE></A>, 
  <A 
  href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html#getBlue()"><CODE>getBlue()</CODE></A>, 
  <A 
  href="file:///D:/Tools/j2sdk-1_4_2-doc/api/java/awt/Color.html#getRGB()"><CODE>getRGB()</CODE></A></DD></DL>
<HR>
<A name="Color(int, int, int, int)"><!-- --></A>
<H3>Color</H3><PRE>public <B>Color</B>(int&nbsp;r,
             int&nbsp;g,
             int&nbsp;b,
             int&nbsp;a)</PRE>
<DL>
  <DD>Creates an sRGB color with the specified red, green, blue, and alpha 

⌨️ 快捷键说明

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