Package com.xebisco.yield
Class ImmutableColor
java.lang.Object
com.xebisco.yield.Color
com.xebisco.yield.ImmutableColor
- All Implemented Interfaces:
Cloneable
ImmutableColor class extends the Color class and provides an immutable version of it.
It does not allow any of its properties to be changed once they are set.-
Nested Class Summary
Nested classes/interfaces inherited from class com.xebisco.yield.Color
Color.Format -
Constructor Summary
ConstructorsConstructorDescriptionImmutableColor(double red, double green, double blue) ImmutableColor(double red, double green, double blue, double alpha) ImmutableColor(int rgb, double alpha) ImmutableColor(long rgba) ImmutableColor(Color toCopy) -
Method Summary
-
Constructor Details
-
ImmutableColor
public ImmutableColor(long rgba) -
ImmutableColor
-
ImmutableColor
public ImmutableColor(int rgb, double alpha) -
ImmutableColor
public ImmutableColor(double red, double green, double blue) -
ImmutableColor
public ImmutableColor(double red, double green, double blue, double alpha)
-
-
Method Details
-
setRed
Description copied from class:ColorSetter of the red value of this Color. -
setGreen
Description copied from class:ColorSetter of the green value of this Color. -
setBlue
Description copied from class:ColorSetter of the blue value of this Color. -
setAlpha
Description copied from class:ColorSetter of the alpha value of this Color.
-