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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Layouter.Column
class
Layouter.Row
Represents a row, which is a collection ofLayouter.Column
s.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<Layouter.Row>
getRows()
Gets list ofLayouter.Row
s to be displayed.protected abstract T
getT(Combination c)
int
height(int n)
Computes the width of n-th Y-axis.int
repeatX(int n)
Computes the repeat count of n-th X-axis.int
width(int n)
Computes the width of n-th X-axis.
-
-
-
Method Detail
-
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.Row> getRows()
Gets list ofLayouter.Row
s to be displayed. TheLayouter.Row
object is reused, so every value in collection returns the same object (but with different values.)
-
getT
protected abstract T getT(Combination c)
-
-