Class FreezePositionStrategy
java.lang.Object
org.eclipse.nebula.widgets.nattable.freeze.command.FreezePositionStrategy
- All Implemented Interfaces:
IFreezeCoordinatesProvider
-
Constructor Summary
ConstructorsConstructorDescriptionFreezePositionStrategy(FreezeLayer freezeLayer, int columnPosition, int rowPosition) FreezePositionStrategy(FreezeLayer freezeLayer, ViewportLayer viewportLayer, int columnPosition, int rowPosition) FreezePositionStrategy(FreezeLayer freezeLayer, ViewportLayer viewportLayer, int columnPosition, int rowPosition, boolean include) -
Method Summary
Modifier and TypeMethodDescription
-
Constructor Details
-
FreezePositionStrategy
-
FreezePositionStrategy
public FreezePositionStrategy(FreezeLayer freezeLayer, ViewportLayer viewportLayer, int columnPosition, int rowPosition) - Parameters:
freezeLayer- TheFreezeLayerfor thePositionCoordinate.viewportLayer- TheViewportLayerneeded to calculate the viewport relative position.columnPosition- The column position based on the CompositeFreezeLayer.rowPosition- The row position based on the CompositeFreezeLayer.- Since:
- 1.5
-
FreezePositionStrategy
public FreezePositionStrategy(FreezeLayer freezeLayer, ViewportLayer viewportLayer, int columnPosition, int rowPosition, boolean include) - Parameters:
freezeLayer- TheFreezeLayerfor thePositionCoordinate.viewportLayer- TheViewportLayerneeded to calculate the viewport relative position.columnPosition- The column position based on the CompositeFreezeLayer.rowPosition- The row position based on the CompositeFreezeLayer.include- Whether the last selected cell should be included in the freeze region or not. Include means the freeze borders will be to the right and bottom, while exclude means the freeze borders are to the left and top. Default isfalse.- Since:
- 1.6
-
-
Method Details
-
getTopLeftPosition
- Specified by:
getTopLeftPositionin interfaceIFreezeCoordinatesProvider
-
getBottomRightPosition
- Specified by:
getBottomRightPositionin interfaceIFreezeCoordinatesProvider
-