Enum Class TileShape

java.lang.Object
java.lang.Enum<TileShape>
io.jenkins.plugins.livewall.TileShape
All Implemented Interfaces:
WallOption, Serializable, Comparable<TileShape>, Constable

public enum TileShape extends Enum<TileShape> implements WallOption
The silhouette of a tile.

Shapes are cut with CSS clip-path in live-wall.css; this enum only carries the id that selects them. Shapes that eat into the middle of the tile (cross, diamond) leave less room for the label, which the layout code compensates for with a per-shape text inset.

  • Enum Constant Details

    • RECTANGLE

      public static final TileShape RECTANGLE
    • ROUNDED

      public static final TileShape ROUNDED
    • SQUARE

      public static final TileShape SQUARE
    • CIRCLE

      public static final TileShape CIRCLE
    • OCTAGON

      public static final TileShape OCTAGON
    • HEXAGON

      public static final TileShape HEXAGON
    • DIAMOND

      public static final TileShape DIAMOND
    • PARALLELOGRAM

      public static final TileShape PARALLELOGRAM
    • CHEVRON

      public static final TileShape CHEVRON
    • CROSS

      public static final TileShape CROSS
  • Method Details

    • values

      public static TileShape[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TileShape valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getId

      @NonNull public String getId()
      Description copied from interface: WallOption
      Stable, lowercase, kebab-case id. Persisted in config.xml and emitted into the markup.
      Specified by:
      getId in interface WallOption
    • getDisplayName

      @NonNull public String getDisplayName()
      Description copied from interface: WallOption
      Label shown in the view configuration form, where there is room to explain the choice.
      Specified by:
      getDisplayName in interface WallOption