Since 3.6.0
| Modifier and Type | Field and Description |
|---|---|
| private double | alpha
The alpha component of this color in the range [0-1]. |
| private double | blue
The blue component of this color in the range [0-1]. |
| private double | green
The green component of this color in the range [0-1]. |
| private double | red
The red component of this color in the range [0-1]. |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(final Object obj)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public double | |
| public double | |
| public double | |
| public double | |
| public int | |
| public void | |
| public void | |
| public void | |
| public void | |
| public String |
| alpha | back to summary |
|---|---|
| private double alpha The alpha component of this color in the range [0-1]. | |
| blue | back to summary |
|---|---|
| private double blue The blue component of this color in the range [0-1]. | |
| green | back to summary |
|---|---|
| private double green The green component of this color in the range [0-1]. | |
| red | back to summary |
|---|---|
| private double red The red component of this color in the range [0-1]. | |
| Color | back to summary |
|---|---|
| public Color() | |
| Color | back to summary |
|---|---|
| public Color(final double red, final double green, final double blue, final double alpha) | |
| equals | back to summary |
|---|---|
| public boolean equals(final Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getAlpha | back to summary |
|---|---|
| public double getAlpha() The alpha component of this color in the range [0-1]. | |
| getBlue | back to summary |
|---|---|
| public double getBlue() The blue component of this color in the range [0-1]. | |
| getGreen | back to summary |
|---|---|
| public double getGreen() The green component of this color in the range [0-1]. | |
| getRed | back to summary |
|---|---|
| public double getRed() The red component of this color in the range [0-1]. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| setAlpha | back to summary |
|---|---|
| public void setAlpha(final double alpha) The alpha component of this color in the range [0-1]. | |
| setBlue | back to summary |
|---|---|
| public void setBlue(final double blue) The blue component of this color in the range [0-1]. | |
| setGreen | back to summary |
|---|---|
| public void setGreen(final double green) The green component of this color in the range [0-1]. | |
| setRed | back to summary |
|---|---|
| public void setRed(final double red) The red component of this color in the range [0-1]. | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |