public class TLcd3DMeshStyleBuilder extends Object
ILcd3DMeshStyle
Constructor and Description |
---|
TLcd3DMeshStyleBuilder() |
Modifier and Type | Method and Description |
---|---|
TLcd3DMeshStyleBuilder |
ambient(Color aAmbientColor)
Sets the ambient color of the style to be built.
|
ILcd3DMeshStyle |
build()
Builds a 3D mesh style based on the current set of parameters.
|
TLcd3DMeshStyleBuilder |
diffuse(Color aDiffuseColor)
Sets the diffuse color of the style to be built.
|
TLcd3DMeshStyleBuilder |
doubleSided(boolean aDoubleSided)
Specifies whether or not the style is double sided.
|
TLcd3DMeshStyleBuilder |
emissive(Color aEmissiveColor)
Sets the emissive color of the style to be built.
|
TLcd3DMeshStyleBuilder |
shininess(double aShininess)
Sets the specular exponent of the style to be built.
|
TLcd3DMeshStyleBuilder |
specular(Color aSpecularColor)
Sets the specular color of the style to be built.
|
TLcd3DMeshStyleBuilder |
textureSource(String aTextureSourceName)
Sets the source name of the texture image to be used with the style.
|
TLcd3DMeshStyleBuilder |
transparent(boolean aTransparent)
Specifies whether or not the style requires transparency.
|
public ILcd3DMeshStyle build()
ambient(java.awt.Color)
,
diffuse(java.awt.Color)
,
emissive(java.awt.Color)
,
specular(java.awt.Color)
,
shininess(double)
,
textureSource(String)
,
transparent(boolean)
public TLcd3DMeshStyleBuilder ambient(Color aAmbientColor)
aAmbientColor
- a Colorpublic TLcd3DMeshStyleBuilder diffuse(Color aDiffuseColor)
aDiffuseColor
- a Colorpublic TLcd3DMeshStyleBuilder specular(Color aSpecularColor)
aSpecularColor
- a Colorpublic TLcd3DMeshStyleBuilder emissive(Color aEmissiveColor)
aEmissiveColor
- a Colorpublic TLcd3DMeshStyleBuilder shininess(double aShininess)
aShininess
- the specular exponentpublic TLcd3DMeshStyleBuilder transparent(boolean aTransparent)
aTransparent
- true if this style is transparentpublic TLcd3DMeshStyleBuilder textureSource(String aTextureSourceName)
aTextureSourceName
- the source name of a texture imagepublic TLcd3DMeshStyleBuilder doubleSided(boolean aDoubleSided)
ILcdStyled3DMesh
with the built style.aDoubleSided
- aDoubleSided true if the style is double sided.