ColorBuilder Class

ColorBuilder class

A builder class for constructing color values in various formats. This class provides methods to set color values and build them into string representations that can be used in styling contexts, such as CSS or SVG attributes.

public class ColorBuilder

Constructors

NameDescription
ColorBuilder()The default constructor.

Methods

NameDescription
Build()Builds the current color value into a string representation.
Color(Color)Sets the color value based on a Color object.
Current()Sets the color value to ‘currentColor’, a CSS keyword that represents the current color context.

See Also