Package com.luciad.layers.styles
Class FillStyle.Builder
java.lang.Object
com.luciad.layers.styles.FillStyle.Builder
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
FillStyle
A builder class for creating fill styles.
-
Constructor Details
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
build
Returns a newly created fill style, based on the properties set on this builder.- Returns:
- a newly created fill style.
-
color
Sets the fill color.By default, the color is transparent yellow.
- Parameters:
color
- the fill color- Returns:
- this builder.
-
image
Sets the image to use as fill.By default, no image is used.
For the best performance, reuse the same
Image
instance when calling this function multiple times for different features.- Parameters:
image
- the image to use as fill style- Returns:
- this builder.
- Throws:
NullPointerException
- when the image isnull
.
-
icon
Sets the icon to use as fill.By default, no icon is used.
- Parameters:
icon
- the icon to use as fill style- Returns:
- this builder.
- Throws:
NullPointerException
- when the icon isnull
.
-