Package hudson.matrix

Class Layouter<T>

java.lang.Object
hudson.matrix.Layouter<T>

public abstract class Layouter<T> extends Object
Used to assist thegeneration of config table.

Axes are split into four groups. Ones that are displayed as columns, Ones that are displayed as rows, Ones that are listed as bullet items inside table cell, and those which only have one value, and therefore doesn't show up in the table.

Because of object reuse inside Layouter, this class is not thread-safe.

Author:
Kohsuke Kawaguchi
  • Field Details

  • Constructor Details

  • Method Details

    • width

      public int width(int n)
      Computes the width of n-th X-axis.
    • repeatX

      public int repeatX(int n)
      Computes the repeat count of n-th X-axis.
    • height

      public int height(int n)
      Computes the width of n-th Y-axis.
    • getRows

      public List<Layouter<T>.Row> getRows()
      Gets list of Layouter<T>.Rows to be displayed. The Layouter<T>.Row object is reused, so every value in collection returns the same object (but with different values.)
    • getT

      protected abstract T getT(Combination c)