public class ColumnGroupUtils extends Object
Constructor and Description |
---|
ColumnGroupUtils() |
Modifier and Type | Method and Description |
---|---|
static SelectionLayer.MoveDirectionEnum |
getMoveDirection(int fromColumnPosition,
int toColumnPosition) |
static List<Integer> |
getVisibleIndexesToTheRight(int columnIndex,
ILayer layer,
IUniqueIndexLayer underlyingLayer,
ColumnGroupModel model)
Inclusive of the columnIndex passed as the parameter.
|
static boolean |
isBetweenTwoGroups(ILayer natLayer,
int startX,
int endX,
ColumnGroupModel model) |
static boolean |
isColumnIndexHiddenInUnderLyingLayer(int columnIndex,
ILayer layer,
IUniqueIndexLayer underlyingLayer) |
static boolean |
isColumnPositionHiddenInUnderLyingLayer(int columnPosition,
ILayer layer,
IUniqueIndexLayer underlyingLayer) |
static boolean |
isFirstVisibleColumnIndexInGroup(int columnIndex,
ILayer layer,
IUniqueIndexLayer underlyingLayer,
ColumnGroupModel model) |
static boolean |
isInTheSameGroup(int fromColumnIndex,
int toColumnIndex,
ColumnGroupModel model) |
static boolean |
isLastVisibleColumnIndexInGroup(int columnIndex,
ILayer layer,
IUniqueIndexLayer underlyingLayer,
ColumnGroupModel model) |
static boolean |
isLeftEdgeOfAColumnGroup(ILayer natLayer,
int columnPosition,
int columnIndex,
ColumnGroupModel model)
See ColumnGroupUtilsTest
|
static boolean |
isRightEdgeOfAColumnGroup(ILayer natLayer,
int columnPosition,
int columnIndex,
ColumnGroupModel model)
See ColumnGroupUtilsTest
|
static boolean |
isStaticOrFirstVisibleColumn(int columnIndex,
ILayer layer,
IUniqueIndexLayer underlyingLayer,
ColumnGroupModel model)
Checks whether
columnIndex is either a defined static column
or (if not) the first visible column in the group containing group. |
public static SelectionLayer.MoveDirectionEnum getMoveDirection(int fromColumnPosition, int toColumnPosition)
public static boolean isInTheSameGroup(int fromColumnIndex, int toColumnIndex, ColumnGroupModel model)
public static boolean isStaticOrFirstVisibleColumn(int columnIndex, ILayer layer, IUniqueIndexLayer underlyingLayer, ColumnGroupModel model)
columnIndex
is either a defined static column
or (if not) the first visible column in the group containing group. This
method provides downward compatibility for all group definitions without
static columns. When no static columns are defined the first visible
column will be used.columnIndex
- layer
- underlyingLayer
- model
- TRUE
if the given columnIndex
is either
a defined static column or (if not) the first visible column the it's
grouppublic static boolean isFirstVisibleColumnIndexInGroup(int columnIndex, ILayer layer, IUniqueIndexLayer underlyingLayer, ColumnGroupModel model)
public static boolean isLastVisibleColumnIndexInGroup(int columnIndex, ILayer layer, IUniqueIndexLayer underlyingLayer, ColumnGroupModel model)
public static List<Integer> getVisibleIndexesToTheRight(int columnIndex, ILayer layer, IUniqueIndexLayer underlyingLayer, ColumnGroupModel model)
public static boolean isColumnIndexHiddenInUnderLyingLayer(int columnIndex, ILayer layer, IUniqueIndexLayer underlyingLayer)
public static boolean isColumnPositionHiddenInUnderLyingLayer(int columnPosition, ILayer layer, IUniqueIndexLayer underlyingLayer)
public static boolean isRightEdgeOfAColumnGroup(ILayer natLayer, int columnPosition, int columnIndex, ColumnGroupModel model)
public static boolean isLeftEdgeOfAColumnGroup(ILayer natLayer, int columnPosition, int columnIndex, ColumnGroupModel model)
public static boolean isBetweenTwoGroups(ILayer natLayer, int startX, int endX, ColumnGroupModel model)
Copyright © 2013. All Rights Reserved.