Enum Class Packing

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

public enum Packing extends Enum<Packing> implements WallOption
How tiles are fitted together.

A plain grid gives every tile its own rectangular cell, which is right for rectangles and squares and wrong for everything else: a wall of hexagons laid out on a grid is a scattering of hexagons, not a honeycomb. Interlocking offsets alternate columns or rows and lets each shape overhang its cell by exactly the amount its geometry needs, so the shapes tessellate into one continuous surface.

Shapes that already tile edge to edge at zero gap — rectangles, squares, octagons, crosses — are unaffected either way. Circles cannot tile at all, and are left alone.

  • Enum Constant Details

    • INTERLOCK

      public static final Packing INTERLOCK
      Offset and overlap shapes so they tessellate. Hexagons become a honeycomb.
    • GRID

      public static final Packing GRID
      One tile per cell, no offsets.
  • Method Details

    • values

      public static Packing[] 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 Packing 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