org.eclipse.nebula.widgets.nattable.layer
Class LayerUtil

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.layer.LayerUtil

public class LayerUtil
extends Object


Constructor Summary
LayerUtil()
           
 
Method Summary
static int convertColumnPosition(ILayer sourceLayer, int sourceColumnPosition, IUniqueIndexLayer targetLayer)
          Convert column position from the source layer to the target layer
static int convertRowPosition(ILayer sourceLayer, int sourceRowPosition, IUniqueIndexLayer targetLayer)
          Convert row position from the source layer to the target layer
protected static int findColumnPosition(int xOffset, int columnOffset, ILayer layer, int x, int totalWidth, int columnCount)
           
protected static int findRowPosition(int yOffset, int rowOffset, ILayer layer, int y, int totalHeight, int rowCount)
           
static int getColumnPositionByX(ILayer layer, int x)
           
static int getRowPositionByY(ILayer layer, int y)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LayerUtil

public LayerUtil()
Method Detail

getColumnPositionByX

public static final int getColumnPositionByX(ILayer layer,
                                             int x)

findColumnPosition

protected static final int findColumnPosition(int xOffset,
                                              int columnOffset,
                                              ILayer layer,
                                              int x,
                                              int totalWidth,
                                              int columnCount)

getRowPositionByY

public static final int getRowPositionByY(ILayer layer,
                                          int y)

findRowPosition

protected static final int findRowPosition(int yOffset,
                                           int rowOffset,
                                           ILayer layer,
                                           int y,
                                           int totalHeight,
                                           int rowCount)

convertColumnPosition

public static final int convertColumnPosition(ILayer sourceLayer,
                                              int sourceColumnPosition,
                                              IUniqueIndexLayer targetLayer)
Convert column position from the source layer to the target layer

Parameters:
sourceLayer - source layer
sourceColumnPosition - column position in the source layer
targetLayer - layer to convert the from position to
Returns:
converted column position, or -1 if conversion not possible

convertRowPosition

public static final int convertRowPosition(ILayer sourceLayer,
                                           int sourceRowPosition,
                                           IUniqueIndexLayer targetLayer)
Convert row position from the source layer to the target layer

Parameters:
sourceLayer - source layer
sourceRowPosition - position in the source layer
targetLayer - layer to convert the from position to
Returns:
converted row position, or -1 if conversion not possible


Copyright © 2015. All rights reserved.