org.eclipse.nebula.widgets.nattable.resize
Class MaxCellBoundsHelper

java.lang.Object
  extended by 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


Constructor Summary
MaxCellBoundsHelper()
           
 
Method Summary
static int[] getPreferredColumnWidths(IConfigRegistry configRegistry, GCFactory gcFactory, ILayer layer, int[] columnPositions)
           
static int[] getPreferredRowHeights(IConfigRegistry configRegistry, GCFactory gcFactory, ILayer layer, int[] rows)
           
static int[] greater(int[] array1, int[] array2)
          Traverse the two arrays and return the greater element in each index position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MaxCellBoundsHelper

public MaxCellBoundsHelper()
Method Detail

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.