public class FreezeHelper extends Object
This class is intended for internal use only. Consider using the appropriate commands instead of using this helper directly.
FreezeColumnCommand
,
FreezeRowCommand
,
FreezePositionCommand
,
FreezeSelectionCommand
,
UnFreezeGridCommand
Constructor and Description |
---|
FreezeHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
freeze(FreezeLayer freezeLayer,
ViewportLayer viewportLayer,
PositionCoordinate topLeftPosition,
PositionCoordinate bottomRightPosition)
Freezes the grid at the specified position.
|
static void |
resetViewport(FreezeLayer freezeLayer,
ViewportLayer viewportLayer)
Helper method to reset the origin coordinates of the viewport.
|
static void |
unfreeze(FreezeLayer freezeLayer,
ViewportLayer viewportLayer)
Unfreezes the grid at the specified position.
|
public static void freeze(FreezeLayer freezeLayer, ViewportLayer viewportLayer, PositionCoordinate topLeftPosition, PositionCoordinate bottomRightPosition)
freezeLayer
- The FreezeLayer of the grid to perform the freeze action.viewportLayer
- The ViewportLayer of the grid to perform the freeze action.topLeftPosition
- The top left position of the freeze areabottomRightPosition
- The bottom right position of the freeze areaFreezeColumnCommand
,
FreezeRowCommand
,
FreezePositionCommand
,
FreezeSelectionCommand
public static void unfreeze(FreezeLayer freezeLayer, ViewportLayer viewportLayer)
freezeLayer
- The FreezeLayer of the grid to perform the freeze action.viewportLayer
- The ViewportLayer of the grid to perform the freeze action.UnFreezeGridCommand
public static void resetViewport(FreezeLayer freezeLayer, ViewportLayer viewportLayer)
freezeLayer
- The FreezeLayer of the grid to perform the freeze action.viewportLayer
- The ViewportLayer of the grid to perform the freeze action.Copyright © 2013. All Rights Reserved.