public static class TLspVerticalLineStyle.Builder<B extends TLspVerticalLineStyle.Builder<B>> extends ALspStyle.Builder<B>
TLspLineStyle whiteOnePixel = TLspLineStyle.newBuilder().build();
TLspLineStyle redFourPixels = TLspLineStyle.newBuilder().color(Color.red).lineWidth(4f).build();
Modifier | Constructor and Description |
---|---|
protected |
Builder() |
Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aColorStyle)
Sets all parameters on the builder based on the given style.
|
TLspVerticalLineStyle |
build()
Builds the style with the set parameters.
|
B |
color(Color aColor)
Sets the color.
|
B |
opacity(float aOpacity)
Sets the opacity (alpha) value for the color.
|
String |
toString() |
B |
width(float aLineWidth)
Sets the line width (pixels).
|
equals, hashCode
public B color(Color aColor)
null
.aColor
- the colorthis
IllegalArgumentException
- if aColor==null
public B opacity(float aOpacity)
color(...)
method.
However, this method leaves the RGB values intact and only
modifies the alpha value. Note that, the other way around,
the color(...)
method does override the set alpha value.aOpacity
- the alpha value.
Must be contained in the [0,1] interval (0 is fully transparent, 1 is fully opaque).this
public B width(float aLineWidth)
aLineWidth
- the line widththis
public B all(ALspStyle aColorStyle)
ALspStyle.Builder
all
in class ALspStyle.Builder<B extends TLspVerticalLineStyle.Builder<B>>
aColorStyle
- the style to copythis
public TLspVerticalLineStyle build()
ALspStyle.Builder
build
in class ALspStyle.Builder<B extends TLspVerticalLineStyle.Builder<B>>