枚举 MaterialPreset

java.lang.Object
java.lang.Enum<MaterialPreset>
polaris.sdk.ui.MaterialPreset
所有已实现的接口:
Serializable, Comparable<MaterialPreset>

public enum MaterialPreset extends Enum<MaterialPreset>
Named material-only presets used by the demo settings panel. The label "Morden" intentionally preserves the requested spelling. Applying a preset changes exactly the eight material values; it does not replace the Theme, palette, type settings, geometry, motion, or background.
  • 枚举常量详细资料

    • MORDEN

      public static final MaterialPreset MORDEN
      Sigma 15, refraction 15, dispersion 1, opacity 1, shine 1.5, blur 1, tint .5, selected tint .5.
    • LIQUID_GLASS

      public static final MaterialPreset LIQUID_GLASS
      Sigma 1.5, refraction 30, dispersion 2, opacity 1, shine 1.5, blur 1, tint .5, selected tint .5.
    • NORMAL

      public static final MaterialPreset NORMAL
      Sigma/refraction/dispersion/blur 0, opacity/tint/selected tint 1, shine 1.5.
  • 方法详细资料

    • values

      public static MaterialPreset[] values()
      返回包含该枚举类型的常量的数组, 顺序与声明这些常量的顺序相同
      返回:
      包含该枚举类型的常量的数组,顺序与声明这些常量的顺序相同
    • valueOf

      public static MaterialPreset valueOf(String name)
      返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量
      NullPointerException - 如果参数为空值
    • displayName

      public String displayName()
      Exact label displayed by the settings panel.
    • applyTo

      public Theme applyTo(Theme theme)
      Apply the eight stored values to an existing theme, on its UI thread. No values are inherited from the previously selected preset.
      参数:
      theme - the current mutable theme; must not be null
      返回:
      the same theme instance, for chaining