public abstract class StreetsideCommand extends Object
Modifier and Type | Field and Description |
---|---|
Set<StreetsideAbstractImage> |
images
Set of
StreetsideAbstractImage objects affected by the command |
Constructor and Description |
---|
StreetsideCommand(Set<StreetsideAbstractImage> images)
Main constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
redo()
Redoes the action.
|
abstract void |
sum(StreetsideCommand command)
If two equal commands are applied consecutively to the same set of images,
they are summed in order to reduce them to just one command.
|
abstract String |
toString() |
abstract void |
undo()
Undoes the action.
|
public Set<StreetsideAbstractImage> images
StreetsideAbstractImage
objects affected by the commandpublic StreetsideCommand(Set<StreetsideAbstractImage> images)
images
- The images that are affected by the command.public abstract void undo()
public abstract void redo()
public abstract void sum(StreetsideCommand command)
command
- The command to be summed to last command.