public abstract class AbstractCommand extends Object implements Command
ADJACENT_SHIFT_MODE, INNER_SHIFT_MODE| Constructor and Description |
|---|
AbstractCommand() |
| Modifier and Type | Method and Description |
|---|---|
Command |
addArea(Area area)
Adds an area to this command
|
List<Area> |
getAreaList() |
Boolean |
getLockRange()
Whether the command area is locked
Other commands will no longer execute in this area after locking
|
String |
getShiftMode()
Returns the cell shifting mode defining
the
CellShiftStrategy to use for the command
Possible values are
"inner" defining the InnerCellShiftStrategy to use
"adjacent" defining the AdjacentCellShiftStrategy to use
null value means the default strategy will be used (InnerCellShiftStrategy) |
protected TransformationConfig |
getTransformationConfig() |
protected Transformer |
getTransformer() |
void |
reset()
Resets command data for repeatable command usage
|
void |
setLockRange(Boolean lockRange) |
void |
setLockRange(String isLock)
Other commands will no longer execute in this area after locking
|
void |
setShiftMode(String mode)
Defines the
CellShiftStrategy to use
when shifting the cells for the command while transforming an area
The mode value "inner" sets the InnerCellShiftStrategy (default)
The mode value "adjacent" sets the AdjacentCellShiftStrategy |
public Command addArea(Area area)
Commandpublic void reset()
Commandpublic void setShiftMode(String mode)
CommandCellShiftStrategy to use
when shifting the cells for the command while transforming an area
The mode value "inner" sets the InnerCellShiftStrategy (default)
The mode value "adjacent" sets the AdjacentCellShiftStrategysetShiftMode in interface Commandmode - cell shifting mode with possible values "inner" or "adjacent"public String getShiftMode()
CommandCellShiftStrategy to use for the command
Possible values are
"inner" defining the InnerCellShiftStrategy to use
"adjacent" defining the AdjacentCellShiftStrategy to use
null value means the default strategy will be used (InnerCellShiftStrategy)getShiftMode in interface Commandpublic List<Area> getAreaList()
getAreaList in interface Commandpublic Boolean getLockRange()
CommandgetLockRange in interface Commandpublic void setLockRange(String isLock)
CommandsetLockRange in interface CommandisLock - Whether the command area is locked, value should be "true","false",nullpublic void setLockRange(Boolean lockRange)
protected Transformer getTransformer()
protected TransformationConfig getTransformationConfig()
Copyright © 2020. All rights reserved.