public static final class FillStyle.Builder extends Object implements AutoCloseable
Constructor and Description |
---|
Builder(FillStyle.Builder other) |
Modifier and Type | Method and Description |
---|---|
FillStyle |
build()
Returns a newly created fill style, based on the properties set on this builder.
|
void |
close() |
FillStyle.Builder |
color(android.graphics.Color color)
Sets the fill color.
|
protected void |
finalize() |
FillStyle.Builder |
icon(IIcon icon)
Sets the icon to use as fill.
|
FillStyle.Builder |
image(Image image)
Sets the image to use as fill.
|
public Builder(@NotNull FillStyle.Builder other)
public void close()
close
in interface AutoCloseable
@NotNull public FillStyle build()
@NotNull public FillStyle.Builder color(@NotNull android.graphics.Color color)
By default, the color is transparent yellow.
color
- the fill color@NotNull public FillStyle.Builder image(@NotNull Image image) throws NullPointerException
By default, no image is used.
For the best performance, reuse the same Image
instance when calling this function multiple times for different features.
image
- the image to use as fill styleNullPointerException
- when the image is null
.@NotNull public FillStyle.Builder icon(@NotNull IIcon icon) throws NullPointerException
By default, no icon is used.
icon
- the icon to use as fill styleNullPointerException
- when the icon is null
.