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)
Command
public void reset()
Command
public void setShiftMode(String mode)
Command
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
setShiftMode
in interface Command
mode
- cell shifting mode with possible values "inner" or "adjacent"public String getShiftMode()
Command
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
)getShiftMode
in interface Command
public List<Area> getAreaList()
getAreaList
in interface Command
public Boolean getLockRange()
Command
getLockRange
in interface Command
public void setLockRange(String isLock)
Command
setLockRange
in interface Command
isLock
- Whether the command area is locked, value should be "true","false",nullpublic void setLockRange(Boolean lockRange)
protected Transformer getTransformer()
protected TransformationConfig getTransformationConfig()
Copyright © 2023. All rights reserved.