Interface Icon.Builder

Enclosing interface:
Icon

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

    • setMimeType

      Icon.Builder setMimeType(String mimeType)
      Sets the MIME type of the icon
      Parameters:
      mimeType - the MIME type
      Returns:
      this builder
    • addSize

      Icon.Builder addSize(int width, int height)
      Adds a size that this icon can be displayed at.

      May not be used with setAnySize().

      Parameters:
      width - the width
      height - the height
      Returns:
      this builder
    • setAnySize

      Icon.Builder setAnySize()
      Sets that the icon may be used at any size. Usually for scalable icons.

      May not be used with addSize(int, int).

      Returns:
      this builder
    • setTheme

      Icon.Builder setTheme(Icon.Theme theme)
      Sets the theme that this icon is designed for.
      Parameters:
      theme - the theme
      Returns:
      this builder
    • build

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