T
- an instance of the MoveSelectionCommand
public abstract class MoveSelectionCommandHandler<T extends MoveSelectionCommand> extends Object implements ILayerCommandHandler<T>
MoveSelectionCommand
.Modifier and Type | Field and Description |
---|---|
protected SelectionLayer |
selectionLayer |
Constructor and Description |
---|
MoveSelectionCommandHandler(SelectionLayer selectionLayer) |
Modifier and Type | Method and Description |
---|---|
boolean |
doCommand(ILayer targetLayer,
T command) |
protected abstract void |
moveLastSelectedDown(int stepSize,
boolean withShiftMask,
boolean withControlMask) |
protected abstract void |
moveLastSelectedLeft(int stepSize,
boolean withShiftMask,
boolean withControlMask) |
protected abstract void |
moveLastSelectedRight(int stepSize,
boolean withShiftMask,
boolean withControlMask) |
protected abstract void |
moveLastSelectedUp(int stepSize,
boolean withShiftMask,
boolean withControlMask) |
protected void |
moveSelection(SelectionLayer.MoveDirectionEnum moveDirection,
int stepSize,
boolean withShiftMask,
boolean withControlMask) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommandClass
protected final SelectionLayer selectionLayer
public MoveSelectionCommandHandler(SelectionLayer selectionLayer)
public boolean doCommand(ILayer targetLayer, T command)
doCommand
in interface ILayerCommandHandler<T extends MoveSelectionCommand>
targetLayer
- the target layercommand
- the commandprotected void moveSelection(SelectionLayer.MoveDirectionEnum moveDirection, int stepSize, boolean withShiftMask, boolean withControlMask)
protected abstract void moveLastSelectedRight(int stepSize, boolean withShiftMask, boolean withControlMask)
protected abstract void moveLastSelectedLeft(int stepSize, boolean withShiftMask, boolean withControlMask)
protected abstract void moveLastSelectedUp(int stepSize, boolean withShiftMask, boolean withControlMask)
protected abstract void moveLastSelectedDown(int stepSize, boolean withShiftMask, boolean withControlMask)
Copyright © 2013. All Rights Reserved.