Interface Icon.Builder

Enclosing interface:
Icon

public static interface Icon.Builder
Builder for Icon.
  • Method Details

    • src

      Icon.Builder src(String src)
      Sets the image URL or data URI.
      Parameters:
      src - the icon source
      Returns:
      this builder
    • mimeType

      Icon.Builder mimeType(@Nullable String mimeType)
      Sets the MIME type of the icon image.
      Parameters:
      mimeType - the MIME type, or null
      Returns:
      this builder
    • sizes

      Icon.Builder sizes(@Nullable Iterable<String> elements)
      Sets the conventional size labels.
      Parameters:
      elements - size labels (e.g. "16x16"), or null
      Returns:
      this builder
    • sizes

      default Icon.Builder sizes(String... elements)
      Sets the conventional size labels.
      Parameters:
      elements - size labels (e.g. "16x16", "32x32")
      Returns:
      this builder
    • theme

      Icon.Builder theme(@Nullable String theme)
      Sets the theme variant.
      Parameters:
      theme - "light", "dark", or null for universal
      Returns:
      this builder
    • build

      Icon build()
      Builds the Icon.
      Returns:
      the new icon