Package io.jenkins.plugins.livewall
Enum Class TileShape
- All Implemented Interfaces:
WallOption,Serializable,Comparable<TileShape>,Constable
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionLabel shown in the view configuration form, where there is room to explain the choice.getId()Stable, lowercase, kebab-case id.static TileShapeReturns the enum constant of this class with the specified name.static TileShape[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface io.jenkins.plugins.livewall.WallOption
getShortName
-
Enum Constant Details
-
RECTANGLE
-
ROUNDED
-
SQUARE
-
CIRCLE
-
OCTAGON
-
HEXAGON
-
DIAMOND
-
PARALLELOGRAM
-
CHEVRON
-
CROSS
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getId
Description copied from interface:WallOptionStable, lowercase, kebab-case id. Persisted in config.xml and emitted into the markup.- Specified by:
getIdin interfaceWallOption
-
getDisplayName
Description copied from interface:WallOptionLabel shown in the view configuration form, where there is room to explain the choice.- Specified by:
getDisplayNamein interfaceWallOption
-