Modifier and Type | Field and Description |
---|---|
protected String |
color |
static Color |
NONE
Represents no color value;
|
Constructor and Description |
---|
Color()
Constructs an empty color object.
|
Color(String color)
Constructs a color using the given literal string.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getColor()
Returns the literal string of the color.
|
void |
setColor(String color)
Manually sets the color string of the color object.
|
String |
toString()
Return the color in String format.
|
protected String color
public static final Color NONE
public Color()
public Color(String color)
color
- the color stringpublic String getColor()
public void setColor(String color)
color
- the new literal color string to setCopyright © 2018. All rights reserved.