public class SelectCellCommandHandler extends Object implements ILayerCommandHandler<SelectCellCommand>
Constructor and Description |
---|
SelectCellCommandHandler(SelectionLayer selectionLayer) |
Modifier and Type | Method and Description |
---|---|
boolean |
doCommand(ILayer targetLayer,
SelectCellCommand command) |
Class<SelectCellCommand> |
getCommandClass() |
void |
selectCell(int columnPosition,
int rowPosition,
boolean withShiftMask,
boolean withControlMask)
Selects a cell, optionally clearing current selection
|
protected void |
toggleCell(int columnPosition,
int rowPosition,
boolean withShiftMask,
boolean withControlMask,
boolean forcingEntireCellIntoViewport)
Toggles the selection state of the given row and column.
|
public SelectCellCommandHandler(SelectionLayer selectionLayer)
public boolean doCommand(ILayer targetLayer, SelectCellCommand command)
doCommand
in interface ILayerCommandHandler<SelectCellCommand>
targetLayer
- the target layercommand
- the commandprotected void toggleCell(int columnPosition, int rowPosition, boolean withShiftMask, boolean withControlMask, boolean forcingEntireCellIntoViewport)
public void selectCell(int columnPosition, int rowPosition, boolean withShiftMask, boolean withControlMask)
public Class<SelectCellCommand> getCommandClass()
getCommandClass
in interface ILayerCommandHandler<SelectCellCommand>
Copyright © 2013. All Rights Reserved.