public static final class Color.Builder
extends java.lang.Object
Color.
Builders are created by invoking Color.newBuilder(). Each of the setter methods modifies
the state of the builder and returns the same instance. Builders are not thread-safe and
should not be used concurrently from multiple threads without external synchronization.
| Modifier and Type | Method and Description |
|---|---|
Color.Builder |
alpha(float alpha)
Sets the alpha channel value in the
0..1 range |
Color.Builder |
blue(float blue)
Sets the blue channel value in the
0..1 range |
Color |
build()
Returns a new
com.teamdev.jxbrowser.ui.internal.rpc.Color instance built from the
current state of this builder. |
Color.Builder |
green(float green)
Sets the green channel value in the
0..1 range |
Color.Builder |
red(float red)
Sets the red channel value in the
0..1 range |
public Color.Builder red(float red)
0..1 rangered - the red channel valuejava.lang.IllegalArgumentException - when the red is out of the 0..1 rangepublic Color.Builder green(float green)
0..1 rangegreen - the green channel valuejava.lang.IllegalArgumentException - when the green is out of the 0..1 rangepublic Color.Builder blue(float blue)
0..1 rangeblue - the blue channel valuejava.lang.IllegalArgumentException - when the blue is out of the 0..1 rangepublic Color.Builder alpha(float alpha)
0..1 rangealpha - the alpha channel valuejava.lang.IllegalArgumentException - when the alpha is out of the 0..1 rangepublic Color build()
com.teamdev.jxbrowser.ui.internal.rpc.Color instance built from the
current state of this builder.Color instance