Color
Inheritance: java.lang.Object
public final class Color
Represents class for color value which can be expressed in different color space.
Constructors
Constructor | Description |
---|---|
Color() | Default constructor. |
Color(double[] vector) | Constructor |
Fields
Field | Description |
---|---|
Empty | Represents empty color. |
Methods
Method | Description |
---|---|
getA() | Gets the alpha component value |
getData() | Color value. |
getColorSpace() | Gets color space that the color represents. |
deepClone() | Clones this instance |
parse(String value) | Extracts color components from the string. |
toString() | Converts to string. |
toRgb() | Converts color into rgb. |
fromRgb(Color color) | Gets valid pdf Color object from java.awt.Color value. |
fromArgb(int r, int g, int b) | Gets valid pdf Color object from RGB color components. |
fromArgb(int a, int r, int g, int b) | Gets valid pdf Color object from RGB color components. |
fromRgb(double r, double g, double b) | Gets valid pdf Color object from RGB color components. |
fromGray(double g) | Gets valid pdf Color object from Gray color component. |
fromCmyk(double c, double m, double y, double k) | Gets valid pdf Color object from RGB color components. |
hashCode() | Returns a hash code value for the object. |
equals(Object obj) | Returns true if two Colors are equal. |
op_Equality(Color x, Color y) | Returns true if two Colors are equal. |
op_Inequality(Color x, Color y) | Returns true if two Colors are not equal. |
getPatternColorSpace() | Gets a object that indicates the pattern colorspace. |
setPatternColorSpace(PatternColorSpace value) | Sets a object that indicates the pattern colorspace. |
getTransparent() | Gets a system-defined color. |
getAliceBlue() | Gets a system-defined color that has an ARGB value of #FFF0F8FF. |
getAntiqueWhite() | Gets a system-defined color that has an ARGB value of #FFFAEBD7. |
getAqua() | Gets a system-defined color that has an ARGB value of #FF00FFFF. |
getAquamarine() | Gets a system-defined color that has an ARGB value of #FF7FFFD4. |
getAzure() | Gets a system-defined color that has an ARGB value of #FFF0FFFF. |
getBeige() | Gets a system-defined color that has an ARGB value of #FFF5F5DC. |
getBisque() | Gets a system-defined color that has an ARGB value of #FFFFE4C4. |
getBlack() | Gets a system-defined color that has an ARGB value of #FF000000. |
getBlanchedAlmond() | Gets a system-defined color that has an ARGB value of #FFFFEBCD. |
getBlue() | Gets a system-defined color that has an ARGB value of #FF0000FF. |
getBlueViolet() | Gets a system-defined color that has an ARGB value of #FF8A2BE2. |
getBrown() | Gets a system-defined color that has an ARGB value of #FFA52A2A. |
getBurlyWood() | Gets a system-defined color that has an ARGB value of #FFDEB887. |
getCadetBlue() | Gets a system-defined color that has an ARGB value of #FF5F9EA0. |
getChartreuse() | Gets a system-defined color that has an ARGB value of #FF7FFF00. |
getChocolate() | Gets a system-defined color that has an ARGB value of #FFD2691E. |
getCoral() | Gets a system-defined color that has an ARGB value of #FFFF7F50. |
getCornflowerBlue() | Gets a system-defined color that has an ARGB value of #FF6495ED. |
getCornsilk() | Gets a system-defined color that has an ARGB value of #FFFFF8DC. |
getCrimson() | Gets a system-defined color that has an ARGB value of #FFDC143C. |
getCyan() | Gets a system-defined color that has an ARGB value of #FF00FFFF. |
getDarkBlue() | Gets a system-defined color that has an ARGB value of #FF00008B. |
getDarkCyan() | Gets a system-defined color that has an ARGB value of #FF008B8B. |
getDarkGoldenrod() | Gets a system-defined color that has an ARGB value of #FFB8860B. |
getDarkGray() | Gets a system-defined color that has an ARGB value of #FFA9A9A9. |
getDarkGreen() | Gets a system-defined color that has an ARGB value of #FF006400. |
getDarkKhaki() | Gets a system-defined color that has an ARGB value of #FFBDB76B. |
getDarkMagenta() | Gets a system-defined color that has an ARGB value of #FF8B008B. |
getDarkOliveGreen() | Gets a system-defined color that has an ARGB value of #FF556B2F. |
getDarkOrange() | Gets a system-defined color that has an ARGB value of #FFFF8C00. |
getDarkOrchid() | Gets a system-defined color that has an ARGB value of #FF9932CC. |
getDarkRed() | Gets a system-defined color that has an ARGB value of #FF8B0000. |
getDarkSalmon() | Gets a system-defined color that has an ARGB value of #FFE9967A. |
getDarkSeaGreen() | Gets a system-defined color that has an ARGB value of #FF8FBC8F. |
getDarkSlateBlue() | Gets a system-defined color that has an ARGB value of #FF483D8B. |
getDarkSlateGray() | Gets a system-defined color that has an ARGB value of #FF2F4F4F. |
getDarkTurquoise() | Gets a system-defined color that has an ARGB value of #FF00CED1. |
getDarkViolet() | Gets a system-defined color that has an ARGB value of #FF9400D3. |
getDeepPink() | Gets a system-defined color that has an ARGB value of #FFFF1493. |
getDeepSkyBlue() | Gets a system-defined color that has an ARGB value of #FF00BFFF. |
getDimGray() | Gets a system-defined color that has an ARGB value of #FF696969. |
getDodgerBlue() | Gets a system-defined color that has an ARGB value of #FF1E90FF. |
getFirebrick() | Gets a system-defined color that has an ARGB value of #FFB22222. |
getFloralWhite() | Gets a system-defined color that has an ARGB value of #FFFFFAF0. |
getForestGreen() | Gets a system-defined color that has an ARGB value of #FF228B22. |
getFuchsia() | Gets a system-defined color that has an ARGB value of #FFFF00FF. |
getGainsboro() | Gets a system-defined color that has an ARGB value of #FFDCDCDC. |
getGhostWhite() | Gets a system-defined color that has an ARGB value of #FFF8F8FF. |
getGold() | Gets a system-defined color that has an ARGB value of #FFFFD700. |
getGoldenrod() | Gets a system-defined color that has an ARGB value of #FFDAA520. |
getGray() | Gets a system-defined color that has an ARGB value of #FF808080. |
getGreen() | Gets a system-defined color that has an ARGB value of #FF008000. |
getGreenYellow() | Gets a system-defined color that has an ARGB value of #FFADFF2F. |
getHoneydew() | Gets a system-defined color that has an ARGB value of #FFF0FFF0. |
getHotPink() | Gets a system-defined color that has an ARGB value of #FFFF69B4. |
getIndianRed() | Gets a system-defined color that has an ARGB value of #FFCD5C5C. |
getIndigo() | Gets a system-defined color that has an ARGB value of #FF4B0082. |
getIvory() | Gets a system-defined color that has an ARGB value of #FFFFFFF0. |
getKhaki() | Gets a system-defined color that has an ARGB value of #FFF0E68C. |
getLavender() | Gets a system-defined color that has an ARGB value of #FFE6E6FA. |
getLavenderBlush() | Gets a system-defined color that has an ARGB value of #FFFFF0F5. |
getLawnGreen() | Gets a system-defined color that has an ARGB value of #FF7CFC00. |
getLemonChiffon() | Gets a system-defined color that has an ARGB value of #FFFFFACD. |
getLightBlue() | Gets a system-defined color that has an ARGB value of #FFADD8E6. |
getLightCoral() | Gets a system-defined color that has an ARGB value of #FFF08080. |
getLightCyan() | Gets a system-defined color that has an ARGB value of #FFE0FFFF. |
getLightGoldenrodYellow() | Gets a system-defined color that has an ARGB value of #FFFAFAD2. |
getLightGreen() | Gets a system-defined color that has an ARGB value of #FF90EE90. |
getLightGray() | Gets a system-defined color that has an ARGB value of #FFD3D3D3. |
getLightPink() | Gets a system-defined color that has an ARGB value of #FFFFB6C1. |
getLightSalmon() | Gets a system-defined color that has an ARGB value of #FFFFA07A. |
getLightSeaGreen() | Gets a system-defined color that has an ARGB value of #FF20B2AA. |
getLightSkyBlue() | Gets a system-defined color that has an ARGB value of #FF87CEFA. |
getLightSlateGray() | Gets a system-defined color that has an ARGB value of #FF778899. |
getLightSteelBlue() | Gets a system-defined color that has an ARGB value of #FFB0C4DE. |
getLightYellow() | Gets a system-defined color that has an ARGB value of #FFFFFFE0. |
getLime() | Gets a system-defined color that has an ARGB value of #FF00FF00. |
getLimeGreen() | Gets a system-defined color that has an ARGB value of #FF32CD32. |
getLinen() | Gets a system-defined color that has an ARGB value of #FFFAF0E6. |
getMagenta() | Gets a system-defined color that has an ARGB value of #FFFF00FF. |
getMaroon() | Gets a system-defined color that has an ARGB value of #FF800000. |
getMediumAquamarine() | Gets a system-defined color that has an ARGB value of #FF66CDAA. |
getMediumBlue() | Gets a system-defined color that has an ARGB value of #FF0000CD. |
getMediumOrchid() | Gets a system-defined color that has an ARGB value of #FFBA55D3. |
getMediumPurple() | Gets a system-defined color that has an ARGB value of #FF9370DB. |
getMediumSeaGreen() | Gets a system-defined color that has an ARGB value of #FF3CB371. |
getMediumSlateBlue() | Gets a system-defined color that has an ARGB value of #FF7B68EE. |
getMediumSpringGreen() | Gets a system-defined color that has an ARGB value of #FF00FA9A. |
getMediumTurquoise() | Gets a system-defined color that has an ARGB value of #FF48D1CC. |
getMediumVioletRed() | Gets a system-defined color that has an ARGB value of #FFC71585. |
getMidnightBlue() | Gets a system-defined color that has an ARGB value of #FF191970. |
getMintCream() | Gets a system-defined color that has an ARGB value of #FFF5FFFA. |
getMistyRose() | Gets a system-defined color that has an ARGB value of #FFFFE4E1. |
getMoccasin() | Gets a system-defined color that has an ARGB value of #FFFFE4B5. |
getNavajoWhite() | Gets a system-defined color that has an ARGB value of #FFFFDEAD. |
getNavy() | Gets a system-defined color that has an ARGB value of #FF000080. |
getOldLace() | Gets a system-defined color that has an ARGB value of #FFFDF5E6. |
getOlive() | Gets a system-defined color that has an ARGB value of #FF808000. |
getOliveDrab() | Gets a system-defined color that has an ARGB value of #FF6B8E23. |
getOrange() | Gets a system-defined color that has an ARGB value of #FFFFA500. |
getOrangeRed() | Gets a system-defined color that has an ARGB value of #FFFF4500. |
getOrchid() | Gets a system-defined color that has an ARGB value of #FFDA70D6. |
getPaleGoldenrod() | Gets a system-defined color that has an ARGB value of #FFEEE8AA. |
getPaleGreen() | Gets a system-defined color that has an ARGB value of #FF98FB98. |
getPaleTurquoise() | Gets a system-defined color that has an ARGB value of #FFAFEEEE. |
getPaleVioletRed() | Gets a system-defined color that has an ARGB value of #FFDB7093. |
getPapayaWhip() | Gets a system-defined color that has an ARGB value of #FFFFEFD5. |
getPeachPuff() | Gets a system-defined color that has an ARGB value of #FFFFDAB9. |
getPeru() | Gets a system-defined color that has an ARGB value of #FFCD853F. |
getPink() | Gets a system-defined color that has an ARGB value of #FFFFC0CB. |
getPlum() | Gets a system-defined color that has an ARGB value of #FFDDA0DD. |
getPowderBlue() | Gets a system-defined color that has an ARGB value of #FFB0E0E6. |
getPurple() | Gets a system-defined color that has an ARGB value of #FF800080. |
getRed() | Gets a system-defined color that has an ARGB value of #FFFF0000. |
getRosyBrown() | Gets a system-defined color that has an ARGB value of #FFBC8F8F. |
getRoyalBlue() | Gets a system-defined color that has an ARGB value of #FF4169E1. |
getSaddleBrown() | Gets a system-defined color that has an ARGB value of #FF8B4513. |
getSalmon() | Gets a system-defined color that has an ARGB value of #FFFA8072. |
getSandyBrown() | Gets a system-defined color that has an ARGB value of #FFF4A460. |
getSeaGreen() | Gets a system-defined color that has an ARGB value of #FF2E8B57. |
getSeaShell() | Gets a system-defined color that has an ARGB value of #FFFFF5EE. |
getSienna() | Gets a system-defined color that has an ARGB value of #FFA0522D. |
getSilver() | Gets a system-defined color that has an ARGB value of #FFC0C0C0. |
getSkyBlue() | Gets a system-defined color that has an ARGB value of #FF87CEEB. |
getSlateBlue() | Gets a system-defined color that has an ARGB value of #FF6A5ACD. |
getSlateGray() | Gets a system-defined color that has an ARGB value of #FF708090. |
getSnow() | Gets a system-defined color that has an ARGB value of #FFFFFAFA. |
getSpringGreen() | Gets a system-defined color that has an ARGB value of #FF00FF7F. |
getSteelBlue() | Gets a system-defined color that has an ARGB value of #FF4682B4. |
getTan() | Gets a system-defined color that has an ARGB value of #FFD2B48C. |
getTeal() | Gets a system-defined color that has an ARGB value of #FF008080. |
getThistle() | Gets a system-defined color that has an ARGB value of #FFD8BFD8. |
getTomato() | Gets a system-defined color that has an ARGB value of #FFFF6347. |
getTurquoise() | Gets a system-defined color that has an ARGB value of #FF40E0D0. |
getViolet() | Gets a system-defined color that has an ARGB value of #FFEE82EE. |
getWheat() | Gets a system-defined color that has an ARGB value of #FFF5DEB3. |
getWhite() | Gets a system-defined color that has an ARGB value of #FFFFFFFF. |
getWhiteSmoke() | Gets a system-defined color that has an ARGB value of #FFF5F5F5. |
getYellow() | Gets a system-defined color that has an ARGB value of #FFFFFF00. |
getYellowGreen() | Gets a system-defined color that has an ARGB value of #FF9ACD32. |
Color()
public Color()
Default constructor.
Color(double[] vector)
public Color(double[] vector)
Constructor
Parameters:
Parameter | Type | Description |
---|---|---|
vector | double[] | double[] array |
Empty
public static final Color Empty
Represents empty color.
getA()
public double getA()
Gets the alpha component value
Returns: double - double value
getData()
public double[] getData()
Color value.
Returns: double[] - array of double values
getColorSpace()
public int getColorSpace()
Gets color space that the color represents.
Returns: int - ColorSpace object
deepClone()
public Color deepClone()
Clones this instance
Returns: Color - Color object
parse(String value)
public static Color parse(String value)
Extracts color components from the string.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String | String value with color component values. |
Returns: Color - Color object.
toString()
public String toString()
Converts to string.
Returns: java.lang.String - String representation of the Color object.
toRgb()
public Color toRgb()
Converts color into rgb.
Returns: Color - Rgb color value.
fromRgb(Color color)
public static Color fromRgb(Color color)
Gets valid pdf Color object from java.awt.Color value.
Parameters:
Parameter | Type | Description |
---|---|---|
color | java.awt.Color | System.Drawing.Color value. |
Returns: Color - Color object with each component value in [0..1] range.
fromArgb(int r, int g, int b)
public static Color fromArgb(int r, int g, int b)
Gets valid pdf Color object from RGB color components.
Parameters:
Parameter | Type | Description |
---|---|---|
r | int | The Red color component (value 0 - 255). |
g | int | The Green color component (value 0 - 255). |
b | int | The Blue color component (value 0 - 255). |
Returns: Color - Color object with each component value in [0..255] range.
fromArgb(int a, int r, int g, int b)
public static Color fromArgb(int a, int r, int g, int b)
Gets valid pdf Color object from RGB color components.
Parameters:
Parameter | Type | Description |
---|---|---|
a | int | The alpha component value (value 0 - 255). |
r | int | The Red color component (value 0 - 255). |
g | int | The Green color component (value 0 - 255). |
b | int | The Blue color component (value 0 - 255). |
Returns: Color - Color object with each component value in [0..255] range.
fromRgb(double r, double g, double b)
public static Color fromRgb(double r, double g, double b)
Gets valid pdf Color object from RGB color components.
Parameters:
Parameter | Type | Description |
---|---|---|
r | double | The Red color component (value 0 - 1). |
g | double | The Green color component (value 0 - 1). |
b | double | The Blue color component (value 0 - 1). |
Returns: Color - Color object with each component value in [0..1] range.
fromGray(double g)
public static Color fromGray(double g)
Gets valid pdf Color object from Gray color component.
Parameters:
Parameter | Type | Description |
---|---|---|
g | double | The Gray color component (value 0 - 1). |
Returns: Color - Color object with each component value in [0..1] range.
fromCmyk(double c, double m, double y, double k)
public static Color fromCmyk(double c, double m, double y, double k)
Gets valid pdf Color object from RGB color components.
Parameters:
Parameter | Type | Description |
---|---|---|
c | double | The Cyan color component (value 0 - 1). |
m | double | The Magenta color component (value 0 - 1). |
y | double | The Yellow color component (value 0 - 1). |
k | double | The Key color component (value 0 - 1). |
Returns: Color - Color object with each component value in [0..1] range.
hashCode()
public int hashCode()
Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.HashMap.
The general contract of hashCode is:
- Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
- If two objects are equal according to the equals(Object) method, then calling the hashCode method on each of the two objects must produce the same integer result.
- It is not required that if two objects are unequal according to the java.lang.Object#equals(java.lang.Object)#equals(java.lang.Object) method, then calling the hashCode method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.
As much as is reasonably practical, the hashCode method defined by class Object does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the JavaTMprogramming language.)
Returns: int - a hash code value for this object.
equals(Object obj)
public boolean equals(Object obj)
Returns true if two Colors are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
obj | java.lang.Object | Object to compare. |
Returns: boolean - True in case Color objects are equal.
op_Equality(Color x, Color y)
public static boolean op_Equality(Color x, Color y)
Returns true if two Colors are equal.
Parameters:
Parameter | Type | Description |
---|---|---|
x | Color | First Color object. |
y | Color | Second Color object. |
Returns: boolean - True in case Color objects are equal.
op_Inequality(Color x, Color y)
public static boolean op_Inequality(Color x, Color y)
Returns true if two Colors are not equal.
Parameters:
Parameter | Type | Description |
---|---|---|
x | Color | First Color object. |
y | Color | Second Color object. |
Returns: boolean - True in case Color objects are not equal.
getPatternColorSpace()
public PatternColorSpace getPatternColorSpace()
Gets a object that indicates the pattern colorspace.
Internal usage only
Returns: PatternColorSpace - PatternColorSpace object
setPatternColorSpace(PatternColorSpace value)
public void setPatternColorSpace(PatternColorSpace value)
Sets a object that indicates the pattern colorspace.
Internal usage only
Parameters:
Parameter | Type | Description |
---|---|---|
value | PatternColorSpace | PatternColorSpace object |
getTransparent()
public static Color getTransparent()
Gets a system-defined color.
Returns: Color - A representing a system-defined color.
getAliceBlue()
public static Color getAliceBlue()
Gets a system-defined color that has an ARGB value of #FFF0F8FF.
Returns: Color - A representing a system-defined color.
getAntiqueWhite()
public static Color getAntiqueWhite()
Gets a system-defined color that has an ARGB value of #FFFAEBD7.
Returns: Color - A representing a system-defined color.
getAqua()
public static Color getAqua()
Gets a system-defined color that has an ARGB value of #FF00FFFF.
Returns: Color - A representing a system-defined color.
getAquamarine()
public static Color getAquamarine()
Gets a system-defined color that has an ARGB value of #FF7FFFD4.
Returns: Color - A representing a system-defined color.
getAzure()
public static Color getAzure()
Gets a system-defined color that has an ARGB value of #FFF0FFFF.
Returns: Color - A representing a system-defined color.
getBeige()
public static Color getBeige()
Gets a system-defined color that has an ARGB value of #FFF5F5DC.
Returns: Color - A representing a system-defined color.
getBisque()
public static Color getBisque()
Gets a system-defined color that has an ARGB value of #FFFFE4C4.
Returns: Color - A representing a system-defined color.
getBlack()
public static Color getBlack()
Gets a system-defined color that has an ARGB value of #FF000000.
Returns: Color - A representing a system-defined color.
getBlanchedAlmond()
public static Color getBlanchedAlmond()
Gets a system-defined color that has an ARGB value of #FFFFEBCD.
Returns: Color - A representing a system-defined color.
getBlue()
public static Color getBlue()
Gets a system-defined color that has an ARGB value of #FF0000FF.
Returns: Color - A representing a system-defined color.
getBlueViolet()
public static Color getBlueViolet()
Gets a system-defined color that has an ARGB value of #FF8A2BE2.
Returns: Color - A representing a system-defined color.
getBrown()
public static Color getBrown()
Gets a system-defined color that has an ARGB value of #FFA52A2A.
Returns: Color - A representing a system-defined color.
getBurlyWood()
public static Color getBurlyWood()
Gets a system-defined color that has an ARGB value of #FFDEB887.
Returns: Color - A representing a system-defined color.
getCadetBlue()
public static Color getCadetBlue()
Gets a system-defined color that has an ARGB value of #FF5F9EA0.
Returns: Color - A representing a system-defined color.
getChartreuse()
public static Color getChartreuse()
Gets a system-defined color that has an ARGB value of #FF7FFF00.
Returns: Color - A representing a system-defined color.
getChocolate()
public static Color getChocolate()
Gets a system-defined color that has an ARGB value of #FFD2691E.
Returns: Color - A representing a system-defined color.
getCoral()
public static Color getCoral()
Gets a system-defined color that has an ARGB value of #FFFF7F50.
Returns: Color - A representing a system-defined color.
getCornflowerBlue()
public static Color getCornflowerBlue()
Gets a system-defined color that has an ARGB value of #FF6495ED.
Returns: Color - A representing a system-defined color.
getCornsilk()
public static Color getCornsilk()
Gets a system-defined color that has an ARGB value of #FFFFF8DC.
Returns: Color - A representing a system-defined color.
getCrimson()
public static Color getCrimson()
Gets a system-defined color that has an ARGB value of #FFDC143C.
Returns: Color - A representing a system-defined color.
getCyan()
public static Color getCyan()
Gets a system-defined color that has an ARGB value of #FF00FFFF.
Returns: Color - A representing a system-defined color.
getDarkBlue()
public static Color getDarkBlue()
Gets a system-defined color that has an ARGB value of #FF00008B.
Returns: Color - A representing a system-defined color.
getDarkCyan()
public static Color getDarkCyan()
Gets a system-defined color that has an ARGB value of #FF008B8B.
Returns: Color - A representing a system-defined color.
getDarkGoldenrod()
public static Color getDarkGoldenrod()
Gets a system-defined color that has an ARGB value of #FFB8860B.
Returns: Color - A representing a system-defined color.
getDarkGray()
public static Color getDarkGray()
Gets a system-defined color that has an ARGB value of #FFA9A9A9.
Returns: Color - A representing a system-defined color.
getDarkGreen()
public static Color getDarkGreen()
Gets a system-defined color that has an ARGB value of #FF006400.
Returns: Color - A representing a system-defined color.
getDarkKhaki()
public static Color getDarkKhaki()
Gets a system-defined color that has an ARGB value of #FFBDB76B.
Returns: Color - A representing a system-defined color.
getDarkMagenta()
public static Color getDarkMagenta()
Gets a system-defined color that has an ARGB value of #FF8B008B.
Returns: Color - A representing a system-defined color.
getDarkOliveGreen()
public static Color getDarkOliveGreen()
Gets a system-defined color that has an ARGB value of #FF556B2F.
Returns: Color - A representing a system-defined color.
getDarkOrange()
public static Color getDarkOrange()
Gets a system-defined color that has an ARGB value of #FFFF8C00.
Returns: Color - A representing a system-defined color.
getDarkOrchid()
public static Color getDarkOrchid()
Gets a system-defined color that has an ARGB value of #FF9932CC.
Returns: Color - A representing a system-defined color.
getDarkRed()
public static Color getDarkRed()
Gets a system-defined color that has an ARGB value of #FF8B0000.
Returns: Color - A representing a system-defined color.
getDarkSalmon()
public static Color getDarkSalmon()
Gets a system-defined color that has an ARGB value of #FFE9967A.
Returns: Color - A representing a system-defined color.
getDarkSeaGreen()
public static Color getDarkSeaGreen()
Gets a system-defined color that has an ARGB value of #FF8FBC8F.
Returns: Color - A representing a system-defined color.
getDarkSlateBlue()
public static Color getDarkSlateBlue()
Gets a system-defined color that has an ARGB value of #FF483D8B.
Returns: Color - A representing a system-defined color.
getDarkSlateGray()
public static Color getDarkSlateGray()
Gets a system-defined color that has an ARGB value of #FF2F4F4F.
Returns: Color - A representing a system-defined color.
getDarkTurquoise()
public static Color getDarkTurquoise()
Gets a system-defined color that has an ARGB value of #FF00CED1.
Returns: Color - A representing a system-defined color.
getDarkViolet()
public static Color getDarkViolet()
Gets a system-defined color that has an ARGB value of #FF9400D3.
Returns: Color - A representing a system-defined color.
getDeepPink()
public static Color getDeepPink()
Gets a system-defined color that has an ARGB value of #FFFF1493.
Returns: Color - A representing a system-defined color.
getDeepSkyBlue()
public static Color getDeepSkyBlue()
Gets a system-defined color that has an ARGB value of #FF00BFFF.
Returns: Color - A representing a system-defined color.
getDimGray()
public static Color getDimGray()
Gets a system-defined color that has an ARGB value of #FF696969.
Returns: Color - A representing a system-defined color.
getDodgerBlue()
public static Color getDodgerBlue()
Gets a system-defined color that has an ARGB value of #FF1E90FF.
Returns: Color - A representing a system-defined color.
getFirebrick()
public static Color getFirebrick()
Gets a system-defined color that has an ARGB value of #FFB22222.
Returns: Color - A representing a system-defined color.
getFloralWhite()
public static Color getFloralWhite()
Gets a system-defined color that has an ARGB value of #FFFFFAF0.
Returns: Color - A representing a system-defined color.
getForestGreen()
public static Color getForestGreen()
Gets a system-defined color that has an ARGB value of #FF228B22.
Returns: Color - A representing a system-defined color.
getFuchsia()
public static Color getFuchsia()
Gets a system-defined color that has an ARGB value of #FFFF00FF.
Returns: Color - A representing a system-defined color.
getGainsboro()
public static Color getGainsboro()
Gets a system-defined color that has an ARGB value of #FFDCDCDC.
Returns: Color - A representing a system-defined color.
getGhostWhite()
public static Color getGhostWhite()
Gets a system-defined color that has an ARGB value of #FFF8F8FF.
Returns: Color - A representing a system-defined color.
getGold()
public static Color getGold()
Gets a system-defined color that has an ARGB value of #FFFFD700.
Returns: Color - A representing a system-defined color.
getGoldenrod()
public static Color getGoldenrod()
Gets a system-defined color that has an ARGB value of #FFDAA520.
Returns: Color - A representing a system-defined color.
getGray()
public static Color getGray()
Gets a system-defined color that has an ARGB value of #FF808080.
Returns: Color - A strcture representing a system-defined color.
getGreen()
public static Color getGreen()
Gets a system-defined color that has an ARGB value of #FF008000.
Returns: Color - A representing a system-defined color.
getGreenYellow()
public static Color getGreenYellow()
Gets a system-defined color that has an ARGB value of #FFADFF2F.
Returns: Color - A representing a system-defined color.
getHoneydew()
public static Color getHoneydew()
Gets a system-defined color that has an ARGB value of #FFF0FFF0.
Returns: Color - A representing a system-defined color.
getHotPink()
public static Color getHotPink()
Gets a system-defined color that has an ARGB value of #FFFF69B4.
Returns: Color - A representing a system-defined color.
getIndianRed()
public static Color getIndianRed()
Gets a system-defined color that has an ARGB value of #FFCD5C5C.
Returns: Color - A representing a system-defined color.
getIndigo()
public static Color getIndigo()
Gets a system-defined color that has an ARGB value of #FF4B0082.
Returns: Color - A representing a system-defined color.
getIvory()
public static Color getIvory()
Gets a system-defined color that has an ARGB value of #FFFFFFF0.
Returns: Color - A representing a system-defined color.
getKhaki()
public static Color getKhaki()
Gets a system-defined color that has an ARGB value of #FFF0E68C.
Returns: Color - A representing a system-defined color.
getLavender()
public static Color getLavender()
Gets a system-defined color that has an ARGB value of #FFE6E6FA.
Returns: Color - A representing a system-defined color.
getLavenderBlush()
public static Color getLavenderBlush()
Gets a system-defined color that has an ARGB value of #FFFFF0F5.
Returns: Color - A representing a system-defined color.
getLawnGreen()
public static Color getLawnGreen()
Gets a system-defined color that has an ARGB value of #FF7CFC00.
Returns: Color - A representing a system-defined color.
getLemonChiffon()
public static Color getLemonChiffon()
Gets a system-defined color that has an ARGB value of #FFFFFACD.
Returns: Color - A representing a system-defined color.
getLightBlue()
public static Color getLightBlue()
Gets a system-defined color that has an ARGB value of #FFADD8E6.
Returns: Color - A representing a system-defined color.
getLightCoral()
public static Color getLightCoral()
Gets a system-defined color that has an ARGB value of #FFF08080.
Returns: Color - A representing a system-defined color.
getLightCyan()
public static Color getLightCyan()
Gets a system-defined color that has an ARGB value of #FFE0FFFF.
Returns: Color - A representing a system-defined color.
getLightGoldenrodYellow()
public static Color getLightGoldenrodYellow()
Gets a system-defined color that has an ARGB value of #FFFAFAD2.
Returns: Color - A representing a system-defined color.
getLightGreen()
public static Color getLightGreen()
Gets a system-defined color that has an ARGB value of #FF90EE90.
Returns: Color - A representing a system-defined color.
getLightGray()
public static Color getLightGray()
Gets a system-defined color that has an ARGB value of #FFD3D3D3.
Returns: Color - A representing a system-defined color.
getLightPink()
public static Color getLightPink()
Gets a system-defined color that has an ARGB value of #FFFFB6C1.
Returns: Color - A representing a system-defined color.
getLightSalmon()
public static Color getLightSalmon()
Gets a system-defined color that has an ARGB value of #FFFFA07A.
Returns: Color - A representing a system-defined color.
getLightSeaGreen()
public static Color getLightSeaGreen()
Gets a system-defined color that has an ARGB value of #FF20B2AA.
Returns: Color - A representing a system-defined color.
getLightSkyBlue()
public static Color getLightSkyBlue()
Gets a system-defined color that has an ARGB value of #FF87CEFA.
Returns: Color - A representing a system-defined color.
getLightSlateGray()
public static Color getLightSlateGray()
Gets a system-defined color that has an ARGB value of #FF778899.
Returns: Color - A representing a system-defined color.
getLightSteelBlue()
public static Color getLightSteelBlue()
Gets a system-defined color that has an ARGB value of #FFB0C4DE.
Returns: Color - A representing a system-defined color.
getLightYellow()
public static Color getLightYellow()
Gets a system-defined color that has an ARGB value of #FFFFFFE0.
Returns: Color - A representing a system-defined color.
getLime()
public static Color getLime()
Gets a system-defined color that has an ARGB value of #FF00FF00.
Returns: Color - A representing a system-defined color.
getLimeGreen()
public static Color getLimeGreen()
Gets a system-defined color that has an ARGB value of #FF32CD32.
Returns: Color - A representing a system-defined color.
getLinen()
public static Color getLinen()
Gets a system-defined color that has an ARGB value of #FFFAF0E6.
Returns: Color - A representing a system-defined color.
getMagenta()
public static Color getMagenta()
Gets a system-defined color that has an ARGB value of #FFFF00FF.
Returns: Color - A representing a system-defined color.
getMaroon()
public static Color getMaroon()
Gets a system-defined color that has an ARGB value of #FF800000.
Returns: Color - A representing a system-defined color.
getMediumAquamarine()
public static Color getMediumAquamarine()
Gets a system-defined color that has an ARGB value of #FF66CDAA.
Returns: Color - A representing a system-defined color.
getMediumBlue()
public static Color getMediumBlue()
Gets a system-defined color that has an ARGB value of #FF0000CD.
Returns: Color - A representing a system-defined color.
getMediumOrchid()
public static Color getMediumOrchid()
Gets a system-defined color that has an ARGB value of #FFBA55D3.
Returns: Color - A representing a system-defined color.
getMediumPurple()
public static Color getMediumPurple()
Gets a system-defined color that has an ARGB value of #FF9370DB.
Returns: Color - A representing a system-defined color.
getMediumSeaGreen()
public static Color getMediumSeaGreen()
Gets a system-defined color that has an ARGB value of #FF3CB371.
Returns: Color - A representing a system-defined color.
getMediumSlateBlue()
public static Color getMediumSlateBlue()
Gets a system-defined color that has an ARGB value of #FF7B68EE.
Returns: Color - A representing a system-defined color.
getMediumSpringGreen()
public static Color getMediumSpringGreen()
Gets a system-defined color that has an ARGB value of #FF00FA9A.
Returns: Color - A representing a system-defined color.
getMediumTurquoise()
public static Color getMediumTurquoise()
Gets a system-defined color that has an ARGB value of #FF48D1CC.
Returns: Color - A representing a system-defined color.
getMediumVioletRed()
public static Color getMediumVioletRed()
Gets a system-defined color that has an ARGB value of #FFC71585.
Returns: Color - A representing a system-defined color.
getMidnightBlue()
public static Color getMidnightBlue()
Gets a system-defined color that has an ARGB value of #FF191970.
Returns: Color - A representing a system-defined color.
getMintCream()
public static Color getMintCream()
Gets a system-defined color that has an ARGB value of #FFF5FFFA.
Returns: Color - A representing a system-defined color.
getMistyRose()
public static Color getMistyRose()
Gets a system-defined color that has an ARGB value of #FFFFE4E1.
Returns: Color - A representing a system-defined color.
getMoccasin()
public static Color getMoccasin()
Gets a system-defined color that has an ARGB value of #FFFFE4B5.
Returns: Color - A representing a system-defined color.
getNavajoWhite()
public static Color getNavajoWhite()
Gets a system-defined color that has an ARGB value of #FFFFDEAD.
Returns: Color - A representing a system-defined color.
getNavy()
public static Color getNavy()
Gets a system-defined color that has an ARGB value of #FF000080.
Returns: Color - A representing a system-defined color.
getOldLace()
public static Color getOldLace()
Gets a system-defined color that has an ARGB value of #FFFDF5E6.
Returns: Color - A representing a system-defined color.
getOlive()
public static Color getOlive()
Gets a system-defined color that has an ARGB value of #FF808000.
Returns: Color - A representing a system-defined color.
getOliveDrab()
public static Color getOliveDrab()
Gets a system-defined color that has an ARGB value of #FF6B8E23.
Returns: Color - A representing a system-defined color.
getOrange()
public static Color getOrange()
Gets a system-defined color that has an ARGB value of #FFFFA500.
Returns: Color - A representing a system-defined color.
getOrangeRed()
public static Color getOrangeRed()
Gets a system-defined color that has an ARGB value of #FFFF4500.
Returns: Color - A representing a system-defined color.
getOrchid()
public static Color getOrchid()
Gets a system-defined color that has an ARGB value of #FFDA70D6.
Returns: Color - A representing a system-defined color.
getPaleGoldenrod()
public static Color getPaleGoldenrod()
Gets a system-defined color that has an ARGB value of #FFEEE8AA.
Returns: Color - A representing a system-defined color.
getPaleGreen()
public static Color getPaleGreen()
Gets a system-defined color that has an ARGB value of #FF98FB98.
Returns: Color - A representing a system-defined color.
getPaleTurquoise()
public static Color getPaleTurquoise()
Gets a system-defined color that has an ARGB value of #FFAFEEEE.
Returns: Color - A representing a system-defined color.
getPaleVioletRed()
public static Color getPaleVioletRed()
Gets a system-defined color that has an ARGB value of #FFDB7093.
Returns: Color - A representing a system-defined color.
getPapayaWhip()
public static Color getPapayaWhip()
Gets a system-defined color that has an ARGB value of #FFFFEFD5.
Returns: Color - A representing a system-defined color.
getPeachPuff()
public static Color getPeachPuff()
Gets a system-defined color that has an ARGB value of #FFFFDAB9.
Returns: Color - A representing a system-defined color.
getPeru()
public static Color getPeru()
Gets a system-defined color that has an ARGB value of #FFCD853F.
Returns: Color - A representing a system-defined color.
getPink()
public static Color getPink()
Gets a system-defined color that has an ARGB value of #FFFFC0CB.
Returns: Color - A representing a system-defined color.
getPlum()
public static Color getPlum()
Gets a system-defined color that has an ARGB value of #FFDDA0DD.
Returns: Color - A representing a system-defined color.
getPowderBlue()
public static Color getPowderBlue()
Gets a system-defined color that has an ARGB value of #FFB0E0E6.
Returns: Color - A representing a system-defined color.
getPurple()
public static Color getPurple()
Gets a system-defined color that has an ARGB value of #FF800080.
Returns: Color - A representing a system-defined color.
getRed()
public static Color getRed()
Gets a system-defined color that has an ARGB value of #FFFF0000.
Returns: Color - A representing a system-defined color.
getRosyBrown()
public static Color getRosyBrown()
Gets a system-defined color that has an ARGB value of #FFBC8F8F.
Returns: Color - A representing a system-defined color.
getRoyalBlue()
public static Color getRoyalBlue()
Gets a system-defined color that has an ARGB value of #FF4169E1.
Returns: Color - A representing a system-defined color.
getSaddleBrown()
public static Color getSaddleBrown()
Gets a system-defined color that has an ARGB value of #FF8B4513.
Returns: Color - A representing a system-defined color.
getSalmon()
public static Color getSalmon()
Gets a system-defined color that has an ARGB value of #FFFA8072.
Returns: Color - A representing a system-defined color.
getSandyBrown()
public static Color getSandyBrown()
Gets a system-defined color that has an ARGB value of #FFF4A460.
Returns: Color - A representing a system-defined color.
getSeaGreen()
public static Color getSeaGreen()
Gets a system-defined color that has an ARGB value of #FF2E8B57.
Returns: Color - A representing a system-defined color.
getSeaShell()
public static Color getSeaShell()
Gets a system-defined color that has an ARGB value of #FFFFF5EE.
Returns: Color - A representing a system-defined color.
getSienna()
public static Color getSienna()
Gets a system-defined color that has an ARGB value of #FFA0522D.
Returns: Color - A representing a system-defined color.
getSilver()
public static Color getSilver()
Gets a system-defined color that has an ARGB value of #FFC0C0C0.
Returns: Color - A representing a system-defined color.
getSkyBlue()
public static Color getSkyBlue()
Gets a system-defined color that has an ARGB value of #FF87CEEB.
Returns: Color - A representing a system-defined color.
getSlateBlue()
public static Color getSlateBlue()
Gets a system-defined color that has an ARGB value of #FF6A5ACD.
Returns: Color - A representing a system-defined color.
getSlateGray()
public static Color getSlateGray()
Gets a system-defined color that has an ARGB value of #FF708090.
Returns: Color - A representing a system-defined color.
getSnow()
public static Color getSnow()
Gets a system-defined color that has an ARGB value of #FFFFFAFA.
Returns: Color - A representing a system-defined color.
getSpringGreen()
public static Color getSpringGreen()
Gets a system-defined color that has an ARGB value of #FF00FF7F.
Returns: Color - A representing a system-defined color.
getSteelBlue()
public static Color getSteelBlue()
Gets a system-defined color that has an ARGB value of #FF4682B4.
Returns: Color - A representing a system-defined color.
getTan()
public static Color getTan()
Gets a system-defined color that has an ARGB value of #FFD2B48C.
Returns: Color - A representing a system-defined color.
getTeal()
public static Color getTeal()
Gets a system-defined color that has an ARGB value of #FF008080.
Returns: Color - A representing a system-defined color.
getThistle()
public static Color getThistle()
Gets a system-defined color that has an ARGB value of #FFD8BFD8.
Returns: Color - A representing a system-defined color.
getTomato()
public static Color getTomato()
Gets a system-defined color that has an ARGB value of #FFFF6347.
Returns: Color - A representing a system-defined color.
getTurquoise()
public static Color getTurquoise()
Gets a system-defined color that has an ARGB value of #FF40E0D0.
Returns: Color - A representing a system-defined color.
getViolet()
public static Color getViolet()
Gets a system-defined color that has an ARGB value of #FFEE82EE.
Returns: Color - A representing a system-defined color.
getWheat()
public static Color getWheat()
Gets a system-defined color that has an ARGB value of #FFF5DEB3.
Returns: Color - A representing a system-defined color.
getWhite()
public static Color getWhite()
Gets a system-defined color that has an ARGB value of #FFFFFFFF.
Returns: Color - A representing a system-defined color.
getWhiteSmoke()
public static Color getWhiteSmoke()
Gets a system-defined color that has an ARGB value of #FFF5F5F5.
Returns: Color - A representing a system-defined color.
getYellow()
public static Color getYellow()
Gets a system-defined color that has an ARGB value of #FFFFFF00.
Returns: Color - A representing a system-defined color.
getYellowGreen()
public static Color getYellowGreen()
Gets a system-defined color that has an ARGB value of #FF9ACD32.
Returns: Color - A representing a system-defined color.