The number of rows is thereby unlimited. The default setting is a maximum of 5 columns with an unlimited number of rows. Note setMaxRows and setMaxCols are mutually exclusive. The last one wins. Specify the maximum number of rows determine the layout policy.
Parameters int n max.
If a maximum number of rows is set, the legend items will be arranged in columns from the top to the bottom, starting at the first column, and beginning a new column when the actual number or rows has reached that maximum. The number of columns is thereby unlimited. The default setting is a maximum of 5 columns with an unlimited number of rows. Note setMaxRows and setMaxCols are mutually exclusive. The last one wins.