public class Color
Constructor Summary |
---|
Color()
construct function |
Method Summary | ||
---|---|---|
boolean | equals(java.lang.Object obj) | |
Tests whether the specified object is a Color object and is equivalent to this object.
|
||
static Color | fromArgb(int argb) | |
Creates a Color object from a 32-bit ARGB value.
|
||
static Color | fromArgb(int red, int green, int blue) | |
Creates a Color object from the specified 8-bit color values
(red, green, and blue). The alpha value is implicitly 255 (fully opaque).
Although this method allows a 32-bit value to be passed for each color component,
the value of each component is limited to 8 bits.
|
||
static Color | fromArgb(int alpha, int red, int green, int blue) | |
Creates a Color object from the four ARGB component (alpha,red, green, and blue) values. Although this method allows a 32-bit value
to be passed for each component, the value of each component is limited to 8 bits.
|
||
byte | getA() | |
Gets the alpha component value of this Color object.
|
||
static Color | getAliceBlue() | |
Get a system-defined color.
|
||
static Color | getAntiqueWhite() | |
Get a system-defined color.
|
||
static Color | getAqua() | |
Get a system-defined color.
|
||
static Color | getAquamarine() | |
Get a system-defined color.
|
||
static Color | getAzure() | |
Get a system-defined color.
|
||
byte | getB() | |
Gets the blue component value of this Color object.
|
||
static Color | getBeige() | |
Get a system-defined color.
|
||
static Color | getBisque() | |
Get a system-defined color.
|
||
static Color | getBlack() | |
Get a system-defined color.
|
||
static Color | getBlanchedAlmond() | |
Get a system-defined color.
|
||
static Color | getBlue() | |
Get a system-defined color.
|
||
static Color | getBlueViolet() | |
Get a system-defined color.
|
||
static Color | getBrown() | |
Get a system-defined color.
|
||
static Color | getBurlyWood() | |
Get a system-defined color.
|
||
static Color | getCadetBlue() | |
Get a system-defined color.
|
||
static Color | getChartreuse() | |
Get a system-defined color.
|
||
static Color | getChocolate() | |
Get a system-defined color.
|
||
static Color | getCoral() | |
Get a system-defined color.
|
||
static Color | getCornflowerBlue() | |
Get a system-defined color.
|
||
static Color | getCornsilk() | |
Get a system-defined color.
|
||
static Color | getCrimson() | |
Get a system-defined color.
|
||
static Color | getCyan() | |
Get a system-defined color.
|
||
static Color | getDarkBlue() | |
Get a system-defined color.
|
||
static Color | getDarkCyan() | |
Get a system-defined color.
|
||
static Color | getDarkGoldenrod() | |
Get a system-defined color.
|
||
static Color | getDarkGray() | |
Get a system-defined color.
|
||
static Color | getDarkGreen() | |
Get a system-defined color.
|
||
static Color | getDarkKhaki() | |
Get a system-defined color.
|
||
static Color | getDarkMagenta() | |
Get a system-defined color.
|
||
static Color | getDarkOliveGreen() | |
Get a system-defined color.
|
||
static Color | getDarkOrange() | |
Get a system-defined color.
|
||
static Color | getDarkOrchid() | |
Get a system-defined color.
|
||
static Color | getDarkRed() | |
Get a system-defined color.
|
||
static Color | getDarkSalmon() | |
Get a system-defined color.
|
||
static Color | getDarkSeaGreen() | |
Get a system-defined color.
|
||
static Color | getDarkSlateBlue() | |
Get a system-defined color.
|
||
static Color | getDarkSlateGray() | |
Get a system-defined color.
|
||
static Color | getDarkTurquoise() | |
Get a system-defined color.
|
||
static Color | getDarkViolet() | |
Get a system-defined color.
|
||
static Color | getDeepPink() | |
Get a system-defined color.
|
||
static Color | getDeepSkyBlue() | |
Get a system-defined color.
|
||
static Color | getDimGray() | |
Get a system-defined color.
|
||
static Color | getDodgerBlue() | |
Get a system-defined color.
|
||
static Color | getEmpty() | |
Get a system-defined empty color.
|
||
static Color | getFirebrick() | |
Get a system-defined color.
|
||
static Color | getFloralWhite() | |
Get a system-defined color.
|
||
static Color | getForestGreen() | |
Get a system-defined color.
|
||
static Color | getFuchsia() | |
Get a system-defined color.
|
||
byte | getG() | |
Gets the green component value of this Color object.
|
||
static Color | getGainsboro() | |
Get a system-defined color.
|
||
static Color | getGhostWhite() | |
Get a system-defined color.
|
||
static Color | getGold() | |
Get a system-defined color.
|
||
static Color | getGoldenrod() | |
Get a system-defined color.
|
||
static Color | getGray() | |
Get a system-defined color.
|
||
static Color | getGreen() | |
Get a system-defined color.
|
||
static Color | getGreenYellow() | |
Get a system-defined color.
|
||
static Color | getHoneydew() | |
Get a system-defined color.
|
||
static Color | getHotPink() | |
Get a system-defined color.
|
||
static Color | getIndianRed() | |
Get a system-defined color.
|
||
static Color | getIndigo() | |
Get a system-defined color.
|
||
static Color | getIvory() | |
Get a system-defined color.
|
||
static Color | getKhaki() | |
Get a system-defined color.
|
||
static Color | getLavender() | |
Get a system-defined color.
|
||
static Color | getLavenderBlush() | |
Get a system-defined color.
|
||
static Color | getLawnGreen() | |
Get a system-defined color.
|
||
static Color | getLemonChiffon() | |
Get a system-defined color.
|
||
static Color | getLightBlue() | |
Get a system-defined color.
|
||
static Color | getLightCoral() | |
Get a system-defined color.
|
||
static Color | getLightCyan() | |
Get a system-defined color.
|
||
static Color | getLightGoldenrodYellow() | |
Get a system-defined color.
|
||
static Color | getLightGray() | |
Get a system-defined color.
|
||
static Color | getLightGreen() | |
Get a system-defined color.
|
||
static Color | getLightPink() | |
Get a system-defined color.
|
||
static Color | getLightSalmon() | |
Get a system-defined color.
|
||
static Color | getLightSeaGreen() | |
Get a system-defined color.
|
||
static Color | getLightSkyBlue() | |
Get a system-defined color.
|
||
static Color | getLightSlateGray() | |
Get a system-defined color.
|
||
static Color | getLightSteelBlue() | |
Get a system-defined color.
|
||
static Color | getLightYellow() | |
Get a system-defined color.
|
||
static Color | getLime() | |
Get a system-defined color.
|
||
static Color | getLimeGreen() | |
Get a system-defined color.
|
||
static Color | getLinen() | |
Get a system-defined color.
|
||
static Color | getMagenta() | |
Get a system-defined color.
|
||
static Color | getMaroon() | |
Get a system-defined color.
|
||
static Color | getMediumAquamarine() | |
Get a system-defined color.
|
||
static Color | getMediumBlue() | |
Get a system-defined color.
|
||
static Color | getMediumOrchid() | |
Get a system-defined color.
|
||
static Color | getMediumPurple() | |
Get a system-defined color.
|
||
static Color | getMediumSeaGreen() | |
Get a system-defined color.
|
||
static Color | getMediumSlateBlue() | |
Get a system-defined color.
|
||
static Color | getMediumSpringGreen() | |
Get a system-defined color.
|
||
static Color | getMediumTurquoise() | |
Get a system-defined color.
|
||
static Color | getMediumVioletRed() | |
Get a system-defined color.
|
||
static Color | getMidnightBlue() | |
Get a system-defined color.
|
||
static Color | getMintCream() | |
Get a system-defined color.
|
||
static Color | getMistyRose() | |
Get a system-defined color.
|
||
static Color | getMoccasin() | |
Get a system-defined color.
|
||
static Color | getNavajoWhite() | |
Get a system-defined color.
|
||
static Color | getNavy() | |
Get a system-defined color.
|
||
static Color | getOldLace() | |
Get a system-defined color.
|
||
static Color | getOlive() | |
Get a system-defined color.
|
||
static Color | getOliveDrab() | |
Get a system-defined color.
|
||
static Color | getOrange() | |
Get a system-defined color.
|
||
static Color | getOrangeRed() | |
Get a system-defined color.
|
||
static Color | getOrchid() | |
Get a system-defined color.
|
||
static Color | getPaleGoldenrod() | |
Get a system-defined color.
|
||
static Color | getPaleGreen() | |
Get a system-defined color.
|
||
static Color | getPaleTurquoise() | |
Get a system-defined color.
|
||
static Color | getPaleVioletRed() | |
Get a system-defined color.
|
||
static Color | getPapayaWhip() | |
Get a system-defined color.
|
||
static Color | getPeachPuff() | |
Get a system-defined color.
|
||
static Color | getPeru() | |
Get a system-defined color.
|
||
static Color | getPink() | |
Get a system-defined color.
|
||
static Color | getPlum() | |
Get a system-defined color.
|
||
static Color | getPowderBlue() | |
Get a system-defined color.
|
||
static Color | getPurple() | |
Get a system-defined color.
|
||
byte | getR() | |
Gets the red component value of this Color object.
|
||
static Color | getRed() | |
Get a system-defined color.
|
||
static Color | getRosyBrown() | |
Get a system-defined color.
|
||
static Color | getRoyalBlue() | |
Get a system-defined color.
|
||
static Color | getSaddleBrown() | |
Get a system-defined color.
|
||
static Color | getSalmon() | |
Get a system-defined color.
|
||
static Color | getSandyBrown() | |
Get a system-defined color.
|
||
static Color | getSeaGreen() | |
Get a system-defined color.
|
||
static Color | getSeaShell() | |
Get a system-defined color.
|
||
static Color | getSienna() | |
Get a system-defined color.
|
||
static Color | getSilver() | |
Get a system-defined color.
|
||
static Color | getSkyBlue() | |
Get a system-defined color.
|
||
static Color | getSlateBlue() | |
Get a system-defined color.
|
||
static Color | getSlateGray() | |
Get a system-defined color.
|
||
static Color | getSnow() | |
Get a system-defined color.
|
||
static Color | getSpringGreen() | |
Get a system-defined color.
|
||
static Color | getSteelBlue() | |
Get a system-defined color.
|
||
static Color | getTan() | |
Get a system-defined color.
|
||
static Color | getTeal() | |
Get a system-defined color.
|
||
static Color | getThistle() | |
Get a system-defined color.
|
||
static Color | getTomato() | |
Get a system-defined color.
|
||
static Color | getTransparent() | |
Get a system-defined color.
|
||
static Color | getTurquoise() | |
Get a system-defined color.
|
||
static Color | getViolet() | |
Get a system-defined color.
|
||
static Color | getWheat() | |
Get a system-defined color.
|
||
static Color | getWhite() | |
Get a system-defined color.
|
||
static Color | getWhiteSmoke() | |
Get a system-defined color.
|
||
static Color | getYellow() | |
Get a system-defined color.
|
||
static Color | getYellowGreen() | |
Get a system-defined color.
|
||
int | hashCode() | |
Returns a hash code for this Color object.
|
||
boolean | isEmpty() | |
Specifies whether this Color object is uninitialized.
|
||
int | toArgb() | |
Gets the 32-bit ARGB value of this Color object.
|
public static Color getSienna()
public static Color getSilver()
public static Color getSkyBlue()
public static Color getSlateBlue()
public static Color getSlateGray()
public static Color getSnow()
public static Color getSpringGreen()
public static Color getSteelBlue()
public static Color getTan()
public static Color getTeal()
public static Color getThistle()
public static Color getTomato()
public static Color getTransparent()
public static Color getTurquoise()
public static Color getViolet()
public static Color getWheat()
public static Color getWhite()
public static Color getWhiteSmoke()
public static Color getYellow()
public static Color getYellowGreen()
public byte getA()
public byte getR()
public byte getG()
public byte getB()
public boolean isEmpty()
public int toArgb()
public boolean equals(java.lang.Object obj)
obj
- The object to test.public int hashCode()
public static Color fromArgb(int argb)
argb
- A value specifying the 32-bit ARGB value.public static Color fromArgb(int red, int green, int blue)
red
- The red component value for the new Color object. Valid values are 0 through 255.green
- The green component value for the new Color object. Valid values are 0 through 255.blue
- The blue component value for the new Color object. Valid values are 0 through 255.public static Color fromArgb(int alpha, int red, int green, int blue)
alpha
- The alpha component. Valid values are 0 through 255.red
- The red component. Valid values are 0 through 255.green
- The green component. Valid values are 0 through 255.blue
- The blue component. Valid values are 0 through 255.public static Color getEmpty()
public static Color getAliceBlue()
public static Color getAntiqueWhite()
public static Color getAzure()
public static Color getAquamarine()
public static Color getAqua()
public static Color getBeige()
public static Color getBisque()
public static Color getBlack()
public static Color getBlanchedAlmond()
public static Color getBlue()
public static Color getBlueViolet()
public static Color getBrown()
public static Color getCadetBlue()
public static Color getBurlyWood()
public static Color getChartreuse()
public static Color getChocolate()
public static Color getCoral()
public static Color getCornflowerBlue()
public static Color getCornsilk()
public static Color getCrimson()
public static Color getCyan()
public static Color getDarkBlue()
public static Color getDarkCyan()
public static Color getDarkGoldenrod()
public static Color getDarkGray()
public static Color getDarkGreen()
public static Color getDarkKhaki()
public static Color getDarkMagenta()
public static Color getDarkOliveGreen()
public static Color getDarkOrange()
public static Color getDarkOrchid()
public static Color getDarkRed()
public static Color getDarkSalmon()
public static Color getDarkSeaGreen()
public static Color getDarkSlateBlue()
public static Color getDarkSlateGray()
public static Color getDarkTurquoise()
public static Color getDarkViolet()
public static Color getDeepPink()
public static Color getDeepSkyBlue()
public static Color getDimGray()
public static Color getDodgerBlue()
public static Color getFirebrick()
public static Color getFloralWhite()
public static Color getForestGreen()
public static Color getFuchsia()
public static Color getGainsboro()
public static Color getGhostWhite()
public static Color getGold()
public static Color getGoldenrod()
public static Color getGray()
public static Color getGreen()
public static Color getGreenYellow()
public static Color getHoneydew()
public static Color getHotPink()
public static Color getIndianRed()
public static Color getIndigo()
public static Color getIvory()
public static Color getKhaki()
public static Color getLavender()
public static Color getLavenderBlush()
public static Color getLawnGreen()
public static Color getLemonChiffon()
public static Color getLightBlue()
public static Color getLightCoral()
public static Color getLightCyan()
public static Color getLightGoldenrodYellow()
public static Color getLightGray()
public static Color getLightGreen()
public static Color getLightPink()
public static Color getLightSalmon()
public static Color getLightSeaGreen()
public static Color getLightSkyBlue()
public static Color getLightSlateGray()
public static Color getLightSteelBlue()
public static Color getLightYellow()
public static Color getLime()
public static Color getLimeGreen()
public static Color getLinen()
public static Color getMagenta()
public static Color getMaroon()
public static Color getMediumAquamarine()
public static Color getMediumBlue()
public static Color getMediumOrchid()
public static Color getMediumPurple()
public static Color getMediumSeaGreen()
public static Color getMediumSlateBlue()
public static Color getMediumSpringGreen()
public static Color getMediumTurquoise()
public static Color getMediumVioletRed()
public static Color getMidnightBlue()
public static Color getMintCream()
public static Color getMistyRose()
public static Color getMoccasin()
public static Color getNavajoWhite()
public static Color getNavy()
public static Color getOldLace()
public static Color getOlive()
public static Color getOliveDrab()
public static Color getOrange()
public static Color getOrangeRed()
public static Color getOrchid()
public static Color getPaleGoldenrod()
public static Color getPaleGreen()
public static Color getPaleTurquoise()
public static Color getPaleVioletRed()
public static Color getPapayaWhip()
public static Color getPeachPuff()
public static Color getPeru()
public static Color getPink()
public static Color getPlum()
public static Color getPowderBlue()
public static Color getPurple()
public static Color getRed()
public static Color getRosyBrown()
public static Color getRoyalBlue()
public static Color getSaddleBrown()
public static Color getSalmon()
public static Color getSandyBrown()
public static Color getSeaGreen()
public static Color getSeaShell()