Class FillStyle.Builder

java.lang.Object
com.luciad.layers.styles.FillStyle.Builder
All Implemented Interfaces:
AutoCloseable
Enclosing class:
FillStyle

public static final class FillStyle.Builder extends Object implements AutoCloseable
A builder class for creating fill styles.
  • Constructor Details Link icon

  • Method Details Link icon

    • finalize Link icon

      protected void finalize()
      Overrides:
      finalize in class Object
    • close Link icon

      public void close()
      Specified by:
      close in interface AutoCloseable
    • build Link icon

      @NotNull public FillStyle build()
      Returns a newly created fill style, based on the properties set on this builder.
      Returns:
      a newly created fill style.
    • color Link icon

      @NotNull public FillStyle.Builder color(@NotNull android.graphics.Color color)
      Sets the fill color.

      By default, the color is transparent yellow.

      Parameters:
      color - the fill color
      Returns:
      this builder.
    • image Link icon

      @NotNull public FillStyle.Builder image(@NotNull Image image) throws NullPointerException
      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 is null.
    • icon Link icon

      @NotNull public FillStyle.Builder icon(@NotNull IIcon icon) throws NullPointerException
      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 is null.