org.eclipse.nebula.widgets.nattable.resize
Class MaxCellBoundsHelper
java.lang.Object
org.eclipse.nebula.widgets.nattable.resize.MaxCellBoundsHelper
public class MaxCellBoundsHelper
- extends Object
Does the calculations needed for auto resizing feature Helper class for
AutoResizeColumnCommandHandler and
AutoResizeRowCommandHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxCellBoundsHelper
public MaxCellBoundsHelper()
getPreferredColumnWidths
public static int[] getPreferredColumnWidths(IConfigRegistry configRegistry,
GCFactory gcFactory,
ILayer layer,
int[] columnPositions)
- Returns:
- Preferred widths for columns. Preferred width is the minimum
width required to horizontally fit all the contents of the column
(including header)
getPreferredRowHeights
public static int[] getPreferredRowHeights(IConfigRegistry configRegistry,
GCFactory gcFactory,
ILayer layer,
int[] rows)
greater
public static int[] greater(int[] array1,
int[] array2)
- Traverse the two arrays and return the greater element in each index
position.
Copyright © 2015. All rights reserved.