Package com.luciad.maps.effects
Class BloomModel.Builder
java.lang.Object
com.luciad.maps.effects.BloomModel.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
BloomModel
A builder class for creating bloom models.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Builder
Copy constructor.- Parameters:
other- the builder to copy.
-
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
build
Returns a newly created bloom model, based on the properties set on this builder.- Returns:
- a newly created bloom model.
-
strength
Sets the bloom strength.The strength is a non-negative number to make the bloom effect more or less pronounced.
This method is optional. By default, it is 1.
- Parameters:
strength- the bloom strength.- Returns:
- this builder.
- Throws:
IllegalArgumentException- if the strength is negative.
-
softness
Sets the bloom softness.The softness is a value in the [0, 1] range that determines how focused or spread out the bloom effect should be. Lower values produce a more concentrated bloom. Higher values produce a more diffuse bloom.
This method is optional. By default, it is 0.5.
- Parameters:
softness- the bloom softness.- Throws:
IllegalArgumentException- if the softness is not in [0, 1].
-