public static final class TLsp3DMeshStyle.Builder<B extends TLsp3DMeshStyle.Builder<B>> extends ALspStyle.Builder<B> implements ILspEffectsHintStyle.Builder
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
B |
all(ALspStyle aStyle)
Sets all builder parameters to the properties of the
provided style.
|
TLsp3DMeshStyle |
build()
Builds the resulting 3D mesh style.
|
B |
effectsHints(ILspEffectsHintStyle.EffectsHint... aEffectsHints)
Specifies the effects hints to be added to the style.
|
B |
modulationColor(Color aColor)
Sets the color that is modulated with the 3D mesh.
|
B |
opacity(float aOpacity)
Sets the opacity (alpha) value of the modulation color for the 3D mesh.
|
B |
transparent(boolean aTransparent)
Sets whether or not the mesh is transparent.
|
equals, hashCode
public B transparent(boolean aTransparent)
aTransparent
- whether or not the mesh is transparentthis
TLsp3DMeshStyle.isTransparent()
public B opacity(float aOpacity)
aOpacity
- the alpha value.
Must be contained in the [0,1] interval (0 is fully transparent, 1 is fully opaque).this
modulationColor(Color)
public B modulationColor(Color aColor)
Using a white color has no effect.
Note: If an opacity was set on this builder before it will be overwritten by the opacity of this color.aColor
- the modulation colorthis
opacity(float)
public B effectsHints(ILspEffectsHintStyle.EffectsHint... aEffectsHints)
ILspEffectsHintStyle.Builder
effectsHints
in interface ILspEffectsHintStyle.Builder
aEffectsHints
- the effects hints to be added to the stylethis
public B all(ALspStyle aStyle)
all
in class ALspStyle.Builder<B extends TLsp3DMeshStyle.Builder<B>>
aStyle
- the style to copythis
public TLsp3DMeshStyle build()
build
in class ALspStyle.Builder<B extends TLsp3DMeshStyle.Builder<B>>