Class BlendModule.BlendModuleBuilder
java.lang.Object
de.articdive.jnoise.modules.blend.BlendModule.BlendModuleBuilder
- All Implemented Interfaces:
NoiseSourceBuilder
- Enclosing class:
- BlendModule
@NullMarked
public static final class BlendModule.BlendModuleBuilder
extends Object
implements NoiseSourceBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the NoiseSource.setA
(NoiseSource noiseSource) Sets the first noise source for theBlendModule
.setA
(NoiseSourceBuilder noiseSourceBuilder) Sets the noise source for theBlendModule
.setB
(NoiseSource noiseSource) Sets the second noise source for theBlendModule
.setB
(NoiseSourceBuilder noiseSourceBuilder) Sets the second noise source for theBlendModule
.setControl
(NoiseSource noiseSource) Sets the control noise source for theBlendModule
.setControl
(NoiseSourceBuilder noiseSourceBuilder) Sets the control noise source for theBlendModule
.setInterpolation
(Interpolation interpolation) Sets the Interpolation for theBlendModule
.
-
Method Details
-
setA
Sets the first noise source for theBlendModule
.- Parameters:
noiseSource
- the new noise source for theBlendModule
.- Returns:
BlendModule.BlendModuleBuilder
this
-
setA
Sets the noise source for theBlendModule
.- Parameters:
noiseSourceBuilder
- the new noise source for theBlendModule
.- Returns:
BlendModule.BlendModuleBuilder
this
-
setB
Sets the second noise source for theBlendModule
.- Parameters:
noiseSource
- the new noise source for theBlendModule
.- Returns:
BlendModule.BlendModuleBuilder
this
-
setB
Sets the second noise source for theBlendModule
.- Parameters:
noiseSourceBuilder
- the new noise source for theBlendModule
.- Returns:
BlendModule.BlendModuleBuilder
this
-
setControl
Sets the control noise source for theBlendModule
.- Parameters:
noiseSource
- the new noise source for theBlendModule
.- Returns:
BlendModule.BlendModuleBuilder
this
-
setControl
Sets the control noise source for theBlendModule
.- Parameters:
noiseSourceBuilder
- the new noise source for theBlendModule
.- Returns:
BlendModule.BlendModuleBuilder
this
-
setInterpolation
Sets the Interpolation for theBlendModule
.- Parameters:
interpolation
- The newInterpolation
for theBlendModule
.- Returns:
BlendModule.BlendModuleBuilder
this
-
build
Description copied from interface:NoiseSourceBuilder
Builds the NoiseSource.- Specified by:
build
in interfaceNoiseSourceBuilder
- Returns:
NoiseSource
resulting from the parameters of theNoiseSourceBuilder
.
-