public class FreezeSelectionStrategy extends Object implements IFreezeCoordinatesProvider
| Constructor and Description |
|---|
FreezeSelectionStrategy(FreezeLayer freezeLayer,
ViewportLayer viewportLayer,
SelectionLayer selectionLayer) |
FreezeSelectionStrategy(FreezeLayer freezeLayer,
ViewportLayer viewportLayer,
SelectionLayer selectionLayer,
boolean include) |
| Modifier and Type | Method and Description |
|---|---|
PositionCoordinate |
getBottomRightPosition() |
PositionCoordinate |
getTopLeftPosition() |
protected int |
getUnderlyingColumnPosition(int columnPosition)
Returns the column position to be used for the FreezeLayer position.
|
protected int |
getUnderlyingRowPosition(int rowPosition)
Returns the row position to be used for the FreezeLayer position.
|
public FreezeSelectionStrategy(FreezeLayer freezeLayer, ViewportLayer viewportLayer, SelectionLayer selectionLayer)
public FreezeSelectionStrategy(FreezeLayer freezeLayer, ViewportLayer viewportLayer, SelectionLayer selectionLayer, boolean include)
freezeLayer - The FreezeLayer on which the freeze state should be
applied. Needed for coordinate definition.viewportLayer - The ViewportLayer needed to handle the scrolled state.selectionLayer - The SelectionLayer to identify the last selected cell
position.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 is
false.public PositionCoordinate getTopLeftPosition()
getTopLeftPosition in interface IFreezeCoordinatesProviderpublic PositionCoordinate getBottomRightPosition()
getBottomRightPosition in interface IFreezeCoordinatesProviderprotected int getUnderlyingColumnPosition(int columnPosition)
columnPosition - The SelectionLayer based column position.protected int getUnderlyingRowPosition(int rowPosition)
rowPosition - The SelectionLayer based row position.Copyright © 2019. All rights reserved.