Graphic Rendering System 1.0
A Java-based graphic rendering system implementing various design patterns
|
Public Member Functions | |
AddShapeCommand (List< Shape > shapes, Shape shape) | |
void | execute () |
void | undo () |
Private Attributes | |
final Shape | shape |
final List< Shape > | shapes |
Command for adding a shape to a collection. This is an implementation of the Command pattern.
Definition at line 10 of file AddShapeCommand.java.
|
inline |
Constructor for the AddShapeCommand
shapes | the collection of shapes to modify |
shape | the shape to add |
Definition at line 19 of file AddShapeCommand.java.
|
inline |
Execute the command
Implements com.example.graphics.command.Command.
Definition at line 25 of file AddShapeCommand.java.
|
inline |
Undo the command
Implements com.example.graphics.command.Command.
Definition at line 30 of file AddShapeCommand.java.
|
private |
Definition at line 12 of file AddShapeCommand.java.
Referenced by AddShapeCommand(), execute(), and undo().
|
private |
Definition at line 11 of file AddShapeCommand.java.
Referenced by AddShapeCommand(), execute(), and undo().