BrightSide Workbench Full Report + Source Code
org.turro.marker.construct.Cards Class Reference

Public Member Functions

Cards start ()
 
Cards end ()
 
Cards columns (int columns)
 
Cards decideColumns (int... choice)
 

Static Public Member Functions

static Cards getFor (IConstructor constructor, int count)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 28 of file Cards.java.

Member Function Documentation

◆ columns()

Cards org.turro.marker.construct.Cards.columns ( int  columns)

Definition at line 47 of file Cards.java.

47  {
48  this.columns = columns;
49  return this;
50  }

◆ decideColumns()

Cards org.turro.marker.construct.Cards.decideColumns ( int...  choice)

Definition at line 52 of file Cards.java.

52  {
53  int maxDiff = 0;
54  for(int chosen : choice) {
55  int max = chosen % count;
56  if(max > maxDiff) {
57  maxDiff = max;
58  columns = chosen;
59  }
60  }
61  return this;
62  }

◆ end()

Cards org.turro.marker.construct.Cards.end ( )

Definition at line 38 of file Cards.java.

38  {
39  if(isRowEnd()) {
40  Markers.cards().end().render(constructor);
41  }
42  return this;
43  }
Here is the call graph for this function:

◆ getFor()

static Cards org.turro.marker.construct.Cards.getFor ( IConstructor  constructor,
int  count 
)
static

Definition at line 80 of file Cards.java.

80  {
81  return new Cards(constructor, count);
82  }

◆ start()

Cards org.turro.marker.construct.Cards.start ( )

Definition at line 30 of file Cards.java.

30  {
31  current++;
32  if(isNewRow()) {
33  Markers.cards().cssClass(rowColumns()).start().render(constructor);
34  }
35  return this;
36  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: